@codingame/monaco-editor-wrapper 1.4.0 → 1.5.0
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/buildtarget.js +53 -0
- package/dist/cpptools.js +15 -0
- package/dist/css.worker.js +1 -1
- package/dist/d2.js +2 -2
- package/dist/dcf.js +3 -3
- package/dist/features/extensionConfigurations.js +4 -1
- package/dist/hacks.d.ts +2 -1
- package/dist/html.worker.js +1 -1
- package/dist/java-java.js +4 -1
- package/dist/java2.js +2 -1
- package/dist/javascript.js +83 -2
- package/dist/javascriptreact.js +83 -2
- package/dist/json.worker.js +1 -1
- package/dist/jsx-tags.js +51 -2
- package/dist/languages/extensions/languageConfigurationLoader.d.ts +9 -1
- package/dist/languages/textMate/CGTMTokenizationSupport.d.ts +2 -2
- package/dist/lua2.js +36 -1
- package/dist/main.js +153 -99
- package/dist/markdown-basics-markdown.js +18 -0
- package/dist/monaco.d.ts +0 -1
- package/dist/r2.js +1 -1
- package/dist/scalameta.js +8 -2
- package/dist/services/CustomFoldingRulesLanguageConfigurationService.d.ts +4 -0
- package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +3 -3
- package/dist/services/TextModelService.d.ts +25 -0
- package/dist/solargraph.js +192 -0
- package/dist/theme/tools.d.ts +2 -1
- package/dist/ts.worker.js +1 -1
- package/dist/typescript-language-features.js +34 -24
- package/dist/typescript.js +83 -2
- package/dist/typescriptreact.js +83 -2
- package/dist/vscode-R-rmd.js +2 -2
- package/dist/vscode-R.js +7 -1
- package/dist/worker.js +1 -1
- package/package.json +18 -13
- package/stats.html +1 -1
package/dist/monaco.d.ts
CHANGED
package/dist/r2.js
CHANGED
|
@@ -439,7 +439,7 @@ var repository = {
|
|
|
439
439
|
"function-declarations": {
|
|
440
440
|
patterns: [
|
|
441
441
|
{
|
|
442
|
-
match: "((?:`[^`\\\\]*(?:\\\\.[^`\\\\]*)*`)|(?:[[:alpha:].][[:alnum:]._]*))\\s*(<?<-|=(?!=))\\s*(function)",
|
|
442
|
+
match: "((?:`[^`\\\\]*(?:\\\\.[^`\\\\]*)*`)|(?:[[:alpha:].][[:alnum:]._]*))\\s*(<?<-|=(?!=))\\s*(function)(?!\\w)",
|
|
443
443
|
captures: {
|
|
444
444
|
"1": {
|
|
445
445
|
name: "entity.name.function.r"
|
package/dist/scalameta.js
CHANGED
|
@@ -4,7 +4,7 @@ var scalameta = [
|
|
|
4
4
|
"properties": {
|
|
5
5
|
"metals.serverVersion": {
|
|
6
6
|
"type": "string",
|
|
7
|
-
"default": "0.11.1",
|
|
7
|
+
"default": "0.11.1+114-58f06ff8-SNAPSHOT",
|
|
8
8
|
"markdownDescription": "The version of the Metals server artifact. Requires reloading the window.\n\n**Change only if you know what you're doing**",
|
|
9
9
|
"scope": 3
|
|
10
10
|
},
|
|
@@ -51,7 +51,7 @@ var scalameta = [
|
|
|
51
51
|
"metals.javaHome": {
|
|
52
52
|
"type": "string",
|
|
53
53
|
"scope": 6,
|
|
54
|
-
"markdownDescription": "Optional path to the Java home directory. Requires reloading the window.\n\nDefaults to the most recent Java version between 8 and
|
|
54
|
+
"markdownDescription": "Optional path to the Java home directory. Requires reloading the window.\n\nDefaults to the most recent Java version between 8 and 17 (inclusive) computed by the `locate-java-home` npm package."
|
|
55
55
|
},
|
|
56
56
|
"metals.sbtScript": {
|
|
57
57
|
"type": "string",
|
|
@@ -169,6 +169,12 @@ var scalameta = [
|
|
|
169
169
|
"type": "string",
|
|
170
170
|
"markdownDescription": "Optional Eclipse format profile to use.",
|
|
171
171
|
"scope": 3
|
|
172
|
+
},
|
|
173
|
+
"metals.suggestLatestUpgrade": {
|
|
174
|
+
"type": "boolean",
|
|
175
|
+
"default": false,
|
|
176
|
+
"markdownDescription": "Once in a day, notify if there are new server releases (including snapshots)",
|
|
177
|
+
"scope": 3
|
|
172
178
|
}
|
|
173
179
|
}
|
|
174
180
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as monaco from 'monaco-editor';
|
|
2
|
-
import
|
|
2
|
+
import TextModelService from './TextModelService';
|
|
3
3
|
export declare type EditorOpenHandler = (model: monaco.editor.ITextModel, input: monaco.extra.IResourceEditorInput, editor: monaco.editor.ICodeEditor, sideBySide?: boolean) => Promise<monaco.editor.ICodeEditor | null>;
|
|
4
|
-
export default class MultiEditorStandaloneCodeEditorServiceImpl extends monaco.extra.
|
|
4
|
+
export default class MultiEditorStandaloneCodeEditorServiceImpl extends monaco.extra.StandaloneCodeEditorService {
|
|
5
5
|
private modelResolverService;
|
|
6
|
-
constructor(
|
|
6
|
+
constructor(contextKeyService: monaco.extra.IContextKeyService, themeService: monaco.editor.IThemeService, modelResolverService: TextModelService);
|
|
7
7
|
private handlers;
|
|
8
8
|
registerEditorOpenHandler(handler: EditorOpenHandler): monaco.IDisposable;
|
|
9
9
|
openCodeEditor(input: monaco.extra.IResourceEditorInput, editor: monaco.editor.ICodeEditor, sideBySide?: boolean): Promise<monaco.editor.ICodeEditor | null>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as monaco from 'monaco-editor';
|
|
2
|
+
export declare class SimpleResolvedModel implements monaco.extra.IResolvedTextEditorModel {
|
|
3
|
+
private model;
|
|
4
|
+
private readonly;
|
|
5
|
+
private readonly _onWillDispose;
|
|
6
|
+
constructor(model: monaco.editor.ITextModel, readonly: boolean);
|
|
7
|
+
getLanguageId(): string | undefined;
|
|
8
|
+
get onWillDispose(): monaco.IEvent<void>;
|
|
9
|
+
resolve(): Promise<void>;
|
|
10
|
+
get textEditorModel(): monaco.editor.ITextModel;
|
|
11
|
+
createSnapshot(): monaco.editor.ITextSnapshot;
|
|
12
|
+
isReadonly(): boolean;
|
|
13
|
+
private disposed;
|
|
14
|
+
dispose(): void;
|
|
15
|
+
isDisposed(): boolean;
|
|
16
|
+
isResolved(): boolean;
|
|
17
|
+
getMode(): string | undefined;
|
|
18
|
+
}
|
|
19
|
+
export default class TextModelService extends monaco.extra.StandaloneTextModelService {
|
|
20
|
+
private readonly resourceModelCollection;
|
|
21
|
+
private readonly asyncModelCollection;
|
|
22
|
+
constructor(modelService: monaco.extra.IModelService);
|
|
23
|
+
registerTextModelContentProvider(scheme: string, provider: monaco.extra.ITextModelContentProvider): monaco.IDisposable;
|
|
24
|
+
createModelReference(resource: monaco.Uri): Promise<monaco.extra.IReference<monaco.extra.IResolvedTextEditorModel>>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
var solargraph = [
|
|
2
|
+
{
|
|
3
|
+
"title": "Solargraph settings for Ruby",
|
|
4
|
+
"properties": {
|
|
5
|
+
"solargraph.transport": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"default": "socket",
|
|
8
|
+
"enum": [
|
|
9
|
+
"socket",
|
|
10
|
+
"stdio",
|
|
11
|
+
"external"
|
|
12
|
+
],
|
|
13
|
+
"description": "The type of transport to use.",
|
|
14
|
+
"scope": 3
|
|
15
|
+
},
|
|
16
|
+
"solargraph.externalServer": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"description": "The host and port to use for external transports. (Ignored for stdio and socket transports.)",
|
|
19
|
+
"properties": {
|
|
20
|
+
"host": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"default": "localhost"
|
|
23
|
+
},
|
|
24
|
+
"port": {
|
|
25
|
+
"type": "integer",
|
|
26
|
+
"default": 7658
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"default": {
|
|
30
|
+
"host": "localhost",
|
|
31
|
+
"port": 7658
|
|
32
|
+
},
|
|
33
|
+
"scope": 3
|
|
34
|
+
},
|
|
35
|
+
"solargraph.commandPath": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"default": "solargraph",
|
|
38
|
+
"description": "Path to the solargraph command. Set this to an absolute path to select from multiple installed Ruby versions.",
|
|
39
|
+
"scope": 4
|
|
40
|
+
},
|
|
41
|
+
"solargraph.useBundler": {
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"description": "Use `bundle exec` to run solargraph. (If this is true, the solargraph.commandPath setting is ignored.)",
|
|
44
|
+
"default": false,
|
|
45
|
+
"scope": 3
|
|
46
|
+
},
|
|
47
|
+
"solargraph.bundlerPath": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "Path to the bundle executable, defaults to 'bundle'. Needs to be an absolute path for the 'bundle' exec/shim",
|
|
50
|
+
"default": "bundle",
|
|
51
|
+
"scope": 4
|
|
52
|
+
},
|
|
53
|
+
"solargraph.checkGemVersion": {
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"description": "Automatically check if a new version of the Solargraph gem is available.",
|
|
56
|
+
"default": true,
|
|
57
|
+
"enum": [
|
|
58
|
+
true,
|
|
59
|
+
false
|
|
60
|
+
],
|
|
61
|
+
"scope": 3
|
|
62
|
+
},
|
|
63
|
+
"solargraph.completion": {
|
|
64
|
+
"type": [
|
|
65
|
+
"boolean"
|
|
66
|
+
],
|
|
67
|
+
"description": "Enable completion",
|
|
68
|
+
"default": true,
|
|
69
|
+
"enum": [
|
|
70
|
+
true,
|
|
71
|
+
false
|
|
72
|
+
],
|
|
73
|
+
"scope": 3
|
|
74
|
+
},
|
|
75
|
+
"solargraph.hover": {
|
|
76
|
+
"type": [
|
|
77
|
+
"boolean"
|
|
78
|
+
],
|
|
79
|
+
"description": "Enable hover",
|
|
80
|
+
"default": true,
|
|
81
|
+
"enum": [
|
|
82
|
+
true,
|
|
83
|
+
false
|
|
84
|
+
],
|
|
85
|
+
"scope": 3
|
|
86
|
+
},
|
|
87
|
+
"solargraph.diagnostics": {
|
|
88
|
+
"type": [
|
|
89
|
+
"boolean"
|
|
90
|
+
],
|
|
91
|
+
"description": "Enable diagnostics",
|
|
92
|
+
"default": true,
|
|
93
|
+
"enum": [
|
|
94
|
+
true,
|
|
95
|
+
false
|
|
96
|
+
],
|
|
97
|
+
"scope": 3
|
|
98
|
+
},
|
|
99
|
+
"solargraph.autoformat": {
|
|
100
|
+
"type": [
|
|
101
|
+
"boolean"
|
|
102
|
+
],
|
|
103
|
+
"description": "Enable automatic formatting while typing (WARNING: experimental)",
|
|
104
|
+
"default": false,
|
|
105
|
+
"enum": [
|
|
106
|
+
true,
|
|
107
|
+
false
|
|
108
|
+
],
|
|
109
|
+
"scope": 3
|
|
110
|
+
},
|
|
111
|
+
"solargraph.formatting": {
|
|
112
|
+
"type": [
|
|
113
|
+
"boolean"
|
|
114
|
+
],
|
|
115
|
+
"description": "Enable document formatting",
|
|
116
|
+
"enum": [
|
|
117
|
+
true,
|
|
118
|
+
false
|
|
119
|
+
],
|
|
120
|
+
"default": true,
|
|
121
|
+
"scope": 3
|
|
122
|
+
},
|
|
123
|
+
"solargraph.symbols": {
|
|
124
|
+
"type": [
|
|
125
|
+
"boolean"
|
|
126
|
+
],
|
|
127
|
+
"description": "Enable symbols",
|
|
128
|
+
"enum": [
|
|
129
|
+
true,
|
|
130
|
+
false
|
|
131
|
+
],
|
|
132
|
+
"default": true,
|
|
133
|
+
"scope": 3
|
|
134
|
+
},
|
|
135
|
+
"solargraph.definitions": {
|
|
136
|
+
"type": [
|
|
137
|
+
"boolean"
|
|
138
|
+
],
|
|
139
|
+
"description": "Enable definitions (go to, etc.)",
|
|
140
|
+
"enum": [
|
|
141
|
+
true,
|
|
142
|
+
false
|
|
143
|
+
],
|
|
144
|
+
"default": true,
|
|
145
|
+
"scope": 3
|
|
146
|
+
},
|
|
147
|
+
"solargraph.rename": {
|
|
148
|
+
"type": [
|
|
149
|
+
"boolean"
|
|
150
|
+
],
|
|
151
|
+
"description": "Enable symbol renaming",
|
|
152
|
+
"enum": [
|
|
153
|
+
true,
|
|
154
|
+
false
|
|
155
|
+
],
|
|
156
|
+
"default": true,
|
|
157
|
+
"scope": 3
|
|
158
|
+
},
|
|
159
|
+
"solargraph.references": {
|
|
160
|
+
"type": [
|
|
161
|
+
"boolean"
|
|
162
|
+
],
|
|
163
|
+
"description": "Enable finding references",
|
|
164
|
+
"enum": [
|
|
165
|
+
true,
|
|
166
|
+
false
|
|
167
|
+
],
|
|
168
|
+
"default": true,
|
|
169
|
+
"scope": 3
|
|
170
|
+
},
|
|
171
|
+
"solargraph.folding": {
|
|
172
|
+
"type": "boolean",
|
|
173
|
+
"description": "Enable folding ranges",
|
|
174
|
+
"default": true,
|
|
175
|
+
"scope": 3
|
|
176
|
+
},
|
|
177
|
+
"solargraph.logLevel": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"description": "Level of debug info to log. `warn` is least and `debug` is most.",
|
|
180
|
+
"enum": [
|
|
181
|
+
"warn",
|
|
182
|
+
"info",
|
|
183
|
+
"debug"
|
|
184
|
+
],
|
|
185
|
+
"default": "warn",
|
|
186
|
+
"scope": 3
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
];
|
|
191
|
+
|
|
192
|
+
export { solargraph as default };
|
package/dist/theme/tools.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ export interface IVSCodeTheme {
|
|
|
6
6
|
[name: string]: string;
|
|
7
7
|
};
|
|
8
8
|
tokenColors: monaco.extra.ITextMateThemingRule[];
|
|
9
|
-
semanticTokenColors
|
|
9
|
+
semanticTokenColors?: Record<string, monaco.extra.ITokenColorizationSetting>;
|
|
10
|
+
semanticHighlighting?: boolean;
|
|
10
11
|
}
|
|
11
12
|
declare function convertTheme(theme: IVSCodeTheme): monaco.editor.IStandaloneThemeData;
|
|
12
13
|
declare function fixVSCodeThemeColors(vscodeTheme: IVSCodeTheme): IVSCodeTheme;
|