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

Grammar checking does not work properly in non default user code snippets #212903

Closed
Tracked by #212907
CrystalloidIron opened this issue May 16, 2024 · 2 comments
Closed
Tracked by #212907
Assignees

Comments

@CrystalloidIron
Copy link

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

  • VS Code Version: 1.89.1
  • OS Version: Windows_NT x64 10.0.19045
  • Electron: 28.2.8
  • ElectronBuildId: 27744544
  • Chromium: 120.0.6099.291
  • Node.js: 18.18.2
  • V8: 12.0.267.19-electron.0
  1. 当我想创建一个新的用户配置并为其添加用户代码片段时,我发现为某个语言而创建的代码片段因其后缀名为‘.json’,即使在vscode右下角的语言模式中修改了选项为‘Code snippets’,仍然会被以JSON方式检查代码并报错,并不能如预设那般被以JSONC方式检查。即使已经将所有的拓展关闭,将项目文件夹也关闭,仍然会出现该情况。
屏幕截图 2024-05-16 224348

image

@vscodenpa vscodenpa added *english-please Issue not using English and removed *english-please Issue not using English labels May 16, 2024
@jrieken jrieken added info-needed Issue requires more information from poster *english-please Issue not using English labels May 16, 2024
@vscodenpa vscodenpa removed *english-please Issue not using English info-needed Issue requires more information from poster labels May 16, 2024
@jrieken
Copy link
Member

jrieken commented May 16, 2024

  • lacks copy-paste friendly sample
  • steps
  • english description

@RedCMD
Copy link
Contributor

RedCMD commented May 24, 2024

you should use the file extension .code-snippets, not .json

@jrieken jrieken closed this as completed May 24, 2024
@microsoft microsoft locked and limited conversation to collaborators Jul 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants