@codingame/monaco-vscode-api 1.69.0 → 1.69.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/README.md +24 -0
- package/dist/configuration.js +179 -6
- package/dist/contextkey.js +387 -0
- package/dist/extHost.js +3 -2
- package/dist/files.js +226 -226
- package/dist/keybindings.js +2 -2
- package/dist/languageConfiguration.d.ts +1 -151
- package/dist/languageConfiguration.js +7 -11
- package/dist/languageService.js +2 -2
- package/dist/messages.js +6 -6
- package/dist/missing-services.js +507 -378
- package/dist/modelEditor.js +2 -2
- package/dist/monaco.d.ts +236 -99
- package/dist/monaco.js +25 -6
- package/dist/services.d.ts +19 -1
- package/dist/services.js +1 -0
- package/dist/services2.js +1 -1
- package/dist/snippets.js +10 -49
- package/dist/textmate.d.ts +3 -2
- package/dist/textmate.js +8 -9
- package/dist/theme.d.ts +4 -3
- package/dist/theme.js +2 -2
- package/dist/tokenClassification.js +5 -7
- package/dist/tools.js +16 -2
- package/dist/workspaceContext.js +49 -0
- package/package.json +7 -7
- package/dist/tslib.es6.js +0 -21
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Q as ITextMateService, I as IExtensionService, P as parse, S as getNodeType } from './missing-services.js';
|
|
2
|
-
import { _ as __decorate, a as __param } from './
|
|
2
|
+
import { _ as __decorate, a as __param } from './contextkey.js';
|
|
3
3
|
import { g as getParseErrorMessage } from './jsonErrorMessages.js';
|
|
4
4
|
import { I as IExtensionResourceLoaderService, r as registerExtensionFile, g as getServiceOverride$1 } from './files.js';
|
|
5
5
|
import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
@@ -11,10 +11,10 @@ import { ILanguageConfigurationService } from 'monaco-editor/esm/vs/editor/commo
|
|
|
11
11
|
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
12
12
|
import { Extensions } from 'monaco-editor/esm/vs/platform/jsonschemas/common/jsonContributionRegistry.js';
|
|
13
13
|
import { IndentAction } from 'monaco-editor/esm/vs/editor/common/languages/languageConfiguration.js';
|
|
14
|
+
import { o as onServicesInitialized } from './tools.js';
|
|
14
15
|
import { S as Services } from './services2.js';
|
|
15
16
|
import { bd as DEFAULT_EXTENSION } from './extHost.js';
|
|
16
|
-
import {
|
|
17
|
-
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
17
|
+
import { joinPath } from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
18
18
|
function isStringArr(something) {
|
|
19
19
|
if (!Array.isArray(something)) {
|
|
20
20
|
return false;
|
|
@@ -909,19 +909,15 @@ const schema = {
|
|
|
909
909
|
};
|
|
910
910
|
const schemaRegistry = ( Registry.as(Extensions.JSONContribution));
|
|
911
911
|
schemaRegistry.registerSchema(schemaId, schema);
|
|
912
|
-
function setLanguageConfiguration(
|
|
912
|
+
function setLanguageConfiguration(path, getConfiguration) {
|
|
913
913
|
const extension = Services.get().extension ?? DEFAULT_EXTENSION;
|
|
914
|
-
|
|
915
|
-
throw new Error(`The provided resource url should have the ${extension.extensionLocation.scheme} scheme`);
|
|
916
|
-
}
|
|
917
|
-
registerExtensionFile(resource, getConfiguration);
|
|
914
|
+
registerExtensionFile(joinPath(extension.extensionLocation, path), getConfiguration);
|
|
918
915
|
}
|
|
919
|
-
function initialize() {
|
|
920
|
-
const instantiationService = StandaloneServices.get(IInstantiationService);
|
|
916
|
+
function initialize(instantiationService) {
|
|
921
917
|
instantiationService.createInstance(LanguageConfigurationFileHandler);
|
|
922
918
|
}
|
|
923
919
|
function getServiceOverride() {
|
|
924
|
-
|
|
920
|
+
onServicesInitialized(initialize);
|
|
925
921
|
return {
|
|
926
922
|
...getServiceOverride$1()
|
|
927
923
|
};
|
package/dist/languageService.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as __decorate, a as __param } from './
|
|
2
|
-
import {
|
|
1
|
+
import { _ as __decorate, a as __param } from './contextkey.js';
|
|
2
|
+
import { h as ExtensionsRegistry, I as IExtensionService } from './missing-services.js';
|
|
3
3
|
import { Y as FILES_ASSOCIATIONS_CONFIG } from './services2.js';
|
|
4
4
|
import { parse } from 'monaco-editor/esm/vs/base/common/glob.js';
|
|
5
5
|
import { posix } from 'monaco-editor/esm/vs/base/common/path.js';
|
package/dist/messages.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { e as ILifecycleService, E as Emitter, f as IntervalCounter, g as assertAllDefined, u as unsupported } from './missing-services.js';
|
|
2
|
-
import { _ as __decorate, a as __param } from './
|
|
2
|
+
import { _ as __decorate, a as __param } from './contextkey.js';
|
|
3
3
|
import { focusBorder, registerColor, textLinkForeground, editorErrorForeground, editorWarningForeground, editorInfoForeground, widgetShadow, contrastBorder, editorWidgetBackground, editorWidgetForeground, buttonForeground, buttonSeparator, buttonBackground, buttonHoverBackground, buttonSecondaryForeground, buttonSecondaryBackground, buttonSecondaryHoverBackground, buttonBorder, progressBarBackground, resolveColorValue, checkboxBorder, checkboxBackground, checkboxForeground, problemsErrorIconForeground, problemsWarningIconForeground, problemsInfoIconForeground, inputBackground, inputForeground, inputBorder } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
4
4
|
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
5
5
|
import { I as IFileService, f as IEditorGroupsService, l as IHostService, j as IProductService, g as IWorkbenchEnvironmentService, w as NotificationsFilter, x as NeverShowAgainScope } from './services2.js';
|
|
@@ -54,6 +54,7 @@ import { DeferredPromise } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
|
54
54
|
import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
|
|
55
55
|
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
56
56
|
import { ICodeEditorService } from 'monaco-editor/esm/vs/editor/browser/services/codeEditorService.js';
|
|
57
|
+
import { o as onServicesInitialized } from './tools.js';
|
|
57
58
|
function isErrorWithActions(obj) {
|
|
58
59
|
const candidate = obj;
|
|
59
60
|
return candidate instanceof Error && Array.isArray(candidate.actions);
|
|
@@ -3591,11 +3592,10 @@ function getServiceOverride$1(container = document.body) {
|
|
|
3591
3592
|
[( IWorkbenchLayoutService.toString())]: new SyncDescriptor(LayoutService, [container])
|
|
3592
3593
|
};
|
|
3593
3594
|
}
|
|
3594
|
-
function
|
|
3595
|
+
function initialize(instantiationService) {
|
|
3595
3596
|
const container = StandaloneServices.get(ILayoutService).container;
|
|
3596
3597
|
container.classList.add('monaco-workbench');
|
|
3597
|
-
const model =
|
|
3598
|
-
const instantiationService = StandaloneServices.get(IInstantiationService);
|
|
3598
|
+
const model = instantiationService.invokeFunction((accessor) => accessor.get(INotificationService)).model;
|
|
3599
3599
|
const notificationsToasts = instantiationService.createInstance(NotificationsToasts, container, model);
|
|
3600
3600
|
notificationsToasts.layout(getClientArea(container));
|
|
3601
3601
|
const notificationsCenter = {
|
|
@@ -3611,10 +3611,10 @@ function register() {
|
|
|
3611
3611
|
}
|
|
3612
3612
|
};
|
|
3613
3613
|
registerNotificationCommands(notificationsCenter, notificationsToasts, model);
|
|
3614
|
-
|
|
3614
|
+
instantiationService.createInstance(DialogHandlerContribution);
|
|
3615
3615
|
}
|
|
3616
3616
|
function getServiceOverride(container) {
|
|
3617
|
-
|
|
3617
|
+
onServicesInitialized(initialize);
|
|
3618
3618
|
return {
|
|
3619
3619
|
[( IDialogService.toString())]: new SyncDescriptor(DialogService),
|
|
3620
3620
|
[( INotificationService.toString())]: new SyncDescriptor(NotificationService),
|