@codingame/monaco-vscode-api 1.78.3-next.0 → 1.78.3
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 +4 -69
- package/dist/bat.js +1 -2
- package/dist/clojure.js +1 -2
- package/dist/coffeescript.js +1 -2
- package/dist/cpp.js +1 -2
- package/dist/csharp.js +1 -2
- package/dist/css.js +1 -2
- package/dist/dart.js +1 -2
- package/dist/default-extensions/bat.js +1 -3
- package/dist/default-extensions/clojure.js +1 -3
- package/dist/default-extensions/coffeescript.js +1 -3
- package/dist/default-extensions/cpp.js +1 -3
- package/dist/default-extensions/csharp.js +1 -3
- package/dist/default-extensions/css.js +1 -3
- package/dist/default-extensions/dart.js +1 -3
- package/dist/default-extensions/diff.js +1 -3
- package/dist/default-extensions/docker.js +1 -3
- package/dist/default-extensions/fsharp.js +1 -3
- package/dist/default-extensions/go.js +1 -3
- package/dist/default-extensions/groovy.js +1 -3
- package/dist/default-extensions/handlebars.js +1 -3
- package/dist/default-extensions/hlsl.js +1 -3
- package/dist/default-extensions/html.js +1 -3
- package/dist/default-extensions/ini.js +1 -3
- package/dist/default-extensions/java.js +1 -3
- package/dist/default-extensions/javascript.js +1 -3
- package/dist/default-extensions/json.js +1 -3
- package/dist/default-extensions/julia.js +1 -3
- package/dist/default-extensions/latex.js +1 -3
- package/dist/default-extensions/less.js +1 -3
- package/dist/default-extensions/log.js +1 -3
- package/dist/default-extensions/lua.js +1 -3
- package/dist/default-extensions/make.js +1 -3
- package/dist/default-extensions/markdown-basics.js +1 -3
- package/dist/default-extensions/objective-c.js +1 -3
- package/dist/default-extensions/perl.js +1 -3
- package/dist/default-extensions/php.js +1 -3
- package/dist/default-extensions/powershell.js +1 -3
- package/dist/default-extensions/pug.js +1 -3
- package/dist/default-extensions/python.js +1 -3
- package/dist/default-extensions/r.js +1 -3
- package/dist/default-extensions/razor.js +1 -3
- package/dist/default-extensions/ruby.js +1 -3
- package/dist/default-extensions/rust.js +1 -3
- package/dist/default-extensions/scss.js +1 -3
- package/dist/default-extensions/shaderlab.js +1 -3
- package/dist/default-extensions/shellscript.js +1 -3
- package/dist/default-extensions/sql.js +1 -3
- package/dist/default-extensions/swift.js +1 -3
- package/dist/default-extensions/theme-abyss.js +1 -3
- package/dist/default-extensions/theme-defaults.js +1 -3
- package/dist/default-extensions/theme-kimbie-dark.js +1 -3
- package/dist/default-extensions/theme-monokai-dimmed.js +1 -3
- package/dist/default-extensions/theme-monokai.js +1 -3
- package/dist/default-extensions/theme-quietlight.js +1 -3
- package/dist/default-extensions/theme-red.js +1 -3
- package/dist/default-extensions/theme-seti.js +1 -3
- package/dist/default-extensions/theme-solarized-dark.js +1 -3
- package/dist/default-extensions/theme-solarized-light.js +1 -3
- package/dist/default-extensions/theme-tomorrow-night-blue.js +1 -3
- package/dist/default-extensions/typescript-basics.js +1 -3
- package/dist/default-extensions/vb.js +1 -3
- package/dist/default-extensions/xml.js +1 -3
- package/dist/default-extensions/yaml.js +1 -3
- package/dist/diff.js +1 -2
- package/dist/docker.js +1 -2
- package/dist/extensions.d.ts +2 -9
- package/dist/fsharp.js +1 -2
- package/dist/go.js +1 -2
- package/dist/groovy.js +1 -2
- package/dist/handlebars.js +1 -2
- package/dist/hlsl.js +1 -2
- package/dist/html.js +1 -2
- package/dist/ini.js +1 -2
- package/dist/java.js +1 -2
- package/dist/javascript.js +1 -2
- package/dist/json.js +1 -2
- package/dist/julia.js +1 -2
- package/dist/latex.js +1 -2
- package/dist/less.js +1 -2
- package/dist/log.js +1 -2
- package/dist/lua.js +1 -2
- package/dist/make.js +1 -2
- package/dist/markdown-basics.js +1 -2
- package/dist/modelEditor.d.ts +1398 -136
- package/dist/monaco.d.ts +5 -9
- package/dist/monaco.js +44 -370
- package/dist/objective-c.js +1 -2
- package/dist/perl.js +1 -2
- package/dist/php.js +1 -2
- package/dist/polyfill.js +10 -29
- package/dist/powershell.js +1 -2
- package/dist/pug.js +1 -2
- package/dist/python.js +1 -2
- package/dist/r.js +1 -2
- package/dist/razor.js +1 -2
- package/dist/rollup-vsix-plugin.js +6 -14
- package/dist/ruby.js +1 -2
- package/dist/rust.js +1 -2
- package/dist/scss.js +1 -2
- package/dist/shaderlab.js +1 -2
- package/dist/shellscript.js +1 -2
- package/dist/snippetsService.js +1 -1
- package/dist/sql.js +1 -2
- package/dist/swift.js +1 -2
- package/dist/theme-abyss.js +1 -2
- package/dist/theme-defaults.js +1 -2
- package/dist/theme-kimbie-dark.js +1 -2
- package/dist/theme-monokai-dimmed.js +1 -2
- package/dist/theme-monokai.js +1 -2
- package/dist/theme-quietlight.js +1 -2
- package/dist/theme-red.js +1 -2
- package/dist/theme-seti.js +1 -2
- package/dist/theme-solarized-dark.js +1 -2
- package/dist/theme-solarized-light.js +1 -2
- package/dist/theme-tomorrow-night-blue.js +1 -2
- package/dist/typescript-basics.js +1 -2
- package/dist/vb.js +1 -2
- package/dist/webpack-loader.cjs +2 -1
- package/dist/xml.js +1 -2
- package/dist/yaml.js +1 -2
- package/package.json +2 -2
- package/dist/default-extensions/typescript-language-features.js +0 -17
- package/dist/jsconfig.schema.js +0 -2
- package/dist/package.schema.js +0 -2
- package/dist/tsconfig.schema.js +0 -2
- package/dist/typescript-language-features.js +0 -13
package/dist/monaco.d.ts
CHANGED
|
@@ -5477,14 +5477,6 @@ 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
|
-
|
|
5488
5480
|
declare function writeFile(uri: URI, content: string): Promise<void>;
|
|
5489
5481
|
declare function deleteFile(uri: URI, options?: Partial<IFileDeleteOptions>): Promise<void>;
|
|
5490
5482
|
declare function createModelReference(resource: URI, content?: string): Promise<IReference<ITextFileEditorModel>>;
|
|
@@ -5494,5 +5486,9 @@ declare const Extensions: {
|
|
|
5494
5486
|
Configuration: string;
|
|
5495
5487
|
JSONContribution: string;
|
|
5496
5488
|
};
|
|
5489
|
+
/**
|
|
5490
|
+
* Synchronize registered json schema on the monaco json worker
|
|
5491
|
+
*/
|
|
5492
|
+
declare function synchronizeJsonSchemas(): monaco.IDisposable;
|
|
5497
5493
|
|
|
5498
|
-
export { CommandsRegistry, DisposableStore, Extensions, FoldingController, FoldingModel, IJSONContributionRegistry, IJSONSchema,
|
|
5494
|
+
export { CommandsRegistry, ContextKeyExprType, DisposableStore, Extensions, FoldingController, FoldingModel, IJSONContributionRegistry, IJSONSchema, Registry, createConfiguredDiffEditor, createConfiguredEditor, createModelReference, deleteFile, errorHandler, registerColor, setCollapseStateForMatchingLines, synchronizeJsonSchemas, writeFile };
|
package/dist/monaco.js
CHANGED
|
@@ -1,27 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { __decorate, __param, IFileService, distinct, IUserDataProfilesService } from './polyfill.js';
|
|
2
|
+
export { ContextKeyExprType } from './polyfill.js';
|
|
3
|
+
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js';
|
|
3
4
|
export { registerColor } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
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
|
-
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
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
5
|
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';
|
|
16
|
-
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
17
6
|
import { editorOptionsRegistry } from 'monaco-editor/esm/vs/editor/common/config/editorOptions.js';
|
|
18
7
|
import { equals } from 'monaco-editor/esm/vs/base/common/arrays.js';
|
|
8
|
+
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
9
|
+
export { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
10
|
+
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
19
11
|
import { VSBuffer } from 'monaco-editor/esm/vs/base/common/buffer.js';
|
|
20
12
|
import { ITextModelService } from 'monaco-editor/esm/vs/editor/common/services/resolverService.js';
|
|
21
|
-
import { Extensions as Extensions$
|
|
13
|
+
import { Extensions as Extensions$1 } from 'monaco-editor/esm/vs/platform/jsonschemas/common/jsonContributionRegistry.js';
|
|
14
|
+
import { Extensions as Extensions$2 } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
|
|
22
15
|
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
23
16
|
import { ITextResourceConfigurationService } from 'monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js';
|
|
24
17
|
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';
|
|
25
19
|
import { deepClone } from 'monaco-editor/esm/vs/base/common/objects.js';
|
|
26
20
|
export { errorHandler } from 'monaco-editor/esm/vs/base/common/errors.js';
|
|
27
21
|
export { DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
@@ -117,358 +111,6 @@ class EditorOptionsUtil {
|
|
|
117
111
|
return changed;
|
|
118
112
|
}
|
|
119
113
|
}
|
|
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 );
|
|
472
114
|
function computeConfiguration(configuration, isDiffEditor, overrides) {
|
|
473
115
|
const editorConfiguration = isObject(configuration.editor) ? deepClone(configuration.editor) : Object.create(null);
|
|
474
116
|
if (isDiffEditor && isObject(configuration.diffEditor)) {
|
|
@@ -548,7 +190,39 @@ const createConfiguredDiffEditor = (domElement, options, override) => {
|
|
|
548
190
|
return instantiationService.createInstance(ConfiguredStandaloneDiffEditor, domElement, options);
|
|
549
191
|
};
|
|
550
192
|
const Extensions = {
|
|
551
|
-
...Extensions$
|
|
552
|
-
...Extensions$
|
|
193
|
+
...Extensions$1,
|
|
194
|
+
...Extensions$2
|
|
553
195
|
};
|
|
554
|
-
|
|
196
|
+
const registry = ( Registry.as(Extensions.JSONContribution));
|
|
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 };
|
package/dist/objective-c.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { registerExtension } from './api2.js';
|
|
2
2
|
import { onExtHostInitialized } from './polyfill.js';
|
|
3
3
|
var manifest = {name:"objective-c",displayName:"%displayName%",description:"%description%",version:"1.0.0",publisher:"vscode",license:"MIT",engines:{vscode:"*"},scripts:{"update-grammar":"node ./build/update-grammars.js"},contributes:{languages:[{id:"objective-c",extensions:[".m"],aliases:["Objective-C"],configuration:"./language-configuration.json"},{id:"objective-cpp",extensions:[".mm"],aliases:["Objective-C++"],configuration:"./language-configuration.json"}],grammars:[{language:"objective-c",scopeName:"source.objc",path:"./syntaxes/objective-c.tmLanguage.json"},{language:"objective-cpp",scopeName:"source.objcpp",path:"./syntaxes/objective-c++.tmLanguage.json"}]},repository:{type:"git",url:"https://github.com/microsoft/vscode.git"}};
|
|
4
|
-
var nls = {displayName:"Objective-C Language Basics",description:"Provides syntax highlighting and bracket matching in Objective-C files."};
|
|
5
4
|
onExtHostInitialized(() => {
|
|
6
|
-
const { registerFile } = registerExtension(manifest
|
|
5
|
+
const { registerFile } = registerExtension(manifest);
|
|
7
6
|
registerFile('./language-configuration.json', async () => await import('./language-configuration23.js').then(module => module.default ?? module)),
|
|
8
7
|
registerFile('./language-configuration.json', async () => await import('./language-configuration23.js').then(module => module.default ?? module)),
|
|
9
8
|
registerFile('./syntaxes/objective-c.tmLanguage.json', async () => await import('./objective-c.tmLanguage.js').then(module => module.default ?? module)),
|
package/dist/perl.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { registerExtension } from './api2.js';
|
|
2
2
|
import { onExtHostInitialized } from './polyfill.js';
|
|
3
3
|
var manifest = {name:"perl",displayName:"%displayName%",description:"%description%",version:"1.0.0",publisher:"vscode",license:"MIT",engines:{vscode:"*"},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"},contributes:{languages:[{id:"perl",aliases:["Perl","perl"],extensions:[".pl",".pm",".pod",".t",".PL",".psgi"],firstLine:"^#!.*\\bperl\\b",configuration:"./perl.language-configuration.json"},{id:"perl6",aliases:["Perl 6","perl6"],extensions:[".p6",".pl6",".pm6",".nqp"],firstLine:"(^#!.*\\bperl6\\b)|use\\s+v6",configuration:"./perl6.language-configuration.json"}],grammars:[{language:"perl",scopeName:"source.perl",path:"./syntaxes/perl.tmLanguage.json"},{language:"perl6",scopeName:"source.perl.6",path:"./syntaxes/perl6.tmLanguage.json"}]},repository:{type:"git",url:"https://github.com/microsoft/vscode.git"}};
|
|
4
|
-
var nls = {displayName:"Perl Language Basics",description:"Provides syntax highlighting and bracket matching in Perl files."};
|
|
5
4
|
onExtHostInitialized(() => {
|
|
6
|
-
const { registerFile } = registerExtension(manifest
|
|
5
|
+
const { registerFile } = registerExtension(manifest);
|
|
7
6
|
registerFile('./perl.language-configuration.json', async () => await import('./perl.language-configuration.js').then(module => module.default ?? module)),
|
|
8
7
|
registerFile('./perl6.language-configuration.json', async () => await import('./perl6.language-configuration.js').then(module => module.default ?? module)),
|
|
9
8
|
registerFile('./syntaxes/perl.tmLanguage.json', async () => await import('./perl.tmLanguage.js').then(module => module.default ?? module)),
|
package/dist/php.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { registerExtension } from './api2.js';
|
|
2
2
|
import { onExtHostInitialized } from './polyfill.js';
|
|
3
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
|
-
var nls = {displayName:"PHP Language Basics",description:"Provides syntax highlighting and bracket matching for PHP files."};
|
|
5
4
|
onExtHostInitialized(() => {
|
|
6
|
-
const { registerFile } = registerExtension(manifest
|
|
5
|
+
const { registerFile } = registerExtension(manifest);
|
|
7
6
|
registerFile('./language-configuration.json', async () => await import('./language-configuration24.js').then(module => module.default ?? module)),
|
|
8
7
|
registerFile('./syntaxes/php.tmLanguage.json', async () => await import('./php.tmLanguage.js').then(module => module.default ?? module)),
|
|
9
8
|
registerFile('./syntaxes/html.tmLanguage.json', async () => await import('./html.tmLanguage2.js').then(module => module.default ?? module)),
|
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,
|
|
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';
|
|
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$6 } from 'monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js';
|
|
132
|
+
import { Extensions as Extensions$7 } 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$7.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 = unsupported;
|
|
55141
55141
|
this._loadCommonJSModule = unsupported;
|
|
55142
55142
|
this.$setRemoteEnvironment = unsupported;
|
|
55143
55143
|
}
|
|
@@ -55211,19 +55211,6 @@ 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
|
-
},
|
|
55227
55214
|
getProxy: function (identifier) {
|
|
55228
55215
|
return ( rpcProtocol.getProxy(identifier));
|
|
55229
55216
|
},
|
|
@@ -55238,11 +55225,9 @@ const mainContext = {
|
|
|
55238
55225
|
},
|
|
55239
55226
|
dispose() {
|
|
55240
55227
|
rpcProtocol.dispose();
|
|
55241
|
-
}
|
|
55242
|
-
_setExtensionHostProxy() { },
|
|
55243
|
-
_setAllMainProxyIdentifiers() { }
|
|
55228
|
+
}
|
|
55244
55229
|
};
|
|
55245
|
-
|
|
55230
|
+
function createExtHostServices() {
|
|
55246
55231
|
const rpcProtocol = StandaloneServices.get(IExtHostRpcService);
|
|
55247
55232
|
const instantiationService = StandaloneServices.get(IInstantiationService);
|
|
55248
55233
|
const logService = StandaloneServices.get(ILogService);
|
|
@@ -55301,7 +55286,7 @@ async function createExtHostServices() {
|
|
|
55301
55286
|
onUnexpectedError(err);
|
|
55302
55287
|
}
|
|
55303
55288
|
}
|
|
55304
|
-
|
|
55289
|
+
void extHostExtensionService.initialize();
|
|
55305
55290
|
return {
|
|
55306
55291
|
extHostLogService: logService,
|
|
55307
55292
|
extHostApiDeprecationService,
|
|
@@ -55337,7 +55322,7 @@ let initializePromise;
|
|
|
55337
55322
|
const extHostInitializedEmitter = new Emitter();
|
|
55338
55323
|
const onExtHostInitialized = extHostInitializedEmitter.event;
|
|
55339
55324
|
async function _initialize() {
|
|
55340
|
-
extHostServices =
|
|
55325
|
+
extHostServices = createExtHostServices();
|
|
55341
55326
|
configProvider = await extHostServices.extHostConfiguration.getConfigProvider();
|
|
55342
55327
|
extHostInitializedEmitter.fire();
|
|
55343
55328
|
}
|
|
@@ -55482,7 +55467,7 @@ polyfillPrototypeSimple(ListView$1.prototype, ListView.prototype);
|
|
|
55482
55467
|
polyfillPrototypeSimple(CallbackIterable$1.prototype, CallbackIterable.prototype);
|
|
55483
55468
|
polyfillPrototypeSimple(SelectActionViewItem$1.prototype, SelectActionViewItem.prototype);
|
|
55484
55469
|
polyfillPrototypeSimple(QuickInputService$1.prototype, QuickInputService.prototype);
|
|
55485
|
-
const keydinbingsRegistry = ( Registry.as(Extensions$
|
|
55470
|
+
const keydinbingsRegistry = ( Registry.as(Extensions$6.EditorModes));
|
|
55486
55471
|
polyfillPrototypeSimple(keydinbingsRegistry.constructor.prototype, KeybindingsRegistryImpl.prototype);
|
|
55487
55472
|
polyfillPrototypeSimple(Workspace$1.prototype, Workspace.prototype);
|
|
55488
55473
|
polyfillPrototypeSimple(ConfigurationModelParser$1.prototype, ConfigurationModelParser.prototype);
|
|
@@ -55531,10 +55516,6 @@ const configurationRegistry = ( Registry.as(Extensions$5.Configuration));
|
|
|
55531
55516
|
configurationRegistry.onDidUpdateConfiguration ?? (configurationRegistry.onDidUpdateConfiguration = configurationRegistry._onDidUpdateConfiguration.event);
|
|
55532
55517
|
configurationRegistry.onDidSchemaChange ?? (configurationRegistry.onDidSchemaChange = configurationRegistry._onDidSchemaChange.event);
|
|
55533
55518
|
polyfillPrototypeSimple(configurationRegistry.constructor.prototype, ConfigurationRegistry.prototype);
|
|
55534
|
-
const colorRegistry = ( Registry.as(Extensions$6.ColorContribution));
|
|
55535
|
-
colorRegistry.getColorReferenceSchema = function () {
|
|
55536
|
-
return this.colorReferenceSchema;
|
|
55537
|
-
};
|
|
55538
55519
|
(_a = NoOpNotification$1.prototype).onDidClose ?? (_a.onDidClose = Event.None);
|
|
55539
55520
|
Object.defineProperty(GhostTextController.prototype, 'onActiveModelDidChange', {
|
|
55540
55521
|
get() {
|
package/dist/powershell.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { registerExtension } from './api2.js';
|
|
2
2
|
import { onExtHostInitialized } from './polyfill.js';
|
|
3
3
|
var manifest = {name:"powershell",displayName:"%displayName%",description:"%description%",version:"1.0.0",publisher:"vscode",license:"MIT",engines:{vscode:"*"},contributes:{languages:[{id:"powershell",extensions:[".ps1",".psm1",".psd1",".pssc",".psrc"],aliases:["PowerShell","powershell","ps","ps1"],firstLine:"^#!\\s*/.*\\bpwsh\\b",configuration:"./language-configuration.json"}],grammars:[{language:"powershell",scopeName:"source.powershell",path:"./syntaxes/powershell.tmLanguage.json"}]},scripts:{"update-grammar":"node ../node_modules/vscode-grammar-updater/bin PowerShell/EditorSyntax PowerShellSyntax.tmLanguage ./syntaxes/powershell.tmLanguage.json"},repository:{type:"git",url:"https://github.com/microsoft/vscode.git"}};
|
|
4
|
-
var nls = {displayName:"Powershell Language Basics",description:"Provides snippets, syntax highlighting, bracket matching and folding in Powershell files."};
|
|
5
4
|
onExtHostInitialized(() => {
|
|
6
|
-
const { registerFile } = registerExtension(manifest
|
|
5
|
+
const { registerFile } = registerExtension(manifest);
|
|
7
6
|
registerFile('./language-configuration.json', async () => await import('./language-configuration25.js').then(module => module.default ?? module)),
|
|
8
7
|
registerFile('./syntaxes/powershell.tmLanguage.json', async () => await import('./powershell.tmLanguage.js').then(module => module.default ?? module));
|
|
9
8
|
});
|
package/dist/pug.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { registerExtension } from './api2.js';
|
|
2
2
|
import { onExtHostInitialized } from './polyfill.js';
|
|
3
3
|
var manifest = {name:"pug",displayName:"%displayName%",description:"%description%",version:"1.0.0",publisher:"vscode",license:"MIT",engines:{vscode:"*"},scripts:{"update-grammar":"node ../node_modules/vscode-grammar-updater/bin davidrios/pug-tmbundle Syntaxes/Pug.JSON-tmLanguage ./syntaxes/pug.tmLanguage.json"},contributes:{languages:[{id:"jade",extensions:[".pug",".jade"],aliases:["Pug","Jade","jade"],configuration:"./language-configuration.json"}],grammars:[{language:"jade",scopeName:"text.pug",path:"./syntaxes/pug.tmLanguage.json"}],configurationDefaults:{"[jade]":{"diffEditor.ignoreTrimWhitespace":false}}},repository:{type:"git",url:"https://github.com/microsoft/vscode.git"}};
|
|
4
|
-
var nls = {displayName:"Pug Language Basics",description:"Provides syntax highlighting and bracket matching in Pug files."};
|
|
5
4
|
onExtHostInitialized(() => {
|
|
6
|
-
const { registerFile } = registerExtension(manifest
|
|
5
|
+
const { registerFile } = registerExtension(manifest);
|
|
7
6
|
registerFile('./language-configuration.json', async () => await import('./language-configuration26.js').then(module => module.default ?? module)),
|
|
8
7
|
registerFile('./syntaxes/pug.tmLanguage.json', async () => await import('./pug.tmLanguage.js').then(module => module.default ?? module));
|
|
9
8
|
});
|