microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.96k stars 28.77k forks source link

Backtick hightlight errors vue html pug ts/js #229464

Open DeniroBlack opened 6 days ago

DeniroBlack commented 6 days ago

Does this issue occur when all extensions are disabled?: Yes/No

Steps to Reproduce:

In vue has error backtick highlighting (pug or html) image image

And typescript/js too image image

aeschli commented 5 days ago

Can you file the vue issue against the vue extension that you are using? Maybe https://github.com/vuejs/vetur ?

For TypeScript, can you paste the code snippet?

DeniroBlack commented 5 days ago
  const cli = createClickHouseClient({
    url: `http://${E.config.connections?.clickhouse?.host ?? 'clickhouse'}:${E.config.connections?.clickhouse?.port ?? 8123}`,
  })
  cli.insert({
    table: table,
    values: dataToSave,
    format: 'JSONEachRow',
  }).then((res: any) => {
      cli.close()
  })
DeniroBlack commented 5 days ago

No, use vue official

https://github.com/vuejs/language-tools

image

Can you file the vue issue against the vue extension that you are using? Maybe https://github.com/vuejs/vetur ?

For TypeScript, can you paste the code snippet?

DeniroBlack commented 5 days ago

I create issue https://github.com/vuejs/language-tools/issues/4877

DeniroBlack commented 4 days ago

vuejs/language-tools#4877

I don't understand it vscode bug or plugin In phpstorm this construction supports image

aeschli commented 3 days ago

Every language has different syntax highlighting grammars and the grammars are maintained by different projetcs.

Thanks for the typescript sample.

Image

all looks correct to me here. The back tick has a variable with typesrcipt code in it.

What is wrong in your opinion?