Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code color exception #234436

Open
bobingxin opened this issue Nov 22, 2024 · 8 comments
Open

code color exception #234436

bobingxin opened this issue Nov 22, 2024 · 8 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@bobingxin
Copy link

Type: Bug

  1. code highlight corlor exception.

VS Code version: Code 1.95.3 (f1a4fb1, 2024-11-13T14:50:04.152Z)
OS version: Darwin arm64 24.1.0
Modes:

System Info
Item Value
CPUs Apple M1 Pro (8 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 2, 2, 3
Memory (System) 16.00GB (0.20GB free)
Process Argv --crash-reporter-id 3c1b1317-68b9-4270-98e6-abdc5f236673
Screen Reader no
VM 0%
Extensions (5)
Extension Author (truncated) Version
vscode-eslint dba 3.0.10
prettier-vscode esb 11.0.0
copilot Git 1.245.0
copilot-chat Git 0.22.4
code-spell-checker str 4.0.21
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyonecf:30548226
vscrp:30673768
962ge761:30959799
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
9c06g630:31013171
dvdeprecation:31068756
dwnewjupytercf:31046870
2f103344:31071589
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31185841
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530

@bobingxin
Copy link
Author

Image
this is a exception photo

@alexr00
Copy link
Member

alexr00 commented Nov 25, 2024

Does this still occur if you disable all extensions?

@alexr00 alexr00 added the info-needed Issue requires more information from poster label Nov 25, 2024
@bobingxin
Copy link
Author

Disabling all extensions also has this issue.

@alexr00
Copy link
Member

alexr00 commented Nov 26, 2024

Can you share a code snippet I can copy/paste to repro the issue? Is the language set to TypeScript?

@bobingxin
Copy link
Author

bobingxin commented Nov 26, 2024

const { id2s, EComError, s2id } = require("@ecom/framework")
const { GoodsRefundBiz } = require("../lib/biz/goods/refund")
const Joi = require("joi")
const { OrderStatusBiz } = require("../lib/orderStatus")

module.exports = async function (ctx) {
  const requestData = ctx.request.body

  // 定义主包裹的验证规则
  const schema = Joi.object({
    returnId: Joi.string().required(),
    expressNo: Joi.string().required(), // 确保数组中的每个对象都遵循subPackageSchema的结构
  }).unknown(true)

  const { error } = schema.validate(requestData)
  if (error) {
    throw new EComError(411, error.message)
  }
  requestData.returnId = s2id(requestData.returnId)
  if (!requestData.returnId) {
    throw new EComError(411, "退货单号有误")
  }
  const goodsRefund = await GoodsRefundBiz.get(requestData.returnId)
  if (!goodsRefund) {
    throw new EComError(411, "退货订单没有找到")
  }
  if (goodsRefund.refundType === 1) {
    await GoodsRefundBiz.update(requestData.returnId, {
      deliveryNo: requestData.expressNo,
      deliveryName: "中通快递",
      deliveryCode: "zhongtong",
    })
    await OrderStatusBiz.refundFinished(
      goodsRefund.orderGoodsId,
      requestData.expressNo,
      "zhongtong",
      "中通快递"
    )
  }
  if (goodsRefund.refundType === 2) {
    await GoodsRefundBiz.update(requestData.returnId, {
      exchangeDeliveryNo: requestData.expressNo,
      exchangeDeliveryName: "中通快递",
      exchangeDeliveryCode: "zhongtong",
    })
  }

  return {}
}

Randomly typing some letters quickly in any place will cause this issue.The language I am using is JavaScript.

@bobingxin
Copy link
Author

Will some of my system configurations affect this color rendering? Can I try changing some configurations to test this issue?

@bobingxin
Copy link
Author

2024-11-26.19.12.19.mov

@bobingxin
Copy link
Author

Has there been a recent update to the syntax highlighting in this text editor? I've noticed this issue in the recent 1.94 and 1.95 versions. I hope you can help me resolve this quickly, as it is causing a lot of confusion while I'm coding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants