VS Code不能检测一些具有内置支持的语言的问题。为什么?

huangapple go评论78阅读模式
英文:

VS Code is not detecting problems for some languages with builtin support. Why?

问题

以下是您要翻译的内容:

"For some reason errors are not producing any code highlighting (red squiggles) or file highlighting (red filenames) in my VS Code when writing in JavaScript and some other languages.

The answer is not apparent, even after a search here, google, GPT, etc. I uninstalled all extensions. Nothing changed. I reinstalled the app, nothing changed. I deleted all referenced to the app, re-installed, and then it worked. Temporarily. Just happened again though, no error highlighting again.

I am writing TypeScript currently, but also not working on JS or TS. errors are working in JSON and Python...

I am currently not running any extension at all, as I uninstalled all for testing purposes. I was using the ES7+ React/Redux/React-Native snippets and a few others.

Any code that would normally produce an error highlight is not.

const someConst = 1;
const someConst = 2;

the above will produce no error highlight in vscode, but obviously not run or compile.

I am running on a Mac with Apple Silicon.

VS Code about:

Version: 1.79.2 (Universal)
Commit: 695af097c7bd098fbf017ce3ac85e09bbc5dda06
Date: 2023-06-14T08:58:52.392Z (2 wks ago)
Electron: 22.5.7
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Darwin arm64 22.5.0

When I use the Developer: Show Running Extensions command in the command palette, I do not see the "TypeScript and JavaScript Language Features" extension listed."

英文:

For some reason errors are not producing any code highlighting (red squiggles) or file highlighting (red filenames) in my VS Code when writing in JavaScript and some other languages.

The answer is not apparent, even after a search here, google, GPT, etc. I uninstalled all extensions. Nothing changed. I reinstalled the app, nothing changed. I deleted all referenced to the app, re-installed, and then it worked. Temporarily. Just happened again though, no error highlighting again.

I am writing TypeScript currently, but also not working on JS or TS. errors are working in JSON and Python...

I am currently not running any extension at all, as I uninstalled all for testing purposes. I was using the ES7+ React/Redux/React-Native snippets and a few others.

Any code that would normally produce an error highlight is not.

const someConst = 1;
const someConst = 2;

the above will produce no error highlight in vscode, but obviously not run or compile.

I am running on a Mac with Apple Silicon.

VS Code about:

Version: 1.79.2 (Universal)
Commit: 695af097c7bd098fbf017ce3ac85e09bbc5dda06
Date: 2023-06-14T08:58:52.392Z (2 wks ago)
Electron: 22.5.7
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Darwin arm64 22.5.0

When I use the Developer: Show Running Extensions command in the command palette, I do not see the "TypeScript and JavaScript Language Features" extension listed.

答案1

得分: 1

我敢打赌你禁用了一些内置扩展,你不想这样做。打开扩展视图,然后在搜索栏中键入@builtin。查找已禁用的扩展(它们将显示为比已启用的扩展更暗淡)。例如,检查"TypeScript and JavaScript Language Features"扩展,"HTML Language Features"扩展和"CSS Language Features"扩展。

英文:

I'll wager you have some builtin extensions disabled that you don't want to be. Open the Extensions View, and type @builtin into the search bar. Look for extensions that are disabled (they will be displayed dimmer than those that are enabled). For example, check for the "TypeScript and JavaScript Language Features" extension, the "HTML Language Features" extension, and the "CSS Language Features" extension.

huangapple
  • 本文由 发表于 2023年6月29日 06:15:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/76577015.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定