Skip to content

Commit

Permalink
Use categories for builtin extensions groups (microsoft#202453)
Browse files Browse the repository at this point in the history
* support grouping of extensions

* remove grouping

* reuse categories parsing

* cleanup

* fix tests
  • Loading branch information
sandy081 authored Jan 14, 2024
1 parent 04d168a commit 1e0580e
Show file tree
Hide file tree
Showing 65 changed files with 196 additions and 134 deletions.
1 change: 1 addition & 0 deletions extensions/bat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin mmims/language-batchfile grammars/batchfile.cson ./syntaxes/batchfile.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/clojure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin atom/language-clojure grammars/clojure.cson ./syntaxes/clojure.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/coffeescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin atom/language-coffee-script grammars/coffeescript.cson ./syntaxes/coffeescript.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/cpp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ./build/update-grammars.js"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/csharp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin dotnet/csharp-tmLanguage grammars/csharp.tmLanguage ./syntaxes/csharp.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"configurationDefaults": {
"[csharp]": {
Expand Down
1 change: 1 addition & 0 deletions extensions/css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin microsoft/vscode-css grammars/css.cson ./syntaxes/css.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
15 changes: 9 additions & 6 deletions extensions/dart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@
"engines": {
"vscode": "0.10.x"
},
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin dart-lang/dart-syntax-highlight grammars/dart.json ./syntaxes/dart.tmLanguage.json"
},
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin dart-lang/dart-syntax-highlight grammars/dart.json ./syntaxes/dart.tmLanguage.json"
},
"categories": [
"Programming Languages"
],
"contributes": {
"languages": [
{
Expand All @@ -26,9 +29,9 @@
],
"grammars": [
{
"language": "dart",
"scopeName": "source.dart",
"path": "./syntaxes/dart.tmLanguage.json"
"language": "dart",
"scopeName": "source.dart",
"path": "./syntaxes/dart.tmLanguage.json"
}
]
}
Expand Down
1 change: 1 addition & 0 deletions extensions/diff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin textmate/diff.tmbundle Syntaxes/Diff.plist ./syntaxes/diff.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/docker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin moby/moby contrib/syntax/textmate/Docker.tmbundle/Syntaxes/Dockerfile.tmLanguage ./syntaxes/docker.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/fsharp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin ionide/ionide-fsgrammar grammars/fsharp.json ./syntaxes/fsharp.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/go/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin worlpaker/go-syntax syntaxes/go.tmLanguage.json ./syntaxes/go.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/groovy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin textmate/groovy.tmbundle Syntaxes/Groovy.tmLanguage ./syntaxes/groovy.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/handlebars/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin daaain/Handlebars grammars/Handlebars.json ./syntaxes/Handlebars.tmLanguage.json"
},
"categories": ["Programming Languages"],
"extensionKind": [
"ui",
"workspace"
Expand Down
1 change: 1 addition & 0 deletions extensions/hlsl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin tgjones/shaders-tmLanguage grammars/hlsl.json ./syntaxes/hlsl.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ./build/update-grammar.mjs"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/ini/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin textmate/ini.tmbundle Syntaxes/Ini.plist ./syntaxes/ini.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/java/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin redhat-developer/vscode-java language-support/java/java.tmLanguage.json ./syntaxes/java.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"engines": {
"vscode": "0.10.x"
},
"categories": ["Programming Languages"],
"contributes": {
"configurationDefaults": {
"[javascript]": {
Expand Down
1 change: 1 addition & 0 deletions extensions/json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ./build/update-grammars.js"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/julia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin JuliaEditorSupport/atom-language-julia grammars/julia_vscode.json ./syntaxes/julia.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/latex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ./build/update-grammars.js"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/less/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ./build/update-grammar.js"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/log/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin emilast/vscode-logfile-highlighter syntaxes/log.tmLanguage ./syntaxes/log.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/lua/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin sumneko/lua.tmbundle Syntaxes/Lua.plist ./syntaxes/lua.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/make/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin fadeevab/make.tmbundle Syntaxes/Makefile.plist ./syntaxes/make.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/markdown-basics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"engines": {
"vscode": "^1.20.0"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
3 changes: 2 additions & 1 deletion extensions/markdown-math/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"vscode": "^1.54.0"
},
"categories": [
"Other"
"Other",
"Programming Languages"
],
"capabilities": {
"virtualWorkspaces": true,
Expand Down
1 change: 1 addition & 0 deletions extensions/objective-c/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ./build/update-grammars.js"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/perl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin textmate/perl.tmbundle Syntaxes/Perl.plist ./syntaxes/perl.tmLanguage.json Syntaxes/Perl%206.tmLanguage ./syntaxes/perl6.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/php/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"engines": {
"vscode": "0.10.x"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/powershell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"engines": {
"vscode": "*"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/pug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin davidrios/pug-tmbundle Syntaxes/Pug.JSON-tmLanguage ./syntaxes/pug.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/python/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"engines": {
"vscode": "*"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/r/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin REditorSupport/vscode-R syntax/r.json ./syntaxes/r.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/razor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ./build/update-grammar.mjs"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
3 changes: 0 additions & 3 deletions extensions/references-view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
"bugs": {
"url": "https://github.com/Microsoft/vscode-references-view/issues"
},
"categories": [
"Programming Languages"
],
"activationEvents": [
"onCommand:references-view.find",
"onCommand:editor.action.showReferences"
Expand Down
1 change: 1 addition & 0 deletions extensions/restructuredtext/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin trond-snekvik/vscode-rst syntaxes/rst.tmLanguage.json ./syntaxes/rst.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/ruby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin textmate/ruby.tmbundle Syntaxes/Ruby.plist ./syntaxes/ruby.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/rust/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ./build/update-grammar.mjs"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/scss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin atom/language-sass grammars/scss.cson ./syntaxes/scss.tmLanguage.json grammars/sassdoc.cson ./syntaxes/sassdoc.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
3 changes: 0 additions & 3 deletions extensions/search-result/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
"engines": {
"vscode": "^1.39.0"
},
"categories": [
"Programming Languages"
],
"main": "./out/extension.js",
"browser": "./dist/extension.js",
"activationEvents": [
Expand Down
1 change: 1 addition & 0 deletions extensions/shaderlab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin tgjones/shaders-tmLanguage grammars/shaderlab.json ./syntaxes/shaderlab.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/shellscript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin jeff-hykin/better-shell-syntax autogenerated/shell.tmLanguage.json ./syntaxes/shell-unix-bash.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/sql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ./build/update-grammar.mjs"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/swift/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin jtbandes/swift-tmlanguage Swift.tmLanguage.json ./syntaxes/swift.tmLanguage.json"
},
"categories": ["Programming Languages"],
"contributes": {
"languages": [
{
Expand Down
1 change: 1 addition & 0 deletions extensions/theme-abyss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"engines": {
"vscode": "*"
},
"categories": ["Themes"],
"contributes": {
"themes": [
{
Expand Down
Loading

0 comments on commit 1e0580e

Please sign in to comment.