@codingame/monaco-editor-wrapper 1.11.1 → 1.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/COBOL.tmLanguage.js +9 -2
- package/dist/angular.js +6 -0
- package/dist/cobol-snippets.js +103 -0
- package/dist/cobol2.js +189 -2
- package/dist/cpptools.js +10 -2
- package/dist/dart2.js +1 -1
- package/dist/dart3.js +29 -14
- package/dist/features/extensionConfigurations.js +48 -1
- package/dist/fsharp.tmLanguage.js +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -2
- package/dist/java2.js +20 -3
- package/dist/javascript-javascript.code-snippets.js +3 -3
- package/dist/jsx-tags.js +1 -1
- package/dist/languages/extensions/themeLoader.d.ts +3 -0
- package/dist/lua.tmLanguage.js +32 -30
- package/dist/lua2.js +9 -9
- package/dist/main.js +12520 -815
- package/dist/markdown-basics-markdown.code-snippets.js +2 -2
- package/dist/markdown.tmLanguage.js +2 -2
- package/dist/monaco.d.ts +1 -1
- package/dist/omnisharp.js +78 -0
- package/dist/scalameta.js +4 -3
- package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +2 -3
- package/dist/shell-unix-bash.tmLanguage.js +63 -3
- package/dist/solidity-solidity.js +213 -0
- package/dist/solidity.js +71 -0
- package/dist/solidity2.js +1187 -0
- package/dist/solidity3.js +136 -0
- package/dist/swift.tmLanguage.js +33 -9
- package/dist/template.js +2 -2
- package/dist/theme/index.d.ts +2 -2
- package/dist/theme/registry.d.ts +6 -1
- package/dist/theme/tools.d.ts +3 -5
- package/dist/theme-defaults~dark_plus.js +207 -0
- package/dist/theme-defaults~dark_vs.js +406 -0
- package/dist/theme-defaults~hc_black.js +470 -0
- package/dist/theme-defaults~hc_light.js +595 -0
- package/dist/theme-defaults~light_plus.js +209 -0
- package/dist/theme-defaults~light_vs.js +435 -0
- package/dist/typescript-basics-typescript.code-snippets.js +3 -3
- package/dist/typescript-language-features.js +50 -2
- package/dist/vscode-R-rmarkdown.js +370 -0
- package/dist/vscode-R.js +28 -4
- package/dist/vscode-python.js +2 -28
- package/package.json +18 -19
- package/stats.html +1 -1
- package/dist/powershell-powershell.code-snippets.js +0 -18
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
var solidity = [
|
|
2
|
+
{
|
|
3
|
+
"type": "object",
|
|
4
|
+
"title": "Solidity configuration",
|
|
5
|
+
"properties": {
|
|
6
|
+
"solidity.nodemodulespackage": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"default": "solc",
|
|
9
|
+
"description": "The node modules package to find the solcjs compiler",
|
|
10
|
+
"scope": 3
|
|
11
|
+
},
|
|
12
|
+
"solidity.compileUsingRemoteVersion": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"default": "latest",
|
|
15
|
+
"description": "Compile downloading a remote solc binary file, for example: 'latest' or 'v0.4.3+commit.2353da71', use the command 'Solidity: Get solidity releases' to list all versions, or just right click in a solidity file to simply select the version",
|
|
16
|
+
"scope": 3
|
|
17
|
+
},
|
|
18
|
+
"solidity.compilerOptimization": {
|
|
19
|
+
"type": "number",
|
|
20
|
+
"default": 200,
|
|
21
|
+
"description": "Optimize for how many times you intend to run the code. Lower values will optimize more for initial deployment cost, higher values will optimize more for high-frequency usage.",
|
|
22
|
+
"scope": 3
|
|
23
|
+
},
|
|
24
|
+
"solidity.compileUsingLocalVersion": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"default": "",
|
|
27
|
+
"description": "Compile using a local solc binary file, please include the path of the file if wanted: 'C://v0.4.3+commit.2353da71.js'",
|
|
28
|
+
"scope": 3
|
|
29
|
+
},
|
|
30
|
+
"solidity.defaultCompiler": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"enum": [
|
|
33
|
+
"remote",
|
|
34
|
+
"localFile",
|
|
35
|
+
"localNodeModule",
|
|
36
|
+
"embedded"
|
|
37
|
+
],
|
|
38
|
+
"default": "remote",
|
|
39
|
+
"description": "Sets the default compiler to use",
|
|
40
|
+
"scope": 3
|
|
41
|
+
},
|
|
42
|
+
"solidity.linter": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"enum": [
|
|
45
|
+
"",
|
|
46
|
+
"solhint",
|
|
47
|
+
"solium"
|
|
48
|
+
],
|
|
49
|
+
"default": "solhint",
|
|
50
|
+
"description": "Enables linting using either solium (ethlint) or solhint. Possible options 'solhint' and 'solium', the default is solhint",
|
|
51
|
+
"scope": 3
|
|
52
|
+
},
|
|
53
|
+
"solidity.solhintRules": {
|
|
54
|
+
"type": [
|
|
55
|
+
"object"
|
|
56
|
+
],
|
|
57
|
+
"default": null,
|
|
58
|
+
"description": "Solhint linting validation rules",
|
|
59
|
+
"scope": 3
|
|
60
|
+
},
|
|
61
|
+
"solidity.formatter": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"default": "prettier",
|
|
64
|
+
"enum": [
|
|
65
|
+
"none",
|
|
66
|
+
"prettier"
|
|
67
|
+
],
|
|
68
|
+
"description": "Enables / disables the solidity formatter (prettier solidity default)",
|
|
69
|
+
"scope": 3
|
|
70
|
+
},
|
|
71
|
+
"solidity.soliumRules": {
|
|
72
|
+
"type": [
|
|
73
|
+
"object"
|
|
74
|
+
],
|
|
75
|
+
"default": {
|
|
76
|
+
"imports-on-top": 0,
|
|
77
|
+
"variable-declarations": 0,
|
|
78
|
+
"indentation": [
|
|
79
|
+
"off",
|
|
80
|
+
4
|
|
81
|
+
],
|
|
82
|
+
"quotes": [
|
|
83
|
+
"off",
|
|
84
|
+
"double"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"description": "Solium linting validation rules",
|
|
88
|
+
"scope": 3
|
|
89
|
+
},
|
|
90
|
+
"solidity.enabledAsYouTypeCompilationErrorCheck": {
|
|
91
|
+
"type": "boolean",
|
|
92
|
+
"default": true,
|
|
93
|
+
"description": "Enables as you type compilation of the document and error highlighting",
|
|
94
|
+
"scope": 3
|
|
95
|
+
},
|
|
96
|
+
"solidity.validationDelay": {
|
|
97
|
+
"type": "number",
|
|
98
|
+
"default": 1500,
|
|
99
|
+
"description": "Delay to trigger the validation of the changes of the current document (compilation, solium)",
|
|
100
|
+
"scope": 3
|
|
101
|
+
},
|
|
102
|
+
"solidity.packageDefaultDependenciesDirectory": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"default": "node_modules",
|
|
105
|
+
"description": "Default directory for Packages Dependencies, i.e: 'node_modules', 'lib'. This is used to avoid typing imports with that path prefix",
|
|
106
|
+
"scope": 3
|
|
107
|
+
},
|
|
108
|
+
"solidity.packageDefaultDependenciesContractsDirectory": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"default": "",
|
|
111
|
+
"description": "Default directory where the Package Dependency store its contracts, i.e: 'src', 'contracts', or just a blank string '', this is used to avoid typing imports with subfolder paths",
|
|
112
|
+
"scope": 3
|
|
113
|
+
},
|
|
114
|
+
"solidity.remappings": {
|
|
115
|
+
"type": "array",
|
|
116
|
+
"default": [],
|
|
117
|
+
"description": "Remappings to resolve contracts to local files / directories, i.e: [\"@openzeppelin/=lib/openzeppelin-contracts\",\"ds-test/=lib/ds-test/src/\"]",
|
|
118
|
+
"scope": 3
|
|
119
|
+
},
|
|
120
|
+
"solidity.remappingsWindows": {
|
|
121
|
+
"type": "array",
|
|
122
|
+
"default": [],
|
|
123
|
+
"description": "Windows Remappings to resolve contracts to local Windows files / directories (Note this overrides the generic remapping settings if the OS is Windows) , i.e: [\"@openzeppelin/=C:/lib/openzeppelin-contracts\",\"ds-test/=C:/lib/ds-test/src/\"]",
|
|
124
|
+
"scope": 3
|
|
125
|
+
},
|
|
126
|
+
"solidity.remappingsUnix": {
|
|
127
|
+
"type": "array",
|
|
128
|
+
"default": [],
|
|
129
|
+
"description": "Unix Remappings to resolve contracts to local Unix files / directories (Note this overrides the generic remapping settings if the OS is Unix based), i.e: [\"@openzeppelin/=/opt/lib/openzeppelin-contracts\",\"ds-test/=/opt/lib/ds-test/src/\"]",
|
|
130
|
+
"scope": 3
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
];
|
|
135
|
+
|
|
136
|
+
export { solidity as default };
|
package/dist/swift.tmLanguage.js
CHANGED
|
@@ -3,7 +3,7 @@ var information_for_contributors = [
|
|
|
3
3
|
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
|
4
4
|
"Once accepted there, we are happy to receive an update request."
|
|
5
5
|
];
|
|
6
|
-
var version = "https://github.com/textmate/swift.tmbundle/commit/
|
|
6
|
+
var version = "https://github.com/textmate/swift.tmbundle/commit/7a35637eb70aef3114b091c4ff6fbf6a2faa881b";
|
|
7
7
|
var name = "Swift";
|
|
8
8
|
var scopeName = "source.swift";
|
|
9
9
|
var comment = "See swift.tmbundle/grammar-test.swift for test cases.";
|
|
@@ -108,7 +108,7 @@ var repository = {
|
|
|
108
108
|
name: "invalid.illegal.character-not-allowed-here.swift"
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
|
-
match: "(?:(\\*)|\\b(deprecated|unavailable)\\b)\\s*(.*?)(?=[,)])"
|
|
111
|
+
match: "(?:(\\*)|\\b(deprecated|unavailable|noasync)\\b)\\s*(.*?)(?=[,)])"
|
|
112
112
|
}
|
|
113
113
|
]
|
|
114
114
|
},
|
|
@@ -817,7 +817,11 @@ var repository = {
|
|
|
817
817
|
name: "keyword.operator.type.opaque.swift"
|
|
818
818
|
},
|
|
819
819
|
{
|
|
820
|
-
match: "\\
|
|
820
|
+
match: "\\bany\\b",
|
|
821
|
+
name: "keyword.operator.type.existential.swift"
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
match: "\\b(?:inout|isolated)\\b",
|
|
821
825
|
name: "storage.modifier.swift"
|
|
822
826
|
},
|
|
823
827
|
{
|
|
@@ -985,19 +989,22 @@ var repository = {
|
|
|
985
989
|
]
|
|
986
990
|
},
|
|
987
991
|
"function": {
|
|
988
|
-
begin: "(?x)\n\t\t\t\t\t\t\\b\n\t\t\t\t\t\t(func)\n\t\t\t\t\t\t\\s+\n\t\t\t\t\t\t(\n\t\t\t\t\t\t\t(?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>)\n\t\t\t\t\t\t | (?:\n\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t(?<oph>\t\t\t\t\t\t\t\t# operator-head\n\t\t\t\t\t\t\t\t\t\t[/=\\-+!*%<>&|^~?]\n\t\t\t\t\t\t\t\t\t | [\\x{00A1}-\\x{00A7}]\n\t\t\t\t\t\t\t\t\t | [\\x{00A9}\\x{00AB}]\n\t\t\t\t\t\t\t\t\t | [\\x{00AC}\\x{00AE}]\n\t\t\t\t\t\t\t\t\t | [\\x{00B0}-\\x{00B1}\\x{00B6}\\x{00BB}\\x{00BF}\\x{00D7}\\x{00F7}]\n\t\t\t\t\t\t\t\t\t | [\\x{2016}-\\x{2017}\\x{2020}-\\x{2027}]\n\t\t\t\t\t\t\t\t\t | [\\x{2030}-\\x{203E}]\n\t\t\t\t\t\t\t\t\t | [\\x{2041}-\\x{2053}]\n\t\t\t\t\t\t\t\t\t | [\\x{2055}-\\x{205E}]\n\t\t\t\t\t\t\t\t\t | [\\x{2190}-\\x{23FF}]\n\t\t\t\t\t\t\t\t\t | [\\x{2500}-\\x{2775}]\n\t\t\t\t\t\t\t\t\t | [\\x{2794}-\\x{2BFF}]\n\t\t\t\t\t\t\t\t\t | [\\x{2E00}-\\x{2E7F}]\n\t\t\t\t\t\t\t\t\t | [\\x{3001}-\\x{3003}]\n\t\t\t\t\t\t\t\t\t | [\\x{3008}-\\x{3030}]\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t\t\\g<oph>\n\t\t\t\t\t\t\t\t\t | (?<opc>\t\t\t\t\t\t\t\t# operator-character\n\t\t\t\t\t\t\t\t\t\t\t[\\x{0300}-\\x{036F}]\n\t\t\t\t\t\t\t\t\t\t | [\\x{1DC0}-\\x{1DFF}]\n\t\t\t\t\t\t\t\t\t\t | [\\x{20D0}-\\x{20FF}]\n\t\t\t\t\t\t\t\t\t\t | [\\x{FE00}-\\x{FE0F}]\n\t\t\t\t\t\t\t\t\t\t | [\\x{FE20}-\\x{FE2F}]\n\t\t\t\t\t\t\t\t\t\t | [\\x{E0100}-\\x{E01EF}]\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t)*\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t | ( \\. ( \\g<oph> | \\g<opc> | \\. )+ )\t\t\t# Dot operators\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t)\n\t\t\t\t\t\t\\s*\n\t\t\t\t\t\t(?=\\(|<)\n\t\t\t\t\t",
|
|
992
|
+
begin: "(?x)\n\t\t\t\t\t\t\\b\n\t\t\t\t\t\t(?:(nonisolated)\\s+)?\n\t\t\t\t\t\t(func)\n\t\t\t\t\t\t\\s+\n\t\t\t\t\t\t(\n\t\t\t\t\t\t\t(?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>)\n\t\t\t\t\t\t | (?:\n\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t(?<oph>\t\t\t\t\t\t\t\t# operator-head\n\t\t\t\t\t\t\t\t\t\t[/=\\-+!*%<>&|^~?]\n\t\t\t\t\t\t\t\t\t | [\\x{00A1}-\\x{00A7}]\n\t\t\t\t\t\t\t\t\t | [\\x{00A9}\\x{00AB}]\n\t\t\t\t\t\t\t\t\t | [\\x{00AC}\\x{00AE}]\n\t\t\t\t\t\t\t\t\t | [\\x{00B0}-\\x{00B1}\\x{00B6}\\x{00BB}\\x{00BF}\\x{00D7}\\x{00F7}]\n\t\t\t\t\t\t\t\t\t | [\\x{2016}-\\x{2017}\\x{2020}-\\x{2027}]\n\t\t\t\t\t\t\t\t\t | [\\x{2030}-\\x{203E}]\n\t\t\t\t\t\t\t\t\t | [\\x{2041}-\\x{2053}]\n\t\t\t\t\t\t\t\t\t | [\\x{2055}-\\x{205E}]\n\t\t\t\t\t\t\t\t\t | [\\x{2190}-\\x{23FF}]\n\t\t\t\t\t\t\t\t\t | [\\x{2500}-\\x{2775}]\n\t\t\t\t\t\t\t\t\t | [\\x{2794}-\\x{2BFF}]\n\t\t\t\t\t\t\t\t\t | [\\x{2E00}-\\x{2E7F}]\n\t\t\t\t\t\t\t\t\t | [\\x{3001}-\\x{3003}]\n\t\t\t\t\t\t\t\t\t | [\\x{3008}-\\x{3030}]\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t\t\\g<oph>\n\t\t\t\t\t\t\t\t\t | (?<opc>\t\t\t\t\t\t\t\t# operator-character\n\t\t\t\t\t\t\t\t\t\t\t[\\x{0300}-\\x{036F}]\n\t\t\t\t\t\t\t\t\t\t | [\\x{1DC0}-\\x{1DFF}]\n\t\t\t\t\t\t\t\t\t\t | [\\x{20D0}-\\x{20FF}]\n\t\t\t\t\t\t\t\t\t\t | [\\x{FE00}-\\x{FE0F}]\n\t\t\t\t\t\t\t\t\t\t | [\\x{FE20}-\\x{FE2F}]\n\t\t\t\t\t\t\t\t\t\t | [\\x{E0100}-\\x{E01EF}]\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t)*\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t | ( \\. ( \\g<oph> | \\g<opc> | \\. )+ )\t\t\t# Dot operators\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t)\n\t\t\t\t\t\t\\s*\n\t\t\t\t\t\t(?=\\(|<)\n\t\t\t\t\t",
|
|
989
993
|
beginCaptures: {
|
|
990
994
|
"1": {
|
|
991
|
-
name: "storage.
|
|
995
|
+
name: "storage.modifier.swift"
|
|
992
996
|
},
|
|
993
997
|
"2": {
|
|
994
|
-
name: "
|
|
998
|
+
name: "storage.type.function.swift"
|
|
995
999
|
},
|
|
996
1000
|
"3": {
|
|
997
|
-
name: "
|
|
1001
|
+
name: "entity.name.function.swift"
|
|
998
1002
|
},
|
|
999
1003
|
"4": {
|
|
1000
1004
|
name: "punctuation.definition.identifier.swift"
|
|
1005
|
+
},
|
|
1006
|
+
"5": {
|
|
1007
|
+
name: "punctuation.definition.identifier.swift"
|
|
1001
1008
|
}
|
|
1002
1009
|
},
|
|
1003
1010
|
end: "(?<=\\})|$(?# functions in protocol declarations or generated interfaces have no body)",
|
|
@@ -2252,9 +2259,12 @@ var repository = {
|
|
|
2252
2259
|
]
|
|
2253
2260
|
},
|
|
2254
2261
|
"typed-variable-declaration": {
|
|
2255
|
-
begin: "(?x)\n\t\t\t\t\t\t\\b(let|var)\\b\\s+\n\t\t\t\t\t\t(?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>)\\s*\n\t\t\t\t\t\t:\n\t\t\t\t\t",
|
|
2262
|
+
begin: "(?x)\n\t\t\t\t\t\t\\b(?:(async)\\s+)?(let|var)\\b\\s+\n\t\t\t\t\t\t(?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>)\\s*\n\t\t\t\t\t\t:\n\t\t\t\t\t",
|
|
2256
2263
|
beginCaptures: {
|
|
2257
2264
|
"1": {
|
|
2265
|
+
name: "keyword.control.async.swift"
|
|
2266
|
+
},
|
|
2267
|
+
"2": {
|
|
2258
2268
|
name: "keyword.other.declaration-specifier.swift"
|
|
2259
2269
|
}
|
|
2260
2270
|
},
|
|
@@ -2640,7 +2650,21 @@ var repository = {
|
|
|
2640
2650
|
match: "(?<!\\.)\\b(do)\\b(\\s*)"
|
|
2641
2651
|
},
|
|
2642
2652
|
{
|
|
2643
|
-
|
|
2653
|
+
captures: {
|
|
2654
|
+
"1": {
|
|
2655
|
+
name: "keyword.control.async.swift"
|
|
2656
|
+
},
|
|
2657
|
+
"2": {
|
|
2658
|
+
name: "storage.modifier.swift"
|
|
2659
|
+
},
|
|
2660
|
+
"3": {
|
|
2661
|
+
name: "keyword.other.declaration-specifier.swift"
|
|
2662
|
+
}
|
|
2663
|
+
},
|
|
2664
|
+
match: "(?<!\\.)\\b(?:(?:(async)|(nonisolated))\\s+)?(let|var)\\b"
|
|
2665
|
+
},
|
|
2666
|
+
{
|
|
2667
|
+
match: "(?<!\\.)\\b(?:associatedtype|operator|typealias)\\b",
|
|
2644
2668
|
name: "keyword.other.declaration-specifier.swift"
|
|
2645
2669
|
},
|
|
2646
2670
|
{
|
package/dist/template.js
CHANGED
|
@@ -39,7 +39,7 @@ var repository = {
|
|
|
39
39
|
]
|
|
40
40
|
},
|
|
41
41
|
propertyBinding: {
|
|
42
|
-
begin: "(\\[\\s*@?[-_a-zA-Z0-9.$]
|
|
42
|
+
begin: "(\\[\\s*@?[-_a-zA-Z0-9.$]*%?\\s*])(=)([\"'])",
|
|
43
43
|
beginCaptures: {
|
|
44
44
|
"1": {
|
|
45
45
|
name: "entity.other.attribute-name.html entity.other.ng-binding-name.property.html",
|
|
@@ -169,7 +169,7 @@ var repository = {
|
|
|
169
169
|
bindingKey: {
|
|
170
170
|
patterns: [
|
|
171
171
|
{
|
|
172
|
-
match: "([\\[\\(]{1,2}|\\*)(?:\\s*)(@?[-_a-zA-Z0-9.$]
|
|
172
|
+
match: "([\\[\\(]{1,2}|\\*)(?:\\s*)(@?[-_a-zA-Z0-9.$]*%?)(?:\\s*)([\\]\\)]{1,2})?",
|
|
173
173
|
captures: {
|
|
174
174
|
"1": {
|
|
175
175
|
name: "punctuation.definition.ng-binding-name.begin.html"
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineVSCodeTheme } from './registry';
|
|
2
2
|
import './semanticHighlight';
|
|
3
|
-
export {
|
|
3
|
+
export { defineVSCodeTheme };
|
package/dist/theme/registry.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import * as monaco from 'monaco-editor';
|
|
2
2
|
import { IVSCodeTheme } from './tools';
|
|
3
|
-
export
|
|
3
|
+
export interface Theme {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function defineVSCodeTheme(id: string, vscodeThemeLoader: (uri?: monaco.Uri) => Promise<IVSCodeTheme>, themeExtensionPoint?: Partial<monaco.extra.IThemeExtensionPoint>, extensionData?: Partial<monaco.extra.ExtensionData>): Promise<void>;
|
|
4
8
|
export declare function getThemeData(themeName: string): monaco.extra.ColorThemeData | null;
|
|
9
|
+
export declare function getThemes(): Theme[];
|
package/dist/theme/tools.d.ts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import * as monaco from 'monaco-editor';
|
|
2
2
|
export interface IVSCodeTheme {
|
|
3
|
-
|
|
4
|
-
type: monaco.editor.ColorScheme;
|
|
5
|
-
colors: {
|
|
3
|
+
colors?: {
|
|
6
4
|
[name: string]: string;
|
|
7
5
|
};
|
|
8
6
|
tokenColors: monaco.extra.ITextMateThemingRule[];
|
|
9
|
-
semanticTokenColors?: Record<string, monaco.extra.ITokenColorizationSetting>;
|
|
7
|
+
semanticTokenColors?: Record<string, monaco.extra.ITokenColorizationSetting | string>;
|
|
10
8
|
semanticHighlighting?: boolean;
|
|
11
9
|
}
|
|
12
|
-
declare function convertTheme(
|
|
10
|
+
declare function convertTheme(themeData: monaco.extra.ColorThemeData, base: monaco.editor.BuiltinTheme): monaco.editor.IStandaloneThemeData;
|
|
13
11
|
declare function fixVSCodeThemeColors(vscodeTheme: IVSCodeTheme): IVSCodeTheme;
|
|
14
12
|
export { fixVSCodeThemeColors, convertTheme };
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
var $schema = "vscode://schemas/color-theme";
|
|
2
|
+
var name = "Dark+ (default dark)";
|
|
3
|
+
var include = "./dark_vs.json";
|
|
4
|
+
var tokenColors = [
|
|
5
|
+
{
|
|
6
|
+
name: "Function declarations",
|
|
7
|
+
scope: [
|
|
8
|
+
"entity.name.function",
|
|
9
|
+
"support.function",
|
|
10
|
+
"support.constant.handlebars",
|
|
11
|
+
"source.powershell variable.other.member",
|
|
12
|
+
"entity.name.operator.custom-literal"
|
|
13
|
+
],
|
|
14
|
+
settings: {
|
|
15
|
+
foreground: "#DCDCAA"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: "Types declaration and references",
|
|
20
|
+
scope: [
|
|
21
|
+
"support.class",
|
|
22
|
+
"support.type",
|
|
23
|
+
"entity.name.type",
|
|
24
|
+
"entity.name.namespace",
|
|
25
|
+
"entity.other.attribute",
|
|
26
|
+
"entity.name.scope-resolution",
|
|
27
|
+
"entity.name.class",
|
|
28
|
+
"storage.type.numeric.go",
|
|
29
|
+
"storage.type.byte.go",
|
|
30
|
+
"storage.type.boolean.go",
|
|
31
|
+
"storage.type.string.go",
|
|
32
|
+
"storage.type.uintptr.go",
|
|
33
|
+
"storage.type.error.go",
|
|
34
|
+
"storage.type.rune.go",
|
|
35
|
+
"storage.type.cs",
|
|
36
|
+
"storage.type.generic.cs",
|
|
37
|
+
"storage.type.modifier.cs",
|
|
38
|
+
"storage.type.variable.cs",
|
|
39
|
+
"storage.type.annotation.java",
|
|
40
|
+
"storage.type.generic.java",
|
|
41
|
+
"storage.type.java",
|
|
42
|
+
"storage.type.object.array.java",
|
|
43
|
+
"storage.type.primitive.array.java",
|
|
44
|
+
"storage.type.primitive.java",
|
|
45
|
+
"storage.type.token.java",
|
|
46
|
+
"storage.type.groovy",
|
|
47
|
+
"storage.type.annotation.groovy",
|
|
48
|
+
"storage.type.parameters.groovy",
|
|
49
|
+
"storage.type.generic.groovy",
|
|
50
|
+
"storage.type.object.array.groovy",
|
|
51
|
+
"storage.type.primitive.array.groovy",
|
|
52
|
+
"storage.type.primitive.groovy"
|
|
53
|
+
],
|
|
54
|
+
settings: {
|
|
55
|
+
foreground: "#4EC9B0"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: "Types declaration and references, TS grammar specific",
|
|
60
|
+
scope: [
|
|
61
|
+
"meta.type.cast.expr",
|
|
62
|
+
"meta.type.new.expr",
|
|
63
|
+
"support.constant.math",
|
|
64
|
+
"support.constant.dom",
|
|
65
|
+
"support.constant.json",
|
|
66
|
+
"entity.other.inherited-class"
|
|
67
|
+
],
|
|
68
|
+
settings: {
|
|
69
|
+
foreground: "#4EC9B0"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "Control flow / Special keywords",
|
|
74
|
+
scope: [
|
|
75
|
+
"keyword.control",
|
|
76
|
+
"source.cpp keyword.operator.new",
|
|
77
|
+
"keyword.operator.delete",
|
|
78
|
+
"keyword.other.using",
|
|
79
|
+
"keyword.other.operator",
|
|
80
|
+
"entity.name.operator"
|
|
81
|
+
],
|
|
82
|
+
settings: {
|
|
83
|
+
foreground: "#C586C0"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: "Variable and parameter name",
|
|
88
|
+
scope: [
|
|
89
|
+
"variable",
|
|
90
|
+
"meta.definition.variable.name",
|
|
91
|
+
"support.variable",
|
|
92
|
+
"entity.name.variable",
|
|
93
|
+
"constant.other.placeholder"
|
|
94
|
+
],
|
|
95
|
+
settings: {
|
|
96
|
+
foreground: "#9CDCFE"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: "Constants and enums",
|
|
101
|
+
scope: [
|
|
102
|
+
"variable.other.constant",
|
|
103
|
+
"variable.other.enummember"
|
|
104
|
+
],
|
|
105
|
+
settings: {
|
|
106
|
+
foreground: "#4FC1FF"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: "Object keys, TS grammar specific",
|
|
111
|
+
scope: [
|
|
112
|
+
"meta.object-literal.key"
|
|
113
|
+
],
|
|
114
|
+
settings: {
|
|
115
|
+
foreground: "#9CDCFE"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: "CSS property value",
|
|
120
|
+
scope: [
|
|
121
|
+
"support.constant.property-value",
|
|
122
|
+
"support.constant.font-name",
|
|
123
|
+
"support.constant.media-type",
|
|
124
|
+
"support.constant.media",
|
|
125
|
+
"constant.other.color.rgb-value",
|
|
126
|
+
"constant.other.rgb-value",
|
|
127
|
+
"support.constant.color"
|
|
128
|
+
],
|
|
129
|
+
settings: {
|
|
130
|
+
foreground: "#CE9178"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: "Regular expression groups",
|
|
135
|
+
scope: [
|
|
136
|
+
"punctuation.definition.group.regexp",
|
|
137
|
+
"punctuation.definition.group.assertion.regexp",
|
|
138
|
+
"punctuation.definition.character-class.regexp",
|
|
139
|
+
"punctuation.character.set.begin.regexp",
|
|
140
|
+
"punctuation.character.set.end.regexp",
|
|
141
|
+
"keyword.operator.negation.regexp",
|
|
142
|
+
"support.other.parenthesis.regexp"
|
|
143
|
+
],
|
|
144
|
+
settings: {
|
|
145
|
+
foreground: "#CE9178"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
scope: [
|
|
150
|
+
"constant.character.character-class.regexp",
|
|
151
|
+
"constant.other.character-class.set.regexp",
|
|
152
|
+
"constant.other.character-class.regexp",
|
|
153
|
+
"constant.character.set.regexp"
|
|
154
|
+
],
|
|
155
|
+
settings: {
|
|
156
|
+
foreground: "#d16969"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
scope: [
|
|
161
|
+
"keyword.operator.or.regexp",
|
|
162
|
+
"keyword.control.anchor.regexp"
|
|
163
|
+
],
|
|
164
|
+
settings: {
|
|
165
|
+
foreground: "#DCDCAA"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
scope: "keyword.operator.quantifier.regexp",
|
|
170
|
+
settings: {
|
|
171
|
+
foreground: "#d7ba7d"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
scope: "constant.character",
|
|
176
|
+
settings: {
|
|
177
|
+
foreground: "#569cd6"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
scope: "constant.character.escape",
|
|
182
|
+
settings: {
|
|
183
|
+
foreground: "#d7ba7d"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
scope: "entity.name.label",
|
|
188
|
+
settings: {
|
|
189
|
+
foreground: "#C8C8C8"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
];
|
|
193
|
+
var semanticTokenColors = {
|
|
194
|
+
newOperator: "#C586C0",
|
|
195
|
+
stringLiteral: "#ce9178",
|
|
196
|
+
customLiteral: "#DCDCAA",
|
|
197
|
+
numberLiteral: "#b5cea8"
|
|
198
|
+
};
|
|
199
|
+
var themeDefaults_dark_plus = {
|
|
200
|
+
$schema: $schema,
|
|
201
|
+
name: name,
|
|
202
|
+
include: include,
|
|
203
|
+
tokenColors: tokenColors,
|
|
204
|
+
semanticTokenColors: semanticTokenColors
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
export { $schema, themeDefaults_dark_plus as default, include, name, semanticTokenColors, tokenColors };
|