From d9373f5688797a29b56d20b8c4fd54629bbd30c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=AA=E5=BF=83=E7=A6=BE?= Date: Wed, 9 Aug 2023 17:10:22 +0800 Subject: [PATCH] Add `.code-workspace` to `JSON with Comments` --- lib/linguist/languages.yml | 1 + .../JSON with Comments/plyr.code-workspace | 39 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 samples/JSON with Comments/plyr.code-workspace diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index af779c91e6..80f6e195cd 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -3155,6 +3155,7 @@ JSON with Comments: extensions: - ".jsonc" - ".code-snippets" + - ".code-workspace" - ".sublime-build" - ".sublime-commands" - ".sublime-completions" diff --git a/samples/JSON with Comments/plyr.code-workspace b/samples/JSON with Comments/plyr.code-workspace new file mode 100644 index 0000000000..bcd64eaa51 --- /dev/null +++ b/samples/JSON with Comments/plyr.code-workspace @@ -0,0 +1,39 @@ +{ + "folders": [ + { + "path": "." + } + ], + "settings": { + "search.exclude": { + "**/node_modules": true, + "**/dist": true + }, + + // Linting + "stylelint.enable": true, + "stylelint.validate": ["css", "scss"], + "css.validate": false, + "less.validate": false, + "scss.validate": false, + "javascript.validate.enable": false, + + // Formatting + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.tabSize": 2, + "editor.insertSpaces": true, + "editor.formatOnSave": true, + + // Trim on save + "files.trimTrailingWhitespace": true, + + // Special file associations + "files.associations": { + ".eslintrc": "jsonc" + }, + + "editor.codeActionsOnSave": { + "source.fixAll": true + } + } +}