Skip to content

Commit 362ae0b

Browse files
authored
Merge pull request #43 from CodinGame/add-vetur-and-svelte-extensions
Add vetur and svelte extensions
2 parents 169bf10 + d3c77be commit 362ae0b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+7757
-1106
lines changed

package-lock.json

Lines changed: 17 additions & 916 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
"private": false,
55
"description": "Enhanced Monaco editor with TextMate grammars and more",
66
"scripts": {
7-
"build": "rollup --config rollup.config.ts --configPlugin typescript && npm run generate-types",
7+
"build": "npm run lint && rollup --config rollup.config.ts --configPlugin typescript && npm run generate-types",
88
"generate-types": "tsc --project tsconfig.types.json",
9-
"update-extensions": "ts-node update-extensions.ts"
9+
"update-extensions": "node --loader ts-node/esm update-extensions.ts",
10+
"lint": "eslint --ext .ts src update-extensions.ts"
1011
},
1112
"repository": {
1213
"type": "git",
@@ -36,11 +37,11 @@
3637
"@rollup/plugin-alias": "3.1.9",
3738
"@rollup/plugin-babel": "5.3.1",
3839
"@rollup/plugin-commonjs": "22.0.0",
39-
"@rollup/plugin-eslint": "8.0.2",
4040
"@rollup/plugin-json": "4.1.0",
4141
"@rollup/plugin-node-resolve": "13.3.0",
4242
"@rollup/plugin-typescript": "^8.3.3",
4343
"@types/ini": "1.3.31",
44+
"@types/js-yaml": "^4.0.5",
4445
"@types/node": "16.11.7",
4546
"@types/rollup-plugin-node-builtins": "^2.1.2",
4647
"@typescript-eslint/eslint-plugin": "5.27.1",
@@ -56,6 +57,7 @@
5657
"eslint-plugin-unused-imports": "2.0.0",
5758
"fast-plist": "0.1.2",
5859
"ini": "3.0.0",
60+
"js-yaml": "^4.1.0",
5961
"json5": "2.2.1",
6062
"monaco-emacs": "^0.3.0",
6163
"monaco-vim": "^0.3.4",
@@ -70,8 +72,7 @@
7072
"ts-node": "10.8.1",
7173
"tslib": "^2.4.0",
7274
"typescript": "4.7.3",
73-
"vscode-textmate": "^6.0.0",
74-
"yaml": "2.1.1"
75+
"vscode-textmate": "^6.0.0"
7576
},
7677
"browserslist": [
7778
"defaults",

rollup.config.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import alias from '@rollup/plugin-alias'
55
import { nodeResolve } from '@rollup/plugin-node-resolve'
66
import webWorkerLoader from 'rollup-plugin-web-worker-loader'
77
import { string } from 'rollup-plugin-string'
8-
import eslint from '@rollup/plugin-eslint'
98
import { babel } from '@rollup/plugin-babel'
109
import * as rollup from 'rollup'
1110
import builtins from 'rollup-plugin-node-builtins'
@@ -67,11 +66,6 @@ export default rollup.defineConfig({
6766
pattern: /(.+)\?worker$/,
6867
plugins: [terser()]
6968
}),
70-
eslint({
71-
throwOnError: true,
72-
throwOnWarning: true,
73-
include: ['**/*.ts']
74-
}),
7569
nodeResolve({
7670
extensions
7771
}),

src/languages/extensions/configurations/cpptools.json

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1941,6 +1941,48 @@
19411941
"description": "Controls the background coloring of inactive preprocessor blocks. Input is in the form a hexadecimal color code or a valid Theme Color. If not set, this defaults to transparent. This setting only applies when inactive region dimming is enabled.",
19421942
"scope": 4
19431943
},
1944+
"C_Cpp.inlayHints.autoDeclarationTypes.enabled": {
1945+
"type": "boolean",
1946+
"default": false,
1947+
"markdownDescription": "Display inlay hints for deduced type when `auto` is used in a declaration:\n```cpp \n\n auto index /* : int */ = 0;\n```",
1948+
"scope": 1
1949+
},
1950+
"C_Cpp.inlayHints.autoDeclarationTypes.showOnLeft": {
1951+
"type": "boolean",
1952+
"default": false,
1953+
"markdownDescription": "Display inlay hints for deduced type when `auto` is used in a declaration on the left of the identifier:\n```cpp \n\n auto /* int */ index = 0;\n```",
1954+
"scope": 1
1955+
},
1956+
"C_Cpp.inlayHints.parameterNames.enabled": {
1957+
"type": "boolean",
1958+
"default": false,
1959+
"markdownDescription": "Display inlay hints for parameter names:\n```cpp \n\n int a = getArea(/* width: */ x, /* height: */ y);\n```",
1960+
"scope": 1
1961+
},
1962+
"C_Cpp.inlayHints.parameterNames.suppressWhenArgumentContainsName": {
1963+
"type": "boolean",
1964+
"default": true,
1965+
"markdownDescription": "Suppress parameter name hints when the argument text or inline comment contains the parameter name:\n```cpp \n\n int a = getArea(width, /* height: */ y);\n```",
1966+
"scope": 1
1967+
},
1968+
"C_Cpp.inlayHints.parameterNames.hideLeadingUnderscores": {
1969+
"type": "boolean",
1970+
"default": true,
1971+
"markdownDescription": "Hide leading `_` in parameter name hints.",
1972+
"scope": 1
1973+
},
1974+
"C_Cpp.inlayHints.referenceOperator.enabled": {
1975+
"type": "boolean",
1976+
"default": false,
1977+
"markdownDescription": "Display the inlay hint reference operator `&` for parameters passed by non-const reference:\n```cpp \n\n swap(/* &first: */ str1, /* &last: */ str2);\n```",
1978+
"scope": 1
1979+
},
1980+
"C_Cpp.inlayHints.referenceOperator.showSpace": {
1981+
"type": "boolean",
1982+
"default": false,
1983+
"markdownDescription": "Controls whether a space is shown after `&` for parameters passed by non-const reference:\n```cpp \n\n swap(/* & first: */ str1, /* & last: */ str2);\n```",
1984+
"scope": 1
1985+
},
19441986
"C_Cpp.loggingLevel": {
19451987
"type": "string",
19461988
"enum": [
@@ -2394,14 +2436,13 @@
23942436
"type": "boolean",
23952437
"default": true,
23962438
"description": "Show the \"Run and Debug\" play button and \"Add Debug Configuration\" gear in the editor title bar for C++ files.",
2397-
"scope": 1
2439+
"scope": 4
23982440
},
23992441
"C_Cpp.legacyCompilerArgsBehavior": {
24002442
"type": "boolean",
24012443
"default": false,
24022444
"markdownDescription": "Enable pre-v1.10.0 behavior for how shell escaping is handled in compiler arg settings. Shell escaping is no longer expected or supported by default in arg arrays starting in v1.10.0.",
2403-
"scope": 4,
2404-
"deprecationMessage": "This setting is temporary to support transitioning to corrected behavior in v1.10.0."
2445+
"scope": 4
24052446
}
24062447
}
24072448
}

src/languages/extensions/configurations/dart.json

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,25 @@
469469
"description": "Whether to automatically send a Hot Restart request during a debug session when saving files if Hot Reload is not available but Hot Restart is.",
470470
"scope": 3
471471
},
472+
"dart.flutterGenerateLocalizationsOnSave": {
473+
"enum": [
474+
"never",
475+
"manual",
476+
"manualIfDirty",
477+
"all",
478+
"allIfDirty"
479+
],
480+
"enumDescriptions": [
481+
"Do not generate localizations when saving",
482+
"Generate localizations for explicit manual saves (requires pressing Save explicitly if using autosave)",
483+
"Generate localizations for explicit manual saves (requires pressing Save explicitly if using autosave) only if the saved file had changes",
484+
"Generate localizations for all saves, manual or automatic",
485+
"Generate localizations for all saves, manual or automatic only if the saved file had changes"
486+
],
487+
"default": "never",
488+
"markdownDescription": "Whether to automatically run the Generate Localizations command for Flutter apps when saving .arb files.",
489+
"scope": 3
490+
},
472491
"dart.flutterOutline": {
473492
"type": "boolean",
474493
"default": true,
@@ -700,6 +719,23 @@
700719
"default": true,
701720
"markdownDescription": "Whether to automatically run `pub get` whenever `pubspec.yaml` is saved.",
702721
"scope": 4
722+
},
723+
"dart.runPubGetOnNestedProjects": {
724+
"enum": [
725+
"none",
726+
"both",
727+
"above",
728+
"below"
729+
],
730+
"enumDescriptions": [
731+
"Only run `pub get` for the project whose pubspec was changed",
732+
"Run `pub get` also in parent or child projects of the one whose pubspec was changed",
733+
"Run `pub get` also in parent projects of the one whose pubspec was changed",
734+
"Run `pub get` also in child projects of the one whose pubspec was changed"
735+
],
736+
"default": "none",
737+
"markdownDescription": "Whether to automatically run `pub get` on nested projects above or below the one where the pubspec was changed.",
738+
"scope": 3
703739
}
704740
}
705741
},
@@ -929,7 +965,7 @@
929965
"properties": {
930966
"dart.projectSearchDepth": {
931967
"type": "number",
932-
"default": 3,
968+
"default": 5,
933969
"description": "How many levels (including the workspace roots) down the workspace to search for Dart/Flutter projects. Increasing this number may help detect Flutter projects that are deeply nested in your workspace but slow down all operations that search for projects, including extension activation.",
934970
"scope": 3
935971
},

src/languages/extensions/configurations/java.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,12 @@
738738
"default": "ignore",
739739
"markdownDescription": "Project encoding settings",
740740
"scope": 3
741+
},
742+
"java.jdt.ls.lombokSupport.enabled": {
743+
"type": "boolean",
744+
"default": true,
745+
"description": "Whether to load lombok processors from project classpath",
746+
"scope": 3
741747
}
742748
}
743749
}

0 commit comments

Comments
 (0)