@codingame/monaco-vscode-api 1.69.9 → 1.69.11
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/api.js +2 -1
- package/dist/configuration.js +4 -4
- package/dist/dialogs.js +2 -2
- package/dist/extHost.js +4 -106
- package/dist/files.js +4 -4
- package/dist/keybindings.js +4 -4
- package/dist/languageConfiguration.js +3 -3
- package/dist/languageService.js +2 -2
- package/dist/languages.js +1 -1
- package/dist/layout.js +2 -2
- package/dist/layoutService.js +1 -1
- package/dist/missing-services.js +10 -245
- package/dist/modelEditor.js +3 -3
- package/dist/monaco.js +2 -2
- package/dist/notifications.js +2 -2
- package/dist/polyfill.js +139 -20
- package/dist/services.d.ts +2125 -2125
- package/dist/services.js +3 -2
- package/dist/services2.js +577 -3
- package/dist/snippets.js +4 -4
- package/dist/textmate.js +4 -4
- package/dist/theme.js +3 -3
- package/dist/tokenClassification.js +1 -1
- package/dist/tokenClassificationRegistry.js +1 -1
- package/dist/workbenchThemeService.js +1 -1
- package/dist/{contextkey.js → workspace.js} +24 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { s as refineServiceDecorator } from './services2.js';
|
|
2
2
|
import { IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
|
|
3
3
|
import { isString, isBoolean } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
4
4
|
const IWorkbenchThemeService = refineServiceDecorator(IThemeService);
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js';
|
|
1
2
|
import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
2
3
|
import { isMacintosh, isLinux, isWindows, isWeb, isEdge, isFirefox, isChrome, isSafari } from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
4
|
+
import { joinPath } from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
5
|
+
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
6
|
+
const Emitter = monaco.Emitter;
|
|
3
7
|
function sortedDiff(before, after, compare) {
|
|
4
8
|
const result = [];
|
|
5
9
|
function pushSplice(start, deleteCount, toInsert) {
|
|
@@ -511,4 +515,23 @@ function cmp2(key1, value1, key2, value2) {
|
|
|
511
515
|
}
|
|
512
516
|
return 0;
|
|
513
517
|
}
|
|
514
|
-
|
|
518
|
+
function isWorkspaceIdentifier(obj) {
|
|
519
|
+
const workspaceIdentifier = obj;
|
|
520
|
+
return typeof workspaceIdentifier?.id === 'string' && URI.isUri(workspaceIdentifier.configPath);
|
|
521
|
+
}
|
|
522
|
+
class WorkspaceFolder {
|
|
523
|
+
constructor(data,
|
|
524
|
+
raw) {
|
|
525
|
+
this.raw = raw;
|
|
526
|
+
this.uri = data.uri;
|
|
527
|
+
this.index = data.index;
|
|
528
|
+
this.name = data.name;
|
|
529
|
+
}
|
|
530
|
+
toResource(relativePath) {
|
|
531
|
+
return joinPath(this.uri, relativePath);
|
|
532
|
+
}
|
|
533
|
+
toJSON() {
|
|
534
|
+
return { uri: this.uri, name: this.name, index: this.index };
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
export { ContextKeyExprType as C, Emitter as E, NoOpNotification as N, RawContextKey as R, WorkspaceFolder as W, __decorate as _, __param as a, __classPrivateFieldSet as b, __classPrivateFieldGet as c, coalesceInPlace as d, delta as e, NotificationsFilter as f, NeverShowAgainScope as g, index as h, isWorkspaceIdentifier as i, flatten as j, mapArrayOrNot as m, shuffle as s };
|