@codingame/monaco-vscode-api 1.78.3 → 1.78.4-next.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/api2.js +69 -4
- package/dist/coffeescript.js +2 -9
- package/dist/cpp.js +2 -16
- package/dist/csharp.js +2 -9
- package/dist/default-extensions/bat.js +3 -5
- package/dist/default-extensions/clojure.js +4 -6
- package/dist/default-extensions/coffeescript.js +3 -5
- package/dist/default-extensions/cpp.js +3 -7
- package/dist/default-extensions/csharp.js +3 -5
- package/dist/default-extensions/css.js +4 -6
- package/dist/default-extensions/dart.js +4 -6
- package/dist/default-extensions/diff.js +4 -6
- package/dist/default-extensions/docker.js +4 -6
- package/dist/default-extensions/fsharp.js +3 -5
- package/dist/default-extensions/go.js +4 -6
- package/dist/default-extensions/groovy.js +3 -5
- package/dist/default-extensions/handlebars.js +4 -6
- package/dist/default-extensions/hlsl.js +4 -6
- package/dist/default-extensions/html.js +3 -5
- package/dist/default-extensions/ini.js +4 -7
- package/dist/default-extensions/java.js +3 -5
- package/dist/default-extensions/javascript.js +4 -8
- package/dist/default-extensions/json.js +4 -7
- package/dist/default-extensions/julia.js +4 -6
- package/dist/default-extensions/latex.js +6 -5
- package/dist/default-extensions/less.js +4 -6
- package/dist/default-extensions/log.js +2 -4
- package/dist/default-extensions/lua.js +4 -6
- package/dist/default-extensions/make.js +4 -6
- package/dist/default-extensions/markdown-basics.js +3 -5
- package/dist/default-extensions/objective-c.js +4 -7
- package/dist/default-extensions/perl.js +5 -7
- package/dist/default-extensions/php.js +3 -5
- package/dist/default-extensions/powershell.js +4 -6
- package/dist/default-extensions/pug.js +4 -6
- package/dist/default-extensions/python.js +4 -6
- package/dist/default-extensions/r.js +4 -6
- package/dist/default-extensions/razor.js +4 -6
- package/dist/default-extensions/ruby.js +4 -6
- package/dist/default-extensions/rust.js +4 -6
- package/dist/default-extensions/scss.js +4 -6
- package/dist/default-extensions/shaderlab.js +4 -6
- package/dist/default-extensions/shellscript.js +4 -6
- package/dist/default-extensions/sql.js +4 -6
- package/dist/default-extensions/swift.js +3 -5
- package/dist/default-extensions/theme-abyss.js +2 -4
- package/dist/default-extensions/theme-defaults.js +2 -4
- package/dist/default-extensions/theme-kimbie-dark.js +2 -4
- package/dist/default-extensions/theme-monokai-dimmed.js +2 -4
- package/dist/default-extensions/theme-monokai.js +2 -4
- package/dist/default-extensions/theme-quietlight.js +2 -4
- package/dist/default-extensions/theme-red.js +2 -4
- package/dist/default-extensions/theme-seti.js +2 -4
- package/dist/default-extensions/theme-solarized-dark.js +2 -4
- package/dist/default-extensions/theme-solarized-light.js +2 -4
- package/dist/default-extensions/theme-tomorrow-night-blue.js +2 -4
- package/dist/default-extensions/typescript-basics.js +3 -7
- package/dist/default-extensions/typescript-language-features.js +7 -0
- package/dist/default-extensions/vb.js +3 -5
- package/dist/default-extensions/xml.js +5 -7
- package/dist/default-extensions/yaml.js +3 -7
- package/dist/extensions.d.ts +9 -2
- package/dist/fsharp.js +2 -9
- package/dist/groovy.js +2 -9
- package/dist/html.js +2 -10
- package/dist/java.js +2 -9
- package/dist/javascript.js +2 -14
- package/dist/latex-cpp-embedded-language-configuration.js +2 -0
- package/dist/latex-language-configuration.js +2 -0
- package/dist/markdown-latex-combined-language-configuration.js +2 -0
- package/dist/modelEditor.d.ts +136 -1398
- package/dist/monaco.d.ts +9 -5
- package/dist/monaco.js +370 -44
- package/dist/php.js +2 -10
- package/dist/polyfill.js +29 -10
- package/dist/rollup-vsix-plugin.d.ts +4 -2
- package/dist/rollup-vsix-plugin.js +903 -27
- package/dist/swift.js +2 -9
- package/dist/vb.js +2 -9
- package/package.json +3 -3
- package/dist/bat.js +0 -9
- package/dist/clojure.js +0 -8
- package/dist/coffeescript2.js +0 -2
- package/dist/cpp2.js +0 -2
- package/dist/csharp2.js +0 -2
- package/dist/css.js +0 -8
- package/dist/dart.js +0 -8
- package/dist/diff.js +0 -8
- package/dist/docker.js +0 -8
- package/dist/fsharp2.js +0 -2
- package/dist/go.js +0 -8
- package/dist/groovy2.js +0 -2
- package/dist/handlebars.js +0 -8
- package/dist/hlsl.js +0 -8
- package/dist/html2.js +0 -2
- package/dist/ini.js +0 -10
- package/dist/java2.js +0 -2
- package/dist/javascript2.js +0 -2
- package/dist/json.js +0 -10
- package/dist/julia.js +0 -8
- package/dist/latex.js +0 -11
- package/dist/less.js +0 -8
- package/dist/log.js +0 -7
- package/dist/lua.js +0 -8
- package/dist/make.js +0 -8
- package/dist/markdown-basics.js +0 -9
- package/dist/objective-c.js +0 -10
- package/dist/perl.js +0 -10
- package/dist/php2.js +0 -2
- package/dist/powershell.js +0 -8
- package/dist/pug.js +0 -8
- package/dist/python.js +0 -9
- package/dist/r.js +0 -8
- package/dist/razor.js +0 -8
- package/dist/ruby.js +0 -8
- package/dist/rust.js +0 -8
- package/dist/scss.js +0 -9
- package/dist/shaderlab.js +0 -8
- package/dist/shellscript.js +0 -8
- package/dist/sql.js +0 -8
- package/dist/swift2.js +0 -2
- package/dist/theme-abyss.js +0 -7
- package/dist/theme-defaults.js +0 -15
- package/dist/theme-kimbie-dark.js +0 -7
- package/dist/theme-monokai-dimmed.js +0 -7
- package/dist/theme-monokai.js +0 -7
- package/dist/theme-quietlight.js +0 -7
- package/dist/theme-red.js +0 -7
- package/dist/theme-seti.js +0 -7
- package/dist/theme-solarized-dark.js +0 -7
- package/dist/theme-solarized-light.js +0 -7
- package/dist/theme-tomorrow-night-blue.js +0 -7
- package/dist/typescript-basics.js +0 -14
- package/dist/vb2.js +0 -2
- package/dist/xml.js +0 -10
- package/dist/yaml.js +0 -10
package/dist/monaco.d.ts
CHANGED
|
@@ -5477,6 +5477,14 @@ interface IResolvedTextFileEditorModel extends ITextFileEditorModel {
|
|
|
5477
5477
|
createSnapshot(): ITextSnapshot;
|
|
5478
5478
|
}
|
|
5479
5479
|
|
|
5480
|
+
type Unpacked<T> = T extends (infer U)[] ? U : T;
|
|
5481
|
+
type JsonSchema = Unpacked<NonNullable<monaco.languages.json.DiagnosticsOptions['schemas']>>;
|
|
5482
|
+
declare function registerJsonSchema(schema: JsonSchema): monaco.IDisposable;
|
|
5483
|
+
/**
|
|
5484
|
+
* Synchronize registered json schema on the monaco json worker
|
|
5485
|
+
*/
|
|
5486
|
+
declare function synchronizeJsonSchemas(): monaco.IDisposable;
|
|
5487
|
+
|
|
5480
5488
|
declare function writeFile(uri: URI, content: string): Promise<void>;
|
|
5481
5489
|
declare function deleteFile(uri: URI, options?: Partial<IFileDeleteOptions>): Promise<void>;
|
|
5482
5490
|
declare function createModelReference(resource: URI, content?: string): Promise<IReference<ITextFileEditorModel>>;
|
|
@@ -5486,9 +5494,5 @@ declare const Extensions: {
|
|
|
5486
5494
|
Configuration: string;
|
|
5487
5495
|
JSONContribution: string;
|
|
5488
5496
|
};
|
|
5489
|
-
/**
|
|
5490
|
-
* Synchronize registered json schema on the monaco json worker
|
|
5491
|
-
*/
|
|
5492
|
-
declare function synchronizeJsonSchemas(): monaco.IDisposable;
|
|
5493
5497
|
|
|
5494
|
-
export { CommandsRegistry,
|
|
5498
|
+
export { CommandsRegistry, DisposableStore, Extensions, FoldingController, FoldingModel, IJSONContributionRegistry, IJSONSchema, IReference, ITextFileEditorModel, JsonSchema, Registry, createConfiguredDiffEditor, createConfiguredEditor, createModelReference, deleteFile, errorHandler, registerColor, registerJsonSchema, setCollapseStateForMatchingLines, synchronizeJsonSchemas, writeFile };
|
package/dist/monaco.js
CHANGED
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
import { __decorate, __param, IFileService, distinct, IUserDataProfilesService } from './polyfill.js';
|
|
2
|
-
|
|
3
|
-
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js';
|
|
1
|
+
import { Emitter, __decorate, Extensions$2, __param, IFileService, distinct, IUserDataProfilesService } from './polyfill.js';
|
|
2
|
+
import { Extensions as Extensions$1 } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
4
3
|
export { registerColor } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { ExtensionsRegistry } from './extensionsRegistry.js';
|
|
5
|
+
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
6
|
+
import { isString, isObject } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
7
|
+
import { joinPath, isEqualOrParent } from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
8
8
|
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
9
9
|
export { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
10
|
+
import { Color } from 'monaco-editor/esm/vs/base/common/color.js';
|
|
11
|
+
import { createInjectedClass } from './injection.js';
|
|
12
|
+
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js';
|
|
13
|
+
import { Disposable, extensions } from './api2.js';
|
|
14
|
+
import { Extensions as Extensions$3 } from 'monaco-editor/esm/vs/platform/jsonschemas/common/jsonContributionRegistry.js';
|
|
15
|
+
import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
10
16
|
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
17
|
+
import { editorOptionsRegistry } from 'monaco-editor/esm/vs/editor/common/config/editorOptions.js';
|
|
18
|
+
import { equals } from 'monaco-editor/esm/vs/base/common/arrays.js';
|
|
11
19
|
import { VSBuffer } from 'monaco-editor/esm/vs/base/common/buffer.js';
|
|
12
20
|
import { ITextModelService } from 'monaco-editor/esm/vs/editor/common/services/resolverService.js';
|
|
13
|
-
import { Extensions as Extensions$
|
|
14
|
-
import { Extensions as Extensions$2 } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
|
|
21
|
+
import { Extensions as Extensions$4 } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
|
|
15
22
|
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
16
23
|
import { ITextResourceConfigurationService } from 'monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js';
|
|
17
24
|
import { StandaloneDiffEditor, StandaloneEditor } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneCodeEditor.js';
|
|
18
|
-
import { isObject } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
19
25
|
import { deepClone } from 'monaco-editor/esm/vs/base/common/objects.js';
|
|
20
26
|
export { errorHandler } from 'monaco-editor/esm/vs/base/common/errors.js';
|
|
21
27
|
export { DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
@@ -111,6 +117,358 @@ class EditorOptionsUtil {
|
|
|
111
117
|
return changed;
|
|
112
118
|
}
|
|
113
119
|
}
|
|
120
|
+
const configurationExtPoint$1 = ( (ExtensionsRegistry.registerExtensionPoint({
|
|
121
|
+
extensionPoint: 'jsonValidation',
|
|
122
|
+
defaultExtensionKind: ['workspace', 'web'],
|
|
123
|
+
jsonSchema: {
|
|
124
|
+
description: ( (localize('contributes.jsonValidation', 'Contributes json schema configuration.'))),
|
|
125
|
+
type: 'array',
|
|
126
|
+
defaultSnippets: [{ body: [{ fileMatch: '${1:file.json}', url: '${2:url}' }] }],
|
|
127
|
+
items: {
|
|
128
|
+
type: 'object',
|
|
129
|
+
defaultSnippets: [{ body: { fileMatch: '${1:file.json}', url: '${2:url}' } }],
|
|
130
|
+
properties: {
|
|
131
|
+
fileMatch: {
|
|
132
|
+
type: ['string', 'array'],
|
|
133
|
+
description: ( (localize(
|
|
134
|
+
'contributes.jsonValidation.fileMatch',
|
|
135
|
+
'The file pattern (or an array of patterns) to match, for example "package.json" or "*.launch". Exclusion patterns start with \'!\''
|
|
136
|
+
))),
|
|
137
|
+
items: {
|
|
138
|
+
type: ['string']
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
url: {
|
|
142
|
+
description: ( (localize(
|
|
143
|
+
'contributes.jsonValidation.url',
|
|
144
|
+
'A schema URL (\'http:\', \'https:\') or relative path to the extension folder (\'./\').'
|
|
145
|
+
))),
|
|
146
|
+
type: 'string'
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
})));
|
|
152
|
+
class JSONValidationExtensionPoint {
|
|
153
|
+
constructor() {
|
|
154
|
+
configurationExtPoint$1.setHandler((extensions) => {
|
|
155
|
+
for (const extension of extensions) {
|
|
156
|
+
const extensionValue = extension.value;
|
|
157
|
+
const collector = extension.collector;
|
|
158
|
+
const extensionLocation = extension.description.extensionLocation;
|
|
159
|
+
if (!extensionValue || !Array.isArray(extensionValue)) {
|
|
160
|
+
collector.error(( (localize('invalid.jsonValidation', "'configuration.jsonValidation' must be a array"))));
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
extensionValue.forEach(extension => {
|
|
164
|
+
if (!isString(extension.fileMatch) && !(Array.isArray(extension.fileMatch) && extension.fileMatch.every(isString))) {
|
|
165
|
+
collector.error(( (localize(
|
|
166
|
+
'invalid.fileMatch',
|
|
167
|
+
"'configuration.jsonValidation.fileMatch' must be defined as a string or an array of strings."
|
|
168
|
+
))));
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
const uri = extension.url;
|
|
172
|
+
if (!isString(uri)) {
|
|
173
|
+
collector.error(( (localize(
|
|
174
|
+
'invalid.url',
|
|
175
|
+
"'configuration.jsonValidation.url' must be a URL or relative path"
|
|
176
|
+
))));
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
if (uri.startsWith('./')) {
|
|
180
|
+
try {
|
|
181
|
+
const colorThemeLocation = joinPath(extensionLocation, uri);
|
|
182
|
+
if (!isEqualOrParent(colorThemeLocation, extensionLocation)) {
|
|
183
|
+
collector.warn(( (localize(
|
|
184
|
+
'invalid.path.1',
|
|
185
|
+
"Expected `contributes.{0}.url` ({1}) to be included inside extension's folder ({2}). This might make the extension non-portable.",
|
|
186
|
+
configurationExtPoint$1.name,
|
|
187
|
+
(colorThemeLocation.toString()),
|
|
188
|
+
extensionLocation.path
|
|
189
|
+
))));
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
catch (e) {
|
|
193
|
+
collector.error(( (localize(
|
|
194
|
+
'invalid.url.fileschema',
|
|
195
|
+
"'configuration.jsonValidation.url' is an invalid relative URL: {0}",
|
|
196
|
+
e.message
|
|
197
|
+
))));
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
else if (!/^[^:/?#]+:\/\//.test(uri)) {
|
|
201
|
+
collector.error(( (localize(
|
|
202
|
+
'invalid.url.schema',
|
|
203
|
+
"'configuration.jsonValidation.url' must be an absolute URL or start with './' to reference schemas located in the extension."
|
|
204
|
+
))));
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
const colorRegistry = ( (Registry.as(Extensions$1.ColorContribution)));
|
|
213
|
+
const colorReferenceSchema = colorRegistry.getColorReferenceSchema();
|
|
214
|
+
const colorIdPattern = '^\\w+[.\\w+]*$';
|
|
215
|
+
const configurationExtPoint = ( (ExtensionsRegistry.registerExtensionPoint({
|
|
216
|
+
extensionPoint: 'colors',
|
|
217
|
+
jsonSchema: {
|
|
218
|
+
description: ( (localize('contributes.color', 'Contributes extension defined themable colors'))),
|
|
219
|
+
type: 'array',
|
|
220
|
+
items: {
|
|
221
|
+
type: 'object',
|
|
222
|
+
properties: {
|
|
223
|
+
id: {
|
|
224
|
+
type: 'string',
|
|
225
|
+
description: ( (localize('contributes.color.id', 'The identifier of the themable color'))),
|
|
226
|
+
pattern: colorIdPattern,
|
|
227
|
+
patternErrorMessage: ( (localize(
|
|
228
|
+
'contributes.color.id.format',
|
|
229
|
+
'Identifiers must only contain letters, digits and dots and can not start with a dot'
|
|
230
|
+
))),
|
|
231
|
+
},
|
|
232
|
+
description: {
|
|
233
|
+
type: 'string',
|
|
234
|
+
description: ( (localize('contributes.color.description', 'The description of the themable color'))),
|
|
235
|
+
},
|
|
236
|
+
defaults: {
|
|
237
|
+
type: 'object',
|
|
238
|
+
properties: {
|
|
239
|
+
light: {
|
|
240
|
+
description: ( (localize(
|
|
241
|
+
'contributes.defaults.light',
|
|
242
|
+
'The default color for light themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default.'
|
|
243
|
+
))),
|
|
244
|
+
type: 'string',
|
|
245
|
+
anyOf: [
|
|
246
|
+
colorReferenceSchema,
|
|
247
|
+
{ type: 'string', format: 'color-hex' }
|
|
248
|
+
]
|
|
249
|
+
},
|
|
250
|
+
dark: {
|
|
251
|
+
description: ( (localize(
|
|
252
|
+
'contributes.defaults.dark',
|
|
253
|
+
'The default color for dark themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default.'
|
|
254
|
+
))),
|
|
255
|
+
type: 'string',
|
|
256
|
+
anyOf: [
|
|
257
|
+
colorReferenceSchema,
|
|
258
|
+
{ type: 'string', format: 'color-hex' }
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
highContrast: {
|
|
262
|
+
description: ( (localize(
|
|
263
|
+
'contributes.defaults.highContrast',
|
|
264
|
+
'The default color for high contrast dark themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default. If not provided, the `dark` color is used as default for high contrast dark themes.'
|
|
265
|
+
))),
|
|
266
|
+
type: 'string',
|
|
267
|
+
anyOf: [
|
|
268
|
+
colorReferenceSchema,
|
|
269
|
+
{ type: 'string', format: 'color-hex' }
|
|
270
|
+
]
|
|
271
|
+
},
|
|
272
|
+
highContrastLight: {
|
|
273
|
+
description: ( (localize(
|
|
274
|
+
'contributes.defaults.highContrastLight',
|
|
275
|
+
'The default color for high contrast light themes. Either a color value in hex (#RRGGBB[AA]) or the identifier of a themable color which provides the default. If not provided, the `light` color is used as default for high contrast light themes.'
|
|
276
|
+
))),
|
|
277
|
+
type: 'string',
|
|
278
|
+
anyOf: [
|
|
279
|
+
colorReferenceSchema,
|
|
280
|
+
{ type: 'string', format: 'color-hex' }
|
|
281
|
+
]
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
required: ['light', 'dark']
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
})));
|
|
290
|
+
class ColorExtensionPoint {
|
|
291
|
+
constructor() {
|
|
292
|
+
configurationExtPoint.setHandler((extensions, delta) => {
|
|
293
|
+
for (const extension of delta.added) {
|
|
294
|
+
const extensionValue = extension.value;
|
|
295
|
+
const collector = extension.collector;
|
|
296
|
+
if (!extensionValue || !Array.isArray(extensionValue)) {
|
|
297
|
+
collector.error(( (localize('invalid.colorConfiguration', "'configuration.colors' must be a array"))));
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
const parseColorValue = (s, name) => {
|
|
301
|
+
if (s.length > 0) {
|
|
302
|
+
if (s[0] === '#') {
|
|
303
|
+
return Color.Format.CSS.parseHex(s);
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
return s;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
collector.error(( (localize(
|
|
310
|
+
'invalid.default.colorType',
|
|
311
|
+
"{0} must be either a color value in hex (#RRGGBB[AA] or #RGB[A]) or the identifier of a themable color which provides the default.",
|
|
312
|
+
name
|
|
313
|
+
))));
|
|
314
|
+
return Color.red;
|
|
315
|
+
};
|
|
316
|
+
for (const colorContribution of extensionValue) {
|
|
317
|
+
if (typeof colorContribution.id !== 'string' || colorContribution.id.length === 0) {
|
|
318
|
+
collector.error(( (localize(
|
|
319
|
+
'invalid.id',
|
|
320
|
+
"'configuration.colors.id' must be defined and can not be empty"
|
|
321
|
+
))));
|
|
322
|
+
return;
|
|
323
|
+
}
|
|
324
|
+
if (!colorContribution.id.match(colorIdPattern)) {
|
|
325
|
+
collector.error(( (localize(
|
|
326
|
+
'invalid.id.format',
|
|
327
|
+
"'configuration.colors.id' must only contain letters, digits and dots and can not start with a dot"
|
|
328
|
+
))));
|
|
329
|
+
return;
|
|
330
|
+
}
|
|
331
|
+
if (typeof colorContribution.description !== 'string' || colorContribution.id.length === 0) {
|
|
332
|
+
collector.error(( (localize(
|
|
333
|
+
'invalid.description',
|
|
334
|
+
"'configuration.colors.description' must be defined and can not be empty"
|
|
335
|
+
))));
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
const defaults = colorContribution.defaults;
|
|
339
|
+
if (!defaults || typeof defaults !== 'object' || typeof defaults.light !== 'string' || typeof defaults.dark !== 'string') {
|
|
340
|
+
collector.error(( (localize(
|
|
341
|
+
'invalid.defaults',
|
|
342
|
+
"'configuration.colors.defaults' must be defined and must contain 'light' and 'dark'"
|
|
343
|
+
))));
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
if (defaults.highContrast && typeof defaults.highContrast !== 'string') {
|
|
347
|
+
collector.error(( (localize(
|
|
348
|
+
'invalid.defaults.highContrast',
|
|
349
|
+
"If defined, 'configuration.colors.defaults.highContrast' must be a string."
|
|
350
|
+
))));
|
|
351
|
+
return;
|
|
352
|
+
}
|
|
353
|
+
if (defaults.highContrastLight && typeof defaults.highContrastLight !== 'string') {
|
|
354
|
+
collector.error(( (localize(
|
|
355
|
+
'invalid.defaults.highContrastLight',
|
|
356
|
+
"If defined, 'configuration.colors.defaults.highContrastLight' must be a string."
|
|
357
|
+
))));
|
|
358
|
+
return;
|
|
359
|
+
}
|
|
360
|
+
colorRegistry.registerColor(colorContribution.id, {
|
|
361
|
+
light: parseColorValue(defaults.light, 'configuration.colors.defaults.light'),
|
|
362
|
+
dark: parseColorValue(defaults.dark, 'configuration.colors.defaults.dark'),
|
|
363
|
+
hcDark: parseColorValue(defaults.highContrast ?? defaults.dark, 'configuration.colors.defaults.highContrast'),
|
|
364
|
+
hcLight: parseColorValue(defaults.highContrastLight ?? defaults.light, 'configuration.colors.defaults.highContrastLight'),
|
|
365
|
+
}, colorContribution.description);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
for (const extension of delta.removed) {
|
|
369
|
+
const extensionValue = extension.value;
|
|
370
|
+
for (const colorContribution of extensionValue) {
|
|
371
|
+
colorRegistry.deregisterColor(colorContribution.id);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
const registry = ( Registry.as(Extensions$3.JSONContribution));
|
|
378
|
+
function getDefaultSchemaAssociations() {
|
|
379
|
+
const userDataProfilesService = StandaloneServices.get(IUserDataProfilesService);
|
|
380
|
+
const profile = userDataProfilesService.defaultProfile;
|
|
381
|
+
return [{
|
|
382
|
+
fileMatch: [( profile.keybindingsResource.toString(true))],
|
|
383
|
+
uri: 'vscode://schemas/keybindings'
|
|
384
|
+
}, {
|
|
385
|
+
fileMatch: [( profile.settingsResource.toString(true))],
|
|
386
|
+
uri: 'vscode://schemas/settings/user'
|
|
387
|
+
}];
|
|
388
|
+
}
|
|
389
|
+
function getExtensionSchemaAssociations() {
|
|
390
|
+
const associations = [];
|
|
391
|
+
extensions.all.forEach(extension => {
|
|
392
|
+
const packageJSON = extension.packageJSON;
|
|
393
|
+
const jsonValidation = packageJSON?.contributes?.jsonValidation;
|
|
394
|
+
if (jsonValidation != null) {
|
|
395
|
+
if (Array.isArray(jsonValidation)) {
|
|
396
|
+
jsonValidation.forEach(jv => {
|
|
397
|
+
let { fileMatch, url } = jv;
|
|
398
|
+
if (typeof fileMatch === 'string') {
|
|
399
|
+
fileMatch = [fileMatch];
|
|
400
|
+
}
|
|
401
|
+
if (Array.isArray(fileMatch) && typeof url === 'string') {
|
|
402
|
+
let uri = url;
|
|
403
|
+
if (uri[0] === '.' && uri[1] === '/') {
|
|
404
|
+
uri = ( monaco.Uri.joinPath(extension.extensionUri, uri).toString());
|
|
405
|
+
}
|
|
406
|
+
fileMatch = ( fileMatch.map(fm => {
|
|
407
|
+
if (fm[0] === '%') {
|
|
408
|
+
fm = fm.replace(/%APP_SETTINGS_HOME%/, '/User');
|
|
409
|
+
fm = fm.replace(/%MACHINE_SETTINGS_HOME%/, '/Machine');
|
|
410
|
+
fm = fm.replace(/%APP_WORKSPACES_HOME%/, '/Workspaces');
|
|
411
|
+
}
|
|
412
|
+
else if (fm.match(/^(\w+:\/\/|\/|!)/) == null) {
|
|
413
|
+
fm = '/' + fm;
|
|
414
|
+
}
|
|
415
|
+
return fm;
|
|
416
|
+
}));
|
|
417
|
+
associations.push({ fileMatch, uri });
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
return associations;
|
|
424
|
+
}
|
|
425
|
+
const customSchemaChangeEmitter = new Emitter();
|
|
426
|
+
function getJsonSchemas() {
|
|
427
|
+
return ( Object.entries(registry.getSchemaContributions().schemas)
|
|
428
|
+
.filter(([uri]) => uri !== 'vscode://schemas/vscode-extensions')
|
|
429
|
+
.map(([uri, schema]) => ({
|
|
430
|
+
uri,
|
|
431
|
+
schema
|
|
432
|
+
})));
|
|
433
|
+
}
|
|
434
|
+
const customJsonSchema = [];
|
|
435
|
+
function registerJsonSchema(schema) {
|
|
436
|
+
customJsonSchema.push(schema);
|
|
437
|
+
customSchemaChangeEmitter.fire();
|
|
438
|
+
return new Disposable(() => {
|
|
439
|
+
const index = customJsonSchema.indexOf(schema);
|
|
440
|
+
if (index >= 0) {
|
|
441
|
+
customJsonSchema.splice(index, 1);
|
|
442
|
+
customSchemaChangeEmitter.fire();
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
function synchronizeJsonSchemas() {
|
|
447
|
+
function updateDiagnosticsOptions() {
|
|
448
|
+
monaco.languages.json.jsonDefaults.setDiagnosticsOptions({
|
|
449
|
+
...monaco.languages.json.jsonDefaults.diagnosticsOptions,
|
|
450
|
+
schemas: [
|
|
451
|
+
...getJsonSchemas(),
|
|
452
|
+
...getDefaultSchemaAssociations(),
|
|
453
|
+
...getExtensionSchemaAssociations()
|
|
454
|
+
]
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
updateDiagnosticsOptions();
|
|
458
|
+
const changeEvent = Event.any(extensions.onDidChange, customSchemaChangeEmitter.event, registry.onDidChangeSchema);
|
|
459
|
+
return changeEvent(updateDiagnosticsOptions);
|
|
460
|
+
}
|
|
461
|
+
let ExtensionPoints = class ExtensionPoints {
|
|
462
|
+
constructor(instantiationService) {
|
|
463
|
+
this.instantiationService = instantiationService;
|
|
464
|
+
this.instantiationService.createInstance(JSONValidationExtensionPoint);
|
|
465
|
+
this.instantiationService.createInstance(ColorExtensionPoint);
|
|
466
|
+
}
|
|
467
|
+
};
|
|
468
|
+
ExtensionPoints = __decorate([
|
|
469
|
+
( __param(0, IInstantiationService))
|
|
470
|
+
], ExtensionPoints);
|
|
471
|
+
( Registry.as(Extensions$2.Workbench)).registerWorkbenchContribution(ExtensionPoints, 1 );
|
|
114
472
|
function computeConfiguration(configuration, isDiffEditor, overrides) {
|
|
115
473
|
const editorConfiguration = isObject(configuration.editor) ? deepClone(configuration.editor) : Object.create(null);
|
|
116
474
|
if (isDiffEditor && isObject(configuration.diffEditor)) {
|
|
@@ -190,39 +548,7 @@ const createConfiguredDiffEditor = (domElement, options, override) => {
|
|
|
190
548
|
return instantiationService.createInstance(ConfiguredStandaloneDiffEditor, domElement, options);
|
|
191
549
|
};
|
|
192
550
|
const Extensions = {
|
|
193
|
-
...Extensions$
|
|
194
|
-
...Extensions$
|
|
551
|
+
...Extensions$3,
|
|
552
|
+
...Extensions$4
|
|
195
553
|
};
|
|
196
|
-
|
|
197
|
-
function getDefaultFileMatch() {
|
|
198
|
-
const userDataProfilesService = StandaloneServices.get(IUserDataProfilesService);
|
|
199
|
-
const profile = userDataProfilesService.defaultProfile;
|
|
200
|
-
return {
|
|
201
|
-
keybindings: [( profile.keybindingsResource.toString(true))],
|
|
202
|
-
'settings/user': [( profile.settingsResource.toString(true))]
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
function getJsonSchemas(fileMatchs = getDefaultFileMatch()) {
|
|
206
|
-
return ( Object.entries(registry.getSchemaContributions().schemas)
|
|
207
|
-
.filter(([uri]) => uri !== 'vscode://schemas/vscode-extensions')
|
|
208
|
-
.map(([uri, schema]) => {
|
|
209
|
-
const path = monaco.Uri.parse(uri).path;
|
|
210
|
-
const schemaName = path.slice(1);
|
|
211
|
-
return {
|
|
212
|
-
uri,
|
|
213
|
-
schema,
|
|
214
|
-
fileMatch: fileMatchs[schemaName]
|
|
215
|
-
};
|
|
216
|
-
}));
|
|
217
|
-
}
|
|
218
|
-
function synchronizeJsonSchemas() {
|
|
219
|
-
function updateDiagnosticsOptions() {
|
|
220
|
-
monaco.languages.json.jsonDefaults.setDiagnosticsOptions({
|
|
221
|
-
...monaco.languages.json.jsonDefaults.diagnosticsOptions,
|
|
222
|
-
schemas: getJsonSchemas()
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
updateDiagnosticsOptions();
|
|
226
|
-
return registry.onDidChangeSchema(updateDiagnosticsOptions);
|
|
227
|
-
}
|
|
228
|
-
export { Extensions, createConfiguredDiffEditor, createConfiguredEditor, createModelReference, deleteFile, synchronizeJsonSchemas, writeFile };
|
|
554
|
+
export { Extensions, createConfiguredDiffEditor, createConfiguredEditor, createModelReference, deleteFile, registerJsonSchema, synchronizeJsonSchemas, writeFile };
|
package/dist/php.js
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var manifest = {name:"php",displayName:"%displayName%",description:"%description%",version:"1.0.0",publisher:"vscode",license:"MIT",engines:{vscode:"0.10.x"},contributes:{languages:[{id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],firstLine:"^#!\\s*/.*\\bphp\\b",mimetypes:["application/x-php"],configuration:"./language-configuration.json"}],grammars:[{language:"php",scopeName:"source.php",path:"./syntaxes/php.tmLanguage.json"},{language:"php",scopeName:"text.html.php",path:"./syntaxes/html.tmLanguage.json",embeddedLanguages:{"text.html":"html","source.php":"php","source.sql":"sql","text.xml":"xml","source.js":"javascript","source.json":"json","source.css":"css"}}],snippets:[{language:"php",path:"./snippets/php.code-snippets"}]},scripts:{"update-grammar":"node ./build/update-grammar.mjs"},repository:{type:"git",url:"https://github.com/microsoft/vscode.git"}};
|
|
4
|
-
onExtHostInitialized(() => {
|
|
5
|
-
const { registerFile } = registerExtension(manifest);
|
|
6
|
-
registerFile('./language-configuration.json', async () => await import('./language-configuration24.js').then(module => module.default ?? module)),
|
|
7
|
-
registerFile('./syntaxes/php.tmLanguage.json', async () => await import('./php.tmLanguage.js').then(module => module.default ?? module)),
|
|
8
|
-
registerFile('./syntaxes/html.tmLanguage.json', async () => await import('./html.tmLanguage2.js').then(module => module.default ?? module)),
|
|
9
|
-
registerFile('./snippets/php.code-snippets', async () => await import('./php2.js').then(module => module.default ?? module));
|
|
10
|
-
});
|
|
1
|
+
var php = "{\n\t\"class …\": {\n\t\t\"prefix\": \"class\",\n\t\t\"body\": [\n\t\t\t\"class ${1:ClassName} ${2:extends ${3:AnotherClass}} ${4:implements ${5:Interface}}\",\n\t\t\t\"{\",\n\t\t\t\"\\t$0\",\n\t\t\t\"}\",\n\t\t\t\"\"\n\t\t],\n\t\t\"description\": \"Class definition\"\n\t},\n\t\"PHPDoc class …\": {\n\t\t\"prefix\": \"doc_class\",\n\t\t\"isFileTemplate\": true,\n\t\t\"body\": [\n\t\t\t\"/**\",\n\t\t\t\" * ${6:undocumented class}\",\n\t\t\t\" */\",\n\t\t\t\"class ${1:ClassName} ${2:extends ${3:AnotherClass}} ${4:implements ${5:Interface}}\",\n\t\t\t\"{\",\n\t\t\t\"\\t$0\",\n\t\t\t\"}\",\n\t\t\t\"\"\n\t\t],\n\t\t\"description\": \"Documented Class Declaration\"\n\t},\n\t\"function __construct\": {\n\t\t\"prefix\": \"con\",\n\t\t\"body\": [\n\t\t\t\"${1:public} function __construct(${2:${3:Type} $${4:var}${5: = ${6:null}}}) {\",\n \"\\t\\\\$this->${4:var} = $${4:var};$0\",\n \"}\"\n\t\t]\n\t},\n\t\"PHPDoc property\": {\n\t\t\"prefix\": \"doc_v\",\n\t\t\"body\": [\n\t\t\t\"/** @var ${1:Type} $${2:var} ${3:description} */\",\n\t\t\t\"${4:protected} $${2:var}${5: = ${6:null}};$0\"\n\t\t],\n\t\t\"description\": \"Documented Class Variable\"\n\t},\n\t\"PHPDoc function …\": {\n\t\t\"prefix\": \"doc_f\",\n\t\t\"isFileTemplate\": true,\n\t\t\"body\": [\n\t\t\t\"/**\",\n\t\t\t\" * ${1:undocumented function summary}\",\n\t\t\t\" *\",\n\t\t\t\" * ${2:Undocumented function long description}\",\n\t\t\t\" *\",\n\t\t\t\"${3: * @param ${4:Type} $${5:var} ${6:Description}}\",\n\t\t\t\"${7: * @return ${8:type}}\",\n\t\t\t\"${9: * @throws ${10:conditon}}\",\n\t\t\t\" **/\",\n\t\t\t\"${11:public }function ${12:FunctionName}(${13:${14:${4:Type} }$${5:var}${15: = ${16:null}}})\",\n\t\t\t\"{\",\n\t\t\t\"\\t${0:# code...}\",\n\t\t\t\"}\"\n\t\t],\n\t\t\"description\": \"Documented function\"\n\t},\n\t\"PHPDoc param …\": {\n\t\t\"prefix\": \"param\",\n\t\t\"body\": [\n\t\t\t\"* @param ${1:Type} ${2:var} ${3:Description}$0\"\n\t\t],\n\t\t\"description\": \"Parameter documentation\"\n\t},\n\t\"function …\": {\n\t\t\"prefix\": \"fun\",\n\t\t\"body\": [\n\t\t\t\"${1:public }function ${2:FunctionName}(${3:${4:${5:Type} }$${6:var}${7: = ${8:null}}})\",\n\t\t\t\"{\",\n\t\t\t\"\\t${0:# code...}\",\n\t\t\t\"}\"\n\t\t],\n\t\t\"description\": \"Function\"\n\t},\n\t\"trait …\": {\n\t\t\"prefix\": \"trait\",\n\t\t\"body\": [\n\t\t\t\"/**\",\n\t\t\t\" * $1\",\n\t\t\t\" */\",\n\t\t\t\"trait ${2:TraitName}\",\n\t\t\t\"{\",\n\t\t\t\"\\t$0\",\n\t\t\t\"}\",\n\t\t\t\"\"\n\t\t],\n\t\t\"description\": \"Trait\"\n\t},\n\t\"define(…, …)\": {\n\t\t\"prefix\": \"def\",\n\t\t\"body\": [\n\t\t\t\"define('$1', ${2:'$3'});\",\n\t\t\t\"$0\"\n\t\t],\n\t\t\"description\": \"Definition\"\n\t},\n\t\"do … while …\": {\n\t\t\"prefix\": \"do\",\n\t\t\"body\": [\n\t\t\t\"do {\",\n\t\t\t\"\\t${0:# code...}\",\n\t\t\t\"} while (${1:$${2:a} <= ${3:10}});\"\n\t\t],\n\t\t\"description\": \"Do-While loop\"\n\t},\n\t\t\"while …\": {\n\t\t\"prefix\": \"while\",\n\t\t\"body\": [\n\t\t\t\"while (${1:$${2:a} <= ${3:10}}) {\",\n\t\t\t\"\\t${0:# code...}\",\n\t\t\t\"}\"\n\t\t],\n\t\t\"description\": \"While-loop\"\n\t},\n\t\"if …\": {\n\t\t\"prefix\": \"if\",\n\t\t\"body\": [\n\t\t\t\"if (${1:condition}) {\",\n\t\t\t\"\\t${0:# code...}\",\n\t\t\t\"}\"\n\t\t],\n\t\t\"description\": \"If block\"\n\t},\n\t\"if … else …\": {\n\t\t\"prefix\": \"ifelse\",\n\t\t\"body\": [\n\t\t\t\"if (${1:condition}) {\",\n\t\t\t\"\\t${2:# code...}\",\n\t\t\t\"} else {\",\n\t\t\t\"\\t${3:# code...}\",\n\t\t\t\"}\",\n\t\t\t\"$0\"\n\t\t],\n\t\t\"description\": \"If Else block\"\n\t},\n\t\"$… = ( … ) ? … : …\": {\n\t\t\"prefix\": \"if?\",\n\t\t\"body\": \"$${1:retVal} = (${2:condition}) ? ${3:a} : ${4:b} ;\",\n\t\t\"description\": \"Ternary conditional assignment\"\n\t},\n\t\"else …\": {\n\t\t\"prefix\": \"else\",\n\t\t\"body\": [\n\t\t\t\"else {\",\n\t\t\t\"\\t${0:# code...}\",\n\t\t\t\"}\"\n\t\t],\n\t\t\"description\": \"Else block\"\n\t},\n\t\"elseif …\": {\n\t\t\"prefix\": \"elseif\",\n\t\t\"body\": [\n\t\t\t\"elseif (${1:condition}) {\",\n\t\t\t\"\\t${0:# code...}\",\n\t\t\t\"}\"\n\t\t],\n\t\t\"description\": \"Elseif block\"\n\t},\n\t\"for …\": {\n\t\t\"prefix\": \"for\",\n\t\t\"body\": [\n\t\t\t\"for ($${1:i}=${2:0}; $${1:i} < $3; $${1:i}++) { \",\n\t\t\t\"\\t${0:# code...}\",\n\t\t\t\"}\"\n\t\t],\n\t\t\"description\": \"For-loop\"\n\t},\n\t\"foreach …\": {\n\t\t\"prefix\": \"foreach\",\n\t\t\"body\": [\n\t\t\t\"foreach ($${1:variable} as $${2:key} ${3:=> $${4:value}}) {\",\n\t\t\t\"\\t${0:# code...}\",\n\t\t\t\"}\"\n\t\t],\n\t\t\"description\": \"Foreach loop\"\n\t},\n\t\"$… = array (…)\": {\n\t\t\"prefix\": \"array\",\n\t\t\"body\": \"$${1:arrayName} = array('$2' => $3${4:,} $0);\",\n\t\t\"description\": \"Array initializer\"\n\t},\n\t\"$… = […]\": {\n\t\t\"prefix\": \"shorray\",\n\t\t\"body\": \"$${1:arrayName} = ['$2' => $3${4:,} $0];\",\n\t\t\"description\": \"Array initializer\"\n\t},\n\t\"… => …\": {\n\t\t\"prefix\": \"keyval\",\n\t\t\"body\": \"'$1' => $2${3:,} $0\",\n\t\t\"description\": \"Key-Value initializer\"\n\t},\n\t\"switch …\": {\n\t\t\"prefix\": \"switch\",\n\t\t\"body\": [\n\t\t\t\"switch (\\\\$${1:variable}) {\",\n\t\t\t\"\\tcase '${2:value}':\",\n\t\t\t\"\\t\\t${3:# code...}\",\n\t\t\t\"\\t\\tbreak;\",\n\t\t\t\"\\t$0\",\n\t\t\t\"\\tdefault:\",\n\t\t\t\"\\t\\t${4:# code...}\",\n\t\t\t\"\\t\\tbreak;\",\n\t\t\t\"}\"\n\t\t],\n\t\t\"description\": \"Switch block\"\n\t},\n\t\"case …\": {\n\t\t\"prefix\": \"case\",\n\t\t\"body\": [\n\t\t\t\"case '${1:value}':\",\n\t\t\t\"\\t${0:# code...}\",\n\t\t\t\"\\tbreak;\"\n\t\t],\n\t\t\"description\": \"Case Block\"\n\t},\n\t\"$this->…\": {\n\t\t\"prefix\": \"this\",\n\t\t\"body\": \"\\\\$this->$0;\",\n\t\t\"description\": \"$this->...\"\n\t},\n\t\"echo $this->…\": {\n\t\t\"prefix\": \"ethis\",\n\t\t\"body\": \"echo \\\\$this->$0;\",\n\t\t\"description\": \"Echo this\"\n\t},\n\t\"Throw Exception\": {\n\t\t\"prefix\": \"throw\",\n\t\t\"body\": [\n\t\t\t\"throw new $1Exception(${2:\\\"${3:Error Processing Request}\\\"}${4:, ${5:1}});\",\n\t\t\t\"$0\"\n\t\t],\n\t\t\"description\": \"Throw exception\"\n\t},\n\t\"Region Start\": {\n\t\t\"prefix\": \"#region\",\n\t\t\"body\": [\n\t\t\t\"#region\"\n\t\t],\n\t\t\"description\": \"Folding Region Start\"\n\t},\n\t\"Region End\": {\n\t\t\"prefix\": \"#endregion\",\n\t\t\"body\": [\n\t\t\t\"#endregion\"\n\t\t],\n\t\t\"description\": \"Folding Region End\"\n\t},\n\t\"Try Catch Block\": {\n\t\t\"prefix\": \"try\",\n\t\t\"body\": [\n\t\t\t\"try {\",\n\t\t\t\"\\t${1://code...}\",\n\t\t\t\"} catch (${2:\\\\Throwable} ${3:\\\\$th}) {\",\n\t\t\t\"\\t${4://throw \\\\$th;}\",\n\t\t\t\"}\"\n\t\t],\n\t\t\"description\": \"Try catch block\"\n\t}\n}\n";
|
|
2
|
+
export { php as default };
|
package/dist/polyfill.js
CHANGED
|
@@ -73,7 +73,7 @@ import { AbstractCodeEditorService as AbstractCodeEditorService$1 } from 'monaco
|
|
|
73
73
|
import { LinkedList } from 'monaco-editor/esm/vs/base/common/linkedList.js';
|
|
74
74
|
import { ValidAnnotatedEditOperation, isITextSnapshot, OverviewRulerLane, ApplyEditsResult, shouldSynchronizeModel } from 'monaco-editor/esm/vs/editor/common/model.js';
|
|
75
75
|
import { CodeEditorWidget as CodeEditorWidget$1 } from 'monaco-editor/esm/vs/editor/browser/widget/codeEditorWidget.js';
|
|
76
|
-
import { editorErrorForeground, editorWarningForeground, editorInfoForeground, editorHintForeground, listErrorForeground, asCssVariable, quickInputBackground, quickInputForeground, quickInputTitleBackground, widgetBorder, widgetShadow, quickInputListFocusBackground, quickInputListFocusForeground, quickInputListFocusIconForeground, activeContrastBorder, pickerGroupBorder, pickerGroupForeground } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
76
|
+
import { editorErrorForeground, editorWarningForeground, editorInfoForeground, editorHintForeground, listErrorForeground, Extensions as Extensions$6, asCssVariable, quickInputBackground, quickInputForeground, quickInputTitleBackground, widgetBorder, widgetShadow, quickInputListFocusBackground, quickInputListFocusForeground, quickInputListFocusIconForeground, activeContrastBorder, pickerGroupBorder, pickerGroupForeground } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
77
77
|
import { CodeEditorContributions } from 'monaco-editor/esm/vs/editor/browser/widget/codeEditorContributions.js';
|
|
78
78
|
import { ServiceCollection } from 'monaco-editor/esm/vs/platform/instantiation/common/serviceCollection.js';
|
|
79
79
|
import { EditorExtensionsRegistry } from 'monaco-editor/esm/vs/editor/browser/editorExtensions.js';
|
|
@@ -128,8 +128,8 @@ import { QuickInputController } from 'monaco-editor/esm/vs/platform/quickinput/b
|
|
|
128
128
|
import { CancellationToken } from 'monaco-editor/esm/vs/base/common/cancellation.js';
|
|
129
129
|
import { defaultInputBoxStyles, defaultToggleStyles, defaultCountBadgeStyles, defaultButtonStyles, defaultProgressBarStyles, defaultKeybindingLabelStyles, getListStyles } from 'monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js';
|
|
130
130
|
import { ILayoutService } from 'monaco-editor/esm/vs/platform/layout/browser/layoutService.js';
|
|
131
|
-
import { Extensions as Extensions$
|
|
132
|
-
import { Extensions as Extensions$
|
|
131
|
+
import { Extensions as Extensions$7 } from 'monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js';
|
|
132
|
+
import { Extensions as Extensions$8 } from 'monaco-editor/esm/vs/platform/jsonschemas/common/jsonContributionRegistry.js';
|
|
133
133
|
import { GhostTextController } from 'monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostTextController.js';
|
|
134
134
|
import { registerSingleton, getSingletonServiceDescriptors } from 'monaco-editor/esm/vs/platform/instantiation/common/extensions.js';
|
|
135
135
|
import { ILabelService } from 'monaco-editor/esm/vs/platform/label/common/label.js';
|
|
@@ -3960,7 +3960,7 @@ var ConfigurationScope;
|
|
|
3960
3960
|
})(ConfigurationScope || (ConfigurationScope = {}))));
|
|
3961
3961
|
const resourceLanguageSettingsSchemaId = 'vscode://schemas/settings/resourceLanguage';
|
|
3962
3962
|
const configurationDefaultsSchemaId = 'vscode://schemas/settings/configurationDefaults';
|
|
3963
|
-
const contributionRegistry = ( (Registry.as(Extensions$
|
|
3963
|
+
const contributionRegistry = ( (Registry.as(Extensions$8.JSONContribution)));
|
|
3964
3964
|
class ConfigurationRegistry {
|
|
3965
3965
|
constructor() {
|
|
3966
3966
|
this.overrideIdentifiers = ( (new Set()));
|
|
@@ -55137,7 +55137,7 @@ class ExtHostExtensionService extends AbstractExtHostExtensionService {
|
|
|
55137
55137
|
constructor() {
|
|
55138
55138
|
super(...arguments);
|
|
55139
55139
|
this.extensionRuntime = ExtensionRuntime.Webworker;
|
|
55140
|
-
this._getEntryPoint =
|
|
55140
|
+
this._getEntryPoint = () => undefined;
|
|
55141
55141
|
this._loadCommonJSModule = unsupported;
|
|
55142
55142
|
this.$setRemoteEnvironment = unsupported;
|
|
55143
55143
|
}
|
|
@@ -55211,6 +55211,19 @@ registerSingleton(IExtHostTerminalService, class ExtHostTerminalService {
|
|
|
55211
55211
|
const mainContext = {
|
|
55212
55212
|
remoteAuthority: null,
|
|
55213
55213
|
extensionHostKind: 1 ,
|
|
55214
|
+
internalExtensionService: {
|
|
55215
|
+
_activateById() {
|
|
55216
|
+
return Promise.resolve();
|
|
55217
|
+
},
|
|
55218
|
+
_onWillActivateExtension() {
|
|
55219
|
+
},
|
|
55220
|
+
_onDidActivateExtension() {
|
|
55221
|
+
},
|
|
55222
|
+
_onDidActivateExtensionError() {
|
|
55223
|
+
},
|
|
55224
|
+
_onExtensionRuntimeError() {
|
|
55225
|
+
}
|
|
55226
|
+
},
|
|
55214
55227
|
getProxy: function (identifier) {
|
|
55215
55228
|
return ( rpcProtocol.getProxy(identifier));
|
|
55216
55229
|
},
|
|
@@ -55225,9 +55238,11 @@ const mainContext = {
|
|
|
55225
55238
|
},
|
|
55226
55239
|
dispose() {
|
|
55227
55240
|
rpcProtocol.dispose();
|
|
55228
|
-
}
|
|
55241
|
+
},
|
|
55242
|
+
_setExtensionHostProxy() { },
|
|
55243
|
+
_setAllMainProxyIdentifiers() { }
|
|
55229
55244
|
};
|
|
55230
|
-
function createExtHostServices() {
|
|
55245
|
+
async function createExtHostServices() {
|
|
55231
55246
|
const rpcProtocol = StandaloneServices.get(IExtHostRpcService);
|
|
55232
55247
|
const instantiationService = StandaloneServices.get(IInstantiationService);
|
|
55233
55248
|
const logService = StandaloneServices.get(ILogService);
|
|
@@ -55286,7 +55301,7 @@ function createExtHostServices() {
|
|
|
55286
55301
|
onUnexpectedError(err);
|
|
55287
55302
|
}
|
|
55288
55303
|
}
|
|
55289
|
-
|
|
55304
|
+
await extHostExtensionService.initialize();
|
|
55290
55305
|
return {
|
|
55291
55306
|
extHostLogService: logService,
|
|
55292
55307
|
extHostApiDeprecationService,
|
|
@@ -55322,7 +55337,7 @@ let initializePromise;
|
|
|
55322
55337
|
const extHostInitializedEmitter = new Emitter();
|
|
55323
55338
|
const onExtHostInitialized = extHostInitializedEmitter.event;
|
|
55324
55339
|
async function _initialize() {
|
|
55325
|
-
extHostServices = createExtHostServices();
|
|
55340
|
+
extHostServices = await createExtHostServices();
|
|
55326
55341
|
configProvider = await extHostServices.extHostConfiguration.getConfigProvider();
|
|
55327
55342
|
extHostInitializedEmitter.fire();
|
|
55328
55343
|
}
|
|
@@ -55467,7 +55482,7 @@ polyfillPrototypeSimple(ListView$1.prototype, ListView.prototype);
|
|
|
55467
55482
|
polyfillPrototypeSimple(CallbackIterable$1.prototype, CallbackIterable.prototype);
|
|
55468
55483
|
polyfillPrototypeSimple(SelectActionViewItem$1.prototype, SelectActionViewItem.prototype);
|
|
55469
55484
|
polyfillPrototypeSimple(QuickInputService$1.prototype, QuickInputService.prototype);
|
|
55470
|
-
const keydinbingsRegistry = ( Registry.as(Extensions$
|
|
55485
|
+
const keydinbingsRegistry = ( Registry.as(Extensions$7.EditorModes));
|
|
55471
55486
|
polyfillPrototypeSimple(keydinbingsRegistry.constructor.prototype, KeybindingsRegistryImpl.prototype);
|
|
55472
55487
|
polyfillPrototypeSimple(Workspace$1.prototype, Workspace.prototype);
|
|
55473
55488
|
polyfillPrototypeSimple(ConfigurationModelParser$1.prototype, ConfigurationModelParser.prototype);
|
|
@@ -55516,6 +55531,10 @@ const configurationRegistry = ( Registry.as(Extensions$5.Configuration));
|
|
|
55516
55531
|
configurationRegistry.onDidUpdateConfiguration ?? (configurationRegistry.onDidUpdateConfiguration = configurationRegistry._onDidUpdateConfiguration.event);
|
|
55517
55532
|
configurationRegistry.onDidSchemaChange ?? (configurationRegistry.onDidSchemaChange = configurationRegistry._onDidSchemaChange.event);
|
|
55518
55533
|
polyfillPrototypeSimple(configurationRegistry.constructor.prototype, ConfigurationRegistry.prototype);
|
|
55534
|
+
const colorRegistry = ( Registry.as(Extensions$6.ColorContribution));
|
|
55535
|
+
colorRegistry.getColorReferenceSchema = function () {
|
|
55536
|
+
return this.colorReferenceSchema;
|
|
55537
|
+
};
|
|
55519
55538
|
(_a = NoOpNotification$1.prototype).onDidClose ?? (_a.onDidClose = Event.None);
|
|
55520
55539
|
Object.defineProperty(GhostTextController.prototype, 'onActiveModelDidChange', {
|
|
55521
55540
|
get() {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { FilterPattern } from '@rollup/pluginutils';
|
|
2
2
|
import { Plugin } from 'rollup';
|
|
3
|
+
|
|
3
4
|
interface Options {
|
|
4
5
|
include?: FilterPattern;
|
|
5
6
|
exclude?: FilterPattern;
|
|
6
7
|
}
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
declare function plugin(options?: Options): Plugin;
|
|
9
|
+
|
|
10
|
+
export { plugin as default };
|