@codingame/monaco-vscode-api 1.69.7 → 1.69.8
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 +8 -7
- package/dist/configuration.js +384 -73
- package/dist/contextkey.js +13 -1
- package/dist/dialogs.js +13 -12
- package/dist/extHost.js +2063 -1396
- package/dist/files.js +100 -105
- package/dist/keybindings.js +358 -307
- package/dist/languageConfiguration.js +5 -4
- package/dist/languageService.js +3 -3
- package/dist/languages.js +4 -3
- package/dist/layout.js +294 -311
- package/dist/messages.js +2 -0
- package/dist/missing-services.js +5304 -5954
- package/dist/modelEditor.js +69 -68
- package/dist/monaco.js +14 -13
- package/dist/notifications.js +268 -337
- package/dist/polyfill.js +446 -913
- package/dist/services.js +1 -1
- package/dist/services2.js +659 -26
- package/dist/snippets.js +102 -109
- package/dist/textmate.js +82 -89
- package/dist/theme.js +396 -407
- package/dist/tokenClassification.js +4 -3
- package/dist/tokenClassificationRegistry.js +78 -84
- package/dist/tools.js +2 -1
- package/dist/workbenchThemeService.js +1 -1
- package/dist/workspaceContext.js +2 -1
- package/package.json +1 -1
package/dist/contextkey.js
CHANGED
|
@@ -73,6 +73,18 @@ function index(array, indexer, mapper) {
|
|
|
73
73
|
return r;
|
|
74
74
|
}, Object.create(null));
|
|
75
75
|
}
|
|
76
|
+
function insert(array, element) {
|
|
77
|
+
array.push(element);
|
|
78
|
+
return () => remove(array, element);
|
|
79
|
+
}
|
|
80
|
+
function remove(array, element) {
|
|
81
|
+
const index = array.indexOf(element);
|
|
82
|
+
if (index > -1) {
|
|
83
|
+
array.splice(index, 1);
|
|
84
|
+
return element;
|
|
85
|
+
}
|
|
86
|
+
return undefined;
|
|
87
|
+
}
|
|
76
88
|
function shuffle(array, _seed) {
|
|
77
89
|
let rand;
|
|
78
90
|
if (typeof _seed === 'number') {
|
|
@@ -511,4 +523,4 @@ function cmp2(key1, value1, key2, value2) {
|
|
|
511
523
|
}
|
|
512
524
|
return 0;
|
|
513
525
|
}
|
|
514
|
-
export { ContextKeyExprType as C, NoOpNotification as N, RawContextKey as R,
|
|
526
|
+
export { ContextKeyExprType as C, NoOpNotification as N, RawContextKey as R, __classPrivateFieldSet as _, __classPrivateFieldGet as a, __decorate as b, coalesceInPlace as c, __param as d, delta as e, NotificationsFilter as f, flatten as g, NeverShowAgainScope as h, insert as i, index as j, mapArrayOrNot as m, shuffle as s };
|
package/dist/dialogs.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { E as Emitter } from './
|
|
1
|
+
import { E as Emitter } from './polyfill.js';
|
|
2
|
+
import './missing-services.js';
|
|
2
3
|
import { g as getServiceOverride$1, D as DialogHandlerContribution } from './layout.js';
|
|
3
|
-
import {
|
|
4
|
+
import { b as __decorate, d as __param } from './contextkey.js';
|
|
4
5
|
import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
5
6
|
import { DeferredPromise } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
6
|
-
import {
|
|
7
|
+
import { e as IWorkbenchEnvironmentService } from './services2.js';
|
|
7
8
|
import { ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
|
|
8
9
|
import { o as onServicesInitialized } from './tools.js';
|
|
9
10
|
import { IDialogService } from 'monaco-editor/esm/vs/platform/dialogs/common/dialogs.js';
|
|
@@ -12,13 +13,13 @@ class DialogsModel extends Disposable {
|
|
|
12
13
|
constructor() {
|
|
13
14
|
super(...arguments);
|
|
14
15
|
this.dialogs = [];
|
|
15
|
-
this._onWillShowDialog = this._register((
|
|
16
|
+
this._onWillShowDialog = this._register(( new Emitter()));
|
|
16
17
|
this.onWillShowDialog = this._onWillShowDialog.event;
|
|
17
|
-
this._onDidShowDialog = this._register((
|
|
18
|
+
this._onDidShowDialog = this._register(( new Emitter()));
|
|
18
19
|
this.onDidShowDialog = this._onDidShowDialog.event;
|
|
19
20
|
}
|
|
20
21
|
show(dialog) {
|
|
21
|
-
const promise = (
|
|
22
|
+
const promise = ( new DeferredPromise());
|
|
22
23
|
const item = {
|
|
23
24
|
args: dialog,
|
|
24
25
|
close: result => {
|
|
@@ -40,7 +41,7 @@ let DialogService = class DialogService extends Disposable {
|
|
|
40
41
|
super();
|
|
41
42
|
this.environmentService = environmentService;
|
|
42
43
|
this.logService = logService;
|
|
43
|
-
this.model = this._register((
|
|
44
|
+
this.model = this._register(( new DialogsModel()));
|
|
44
45
|
this.onWillShowDialog = this.model.onWillShowDialog;
|
|
45
46
|
this.onDidShowDialog = this.model.onDidShowDialog;
|
|
46
47
|
}
|
|
@@ -80,17 +81,17 @@ let DialogService = class DialogService extends Disposable {
|
|
|
80
81
|
await handle.result;
|
|
81
82
|
}
|
|
82
83
|
};
|
|
83
|
-
DialogService = (
|
|
84
|
-
(
|
|
85
|
-
(
|
|
86
|
-
], DialogService))
|
|
84
|
+
DialogService = ( __decorate([
|
|
85
|
+
( __param(0, IWorkbenchEnvironmentService)),
|
|
86
|
+
( __param(1, ILogService))
|
|
87
|
+
], DialogService));
|
|
87
88
|
function initialize(instantiationService) {
|
|
88
89
|
instantiationService.createInstance(DialogHandlerContribution);
|
|
89
90
|
}
|
|
90
91
|
function getServiceOverride(container) {
|
|
91
92
|
onServicesInitialized(initialize);
|
|
92
93
|
return {
|
|
93
|
-
[
|
|
94
|
+
[IDialogService.toString()]: new SyncDescriptor(DialogService),
|
|
94
95
|
...getServiceOverride$1(container)
|
|
95
96
|
};
|
|
96
97
|
}
|