@codingame/monaco-vscode-api 1.69.3 → 1.69.4
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/files.js +1 -1
- package/dist/missing-services.js +48 -30
- package/package.json +1 -1
package/dist/files.js
CHANGED
|
@@ -1305,7 +1305,7 @@ const extensionFileSystemProvider = new ExtensionFileSystemProviderWithFileReadW
|
|
|
1305
1305
|
let MemoryFileService = class MemoryFileService extends FileService {
|
|
1306
1306
|
constructor(logService) {
|
|
1307
1307
|
super(logService);
|
|
1308
|
-
this.registerProvider(
|
|
1308
|
+
this.registerProvider('user', new InMemoryFileSystemProvider());
|
|
1309
1309
|
const extension = Services.get().extension ?? DEFAULT_EXTENSION;
|
|
1310
1310
|
this.registerProvider(extension.extensionLocation.scheme, extensionFileSystemProvider);
|
|
1311
1311
|
}
|
package/dist/missing-services.js
CHANGED
|
@@ -13,20 +13,20 @@ import { firstOrDefault, distinct, equals as equals$1, binarySearch, range } fro
|
|
|
13
13
|
import { PLAINTEXT_LANGUAGE_ID, ModesRegistry } from 'monaco-editor/esm/vs/editor/common/languages/modesRegistry.js';
|
|
14
14
|
import { TokenizationRegistry } from 'monaco-editor/esm/vs/editor/common/languages.js';
|
|
15
15
|
import { NoOpNotification } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
|
16
|
-
import { I as IFileService, b as IUriIdentityService,
|
|
17
|
-
import { StandaloneConfigurationService as StandaloneConfigurationService$1
|
|
16
|
+
import { I as IFileService, b as IUriIdentityService, r as refineServiceDecorator, p as productSchemaId, c as IEditorService, d as IPaneCompositePartService, e as ITextFileService, f as IEditorGroupsService, g as IWorkbenchEnvironmentService, h as IWorkingCopyFileService, i as IPathService, S as Services, j as IProductService, k as ILanguageStatusService, l as IHostService, m as ISnippetsService, N as NoOpNotification$1, s as shuffle } from './services2.js';
|
|
17
|
+
import { StandaloneServices, StandaloneConfigurationService as StandaloneConfigurationService$1 } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
18
18
|
import { Configuration as Configuration$1, ConfigurationModel as ConfigurationModel$1, ConfigurationChangeEvent } from 'monaco-editor/esm/vs/platform/configuration/common/configurationModels.js';
|
|
19
19
|
import { DefaultConfigurationModel } from 'monaco-editor/esm/vs/platform/configuration/common/configurations.js';
|
|
20
20
|
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
21
21
|
import { TernarySearchTree as TernarySearchTree$1, ResourceMap as ResourceMap$1 } from 'monaco-editor/esm/vs/base/common/map.js';
|
|
22
22
|
import { compare, regExpLeadsToEndlessLoop, compareIgnoreCase, compareSubstring, compareSubstringIgnoreCase } from 'monaco-editor/esm/vs/base/common/strings.js';
|
|
23
|
-
import {
|
|
24
|
-
import { _ as __decorate, a as __param, R as RawContextKey
|
|
25
|
-
import { ErrorHandler as ErrorHandler$1,
|
|
23
|
+
import { ContextKeyExpr, ContextKeyDefinedExpr, RawContextKey as RawContextKey$1, IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
24
|
+
import { _ as __decorate, a as __param, R as RawContextKey } from './contextkey.js';
|
|
25
|
+
import { onUnexpectedError, ErrorHandler as ErrorHandler$1, CancellationError } from 'monaco-editor/esm/vs/base/common/errors.js';
|
|
26
26
|
import { clearPlatformLanguageAssociations, registerPlatformLanguageAssociation, getLanguageIds } from 'monaco-editor/esm/vs/editor/common/services/languagesAssociations.js';
|
|
27
27
|
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
28
|
-
import {
|
|
29
|
-
import { WorkspaceFolder as WorkspaceFolder$1
|
|
28
|
+
import { Extensions as Extensions$2, overrideIdentifiersFromKey, OVERRIDE_PROPERTY_REGEX } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
|
|
29
|
+
import { isSingleFolderWorkspaceIdentifier, WorkspaceFolder as WorkspaceFolder$1 } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
|
|
30
30
|
import { List as List$1 } from 'monaco-editor/esm/vs/base/browser/ui/list/listWidget.js';
|
|
31
31
|
import { Event, EventBufferer } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
32
32
|
import { ListView } from 'monaco-editor/esm/vs/base/browser/ui/list/listView.js';
|
|
@@ -5850,19 +5850,30 @@ if (SnippetParser.prototype.text == null) {
|
|
|
5850
5850
|
else {
|
|
5851
5851
|
console.warn('Useless polyfill: SnippetParser');
|
|
5852
5852
|
}
|
|
5853
|
-
|
|
5854
|
-
Object.defineProperties(
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
Object.
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5853
|
+
function polyfillPrototypeSimple(a, b) {
|
|
5854
|
+
Object.defineProperties(a, Object.getOwnPropertyDescriptors(b));
|
|
5855
|
+
}
|
|
5856
|
+
function polyfillPrototype(a, b, toA, toB) {
|
|
5857
|
+
for (const key of Object.getOwnPropertyNames(b)) {
|
|
5858
|
+
if (!Object.hasOwnProperty.call(a, key)) {
|
|
5859
|
+
a[key] = function (...args) {
|
|
5860
|
+
return toA(b[key].call(this, ...args.map(toB)));
|
|
5861
|
+
};
|
|
5862
|
+
}
|
|
5863
|
+
}
|
|
5864
|
+
}
|
|
5865
|
+
polyfillPrototypeSimple(List$1.prototype, List.prototype);
|
|
5866
|
+
polyfillPrototypeSimple(WorkspaceFolder$1.prototype, WorkspaceFolder.prototype);
|
|
5867
|
+
polyfillPrototypeSimple(LanguagesRegistry$1.prototype, LanguagesRegistry.prototype);
|
|
5868
|
+
polyfillPrototypeSimple(ErrorHandler$1.prototype, ErrorHandler.prototype);
|
|
5869
|
+
polyfillPrototypeSimple(RawContextKey$1.prototype, RawContextKey.prototype);
|
|
5870
|
+
polyfillPrototypeSimple(Configuration$1.prototype, Configuration.prototype);
|
|
5871
|
+
polyfillPrototypeSimple(TernarySearchTree$1.prototype, TernarySearchTree.prototype);
|
|
5872
|
+
polyfillPrototypeSimple(StandaloneConfigurationService$1.prototype, StandaloneConfigurationService.prototype);
|
|
5873
|
+
polyfillPrototypeSimple(LanguageService$1.prototype, LanguageService.prototype);
|
|
5874
|
+
polyfillPrototypeSimple(NoOpNotification.prototype, NoOpNotification$1.prototype);
|
|
5875
|
+
polyfillPrototypeSimple(Themable$1.prototype, Themable.prototype);
|
|
5876
|
+
polyfillPrototypeSimple(ProgressBar$1.prototype, ProgressBar.prototype);
|
|
5866
5877
|
const jsonContributionRegistry = ( Registry.as(Extensions.JSONContribution));
|
|
5867
5878
|
jsonContributionRegistry.getSchemaContributions ?? (jsonContributionRegistry.getSchemaContributions = () => ({
|
|
5868
5879
|
schemas: jsonContributionRegistry.schemasById
|
|
@@ -5908,13 +5919,20 @@ for (const key of Object.getOwnPropertyNames(VSBuffer)) {
|
|
|
5908
5919
|
};
|
|
5909
5920
|
}
|
|
5910
5921
|
}
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
};
|
|
5922
|
+
polyfillPrototype(VSBuffer$1.prototype, VSBuffer.prototype, toMonacoVSBuffer, toVSCodeVSBuffer);
|
|
5923
|
+
function toMonacoColor(value) {
|
|
5924
|
+
if (value instanceof Color) {
|
|
5925
|
+
return new Color$1(value.rgba);
|
|
5916
5926
|
}
|
|
5927
|
+
return value;
|
|
5928
|
+
}
|
|
5929
|
+
function toVSCodeColor(value) {
|
|
5930
|
+
if (value instanceof Color$1) {
|
|
5931
|
+
return new Color(value.rgba);
|
|
5932
|
+
}
|
|
5933
|
+
return value;
|
|
5917
5934
|
}
|
|
5935
|
+
polyfillPrototype(Color$1.prototype, Color.prototype, toMonacoColor, toVSCodeColor);
|
|
5918
5936
|
const EXTENSION_CATEGORIES = [
|
|
5919
5937
|
'Azure',
|
|
5920
5938
|
'Data Science',
|
|
@@ -7169,7 +7187,7 @@ class WorkbenchEnvironmentService {
|
|
|
7169
7187
|
get userRoamingDataHome() { return unsupported(); }
|
|
7170
7188
|
get keyboardLayoutResource() { return unsupported(); }
|
|
7171
7189
|
get argvResource() { return unsupported(); }
|
|
7172
|
-
get snippetsHome() { return URI.
|
|
7190
|
+
get snippetsHome() { return ( URI.from({ scheme: 'user', path: '/snippets' })); }
|
|
7173
7191
|
get untitledWorkspacesHome() { return unsupported(); }
|
|
7174
7192
|
get globalStorageHome() { return unsupported(); }
|
|
7175
7193
|
get workspaceStorageHome() { return unsupported(); }
|
|
@@ -7371,12 +7389,12 @@ const profile = {
|
|
|
7371
7389
|
id: 'default',
|
|
7372
7390
|
isDefault: true,
|
|
7373
7391
|
name: 'default',
|
|
7374
|
-
location: URI.
|
|
7392
|
+
location: ( URI.from({ scheme: 'user', path: '/profile.json' })),
|
|
7375
7393
|
get globalStorageHome() { return unsupported(); },
|
|
7376
|
-
settingsResource: URI.
|
|
7377
|
-
keybindingsResource: URI.
|
|
7394
|
+
settingsResource: ( URI.from({ scheme: 'user', path: '/settings.json' })),
|
|
7395
|
+
keybindingsResource: ( URI.from({ scheme: 'user', path: '/keybindings.json' })),
|
|
7378
7396
|
get tasksResource() { return unsupported(); },
|
|
7379
|
-
get snippetsHome() { return URI.
|
|
7397
|
+
get snippetsHome() { return ( URI.from({ scheme: 'user', path: '/snippets' })); },
|
|
7380
7398
|
extensionsResource: undefined
|
|
7381
7399
|
};
|
|
7382
7400
|
registerSingleton(IUserDataProfilesService, class UserDataProfilesService {
|