@codingame/monaco-vscode-api 1.69.24 → 1.76.0-next.2
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 +1 -3
- package/dist/_.contribution.js +3 -3
- package/dist/api.js +63 -31
- package/dist/async.js +9 -9
- package/dist/configuration.d.ts +109 -21
- package/dist/configuration.js +47 -217
- package/dist/{workspace.js → contextkey.js} +26 -47
- package/dist/dialogs.js +498 -426
- package/dist/extHost.js +1884 -909
- package/dist/files.js +65 -63
- package/dist/keybindings.d.ts +24 -18
- package/dist/keybindings.js +475 -404
- package/dist/languageConfiguration.js +5 -5
- package/dist/languageService.js +11 -3
- package/dist/languages.d.ts +24 -7
- package/dist/languages.js +1 -1
- package/dist/layout.js +104 -166
- package/dist/missing-services.js +230 -77
- package/dist/modelEditor.d.ts +1 -5
- package/dist/modelEditor.js +32 -58
- package/dist/monaco.d.ts +303 -713
- package/dist/monaco.js +2 -2
- package/dist/notifications.js +95 -235
- package/dist/polyfill.js +2022 -1637
- package/dist/services.d.ts +8908 -8467
- package/dist/services.js +1 -1
- package/dist/services2.js +293 -113
- package/dist/snippets.d.ts +24 -7
- package/dist/snippets.js +11 -9
- package/dist/textmate.d.ts +114 -20
- package/dist/textmate.js +825 -453
- package/dist/theme.js +13 -14
- package/dist/tokenClassification.d.ts +24 -7
- package/dist/tokenClassification.js +1 -1
- package/dist/tokenClassificationRegistry.js +1 -1
- package/dist/tools.js +104 -28
- package/package.json +12 -19
- package/dist/messages.d.ts +0 -10
- package/dist/messages.js +0 -11
- package/dist/types.js +0 -46
package/README.md
CHANGED
|
@@ -68,7 +68,6 @@ Usage:
|
|
|
68
68
|
```typescript
|
|
69
69
|
import { StandaloneServices } from 'vscode/services'
|
|
70
70
|
import getModelEditorServiceOverride from 'vscode/service-override/modelEditor'
|
|
71
|
-
import getMessageServiceOverride from 'vscode/service-override/messages'
|
|
72
71
|
import getConfigurationServiceOverride, { updateUserConfiguration, configurationRegistry } from 'vscode/service-override/configuration'
|
|
73
72
|
|
|
74
73
|
StandaloneServices.initialize({
|
|
@@ -76,7 +75,6 @@ StandaloneServices.initialize({
|
|
|
76
75
|
// Open a new editor here and return it
|
|
77
76
|
// It will be called when for instance the user ctrl+click on an import
|
|
78
77
|
}),
|
|
79
|
-
...getMessageServiceOverride(document.body),
|
|
80
78
|
...getConfigurationServiceOverride()
|
|
81
79
|
})
|
|
82
80
|
|
|
@@ -167,7 +165,7 @@ From CLI run:
|
|
|
167
165
|
```bash
|
|
168
166
|
cd demo
|
|
169
167
|
npm ci
|
|
170
|
-
npm
|
|
168
|
+
npm start
|
|
171
169
|
# OR: for vite debug output
|
|
172
170
|
npm run start:debug
|
|
173
171
|
```
|
package/dist/_.contribution.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
class KeyboardLayoutContribution {
|
|
2
|
-
constructor() {
|
|
3
|
-
this._layoutInfos = [];
|
|
4
|
-
}
|
|
5
2
|
get layoutInfos() {
|
|
6
3
|
return this._layoutInfos;
|
|
7
4
|
}
|
|
5
|
+
constructor() {
|
|
6
|
+
this._layoutInfos = [];
|
|
7
|
+
}
|
|
8
8
|
registerKeyboardLayout(layout) {
|
|
9
9
|
this._layoutInfos.push(layout);
|
|
10
10
|
}
|
package/dist/api.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import './polyfill.js';
|
|
2
|
-
import { B as Breakpoint$1, C as CallHierarchyIncomingCall$1, a as CallHierarchyItem$1, b as CallHierarchyOutgoingCall$1, c as CancellationTokenSource$1, d as CodeAction$1, e as CodeActionKind$1, f as CodeActionTriggerKind$1, g as CodeLens$1, h as Color$1, i as ColorInformation$1, j as ColorPresentation$1, k as CommentMode$1, l as CommentThreadCollapsibleState$1, m as CompletionItem$1, n as CompletionItemKind$1, o as CompletionItemTag$1, p as CompletionList$1, q as CompletionTriggerKind$1, r as ConfigurationTarget$1, s as CustomExecution$1, D as DebugAdapterExecutable$1, t as DebugAdapterInlineImplementation$1, u as DebugAdapterNamedPipeServer$1, v as DebugAdapterServer$1, w as DebugConsoleMode$1, x as DecorationRangeBehavior$1, y as Diagnostic$1, z as DiagnosticRelatedInformation$1, A as DiagnosticSeverity$1, E as DiagnosticTag$1, F as Disposable$1, G as DocumentHighlight$1, H as DocumentHighlightKind$1, I as DocumentLink$1, J as DocumentSymbol$1, K as EndOfLine$1, L as EnvironmentVariableMutatorType$1, M as EvaluatableExpression$1, N as InlineValueText$1, O as InlineValueVariableLookup$1, P as InlineValueEvaluatableExpression$1, Q as ExtensionKind$1, R as ExtensionMode$1, S as FileChangeType$1, T as FileDecoration$1, U as FileSystemError$1, V as FoldingRange$1, W as FoldingRangeKind$1, X as FunctionBreakpoint$1, Y as Hover$1, Z as Location$1, _ as MarkdownString$1, $ as ParameterInformation$1, a0 as Position$1, a1 as ProcessExecution$1, a2 as ProgressLocation$1, a3 as QuickInputButtons$1, a4 as Range$1, a5 as RelativePattern$1, a6 as Selection$2, a7 as SelectionRange$1, a8 as SemanticTokens$1, a9 as SemanticTokensBuilder$1, aa as SemanticTokensEdit$1, ab as SemanticTokensEdits$1, ac as SemanticTokensLegend$1, ad as ShellExecution$1, ae as ShellQuoting$1, af as SignatureHelp$1, ag as SignatureHelpTriggerKind$1, ah as SignatureInformation$1, ai as SnippetString$1, aj as SourceBreakpoint$1, ak as StatusBarAlignment$1, al as SymbolInformation$1, am as SymbolKind$1, an as SymbolTag$1, ao as Task$1, ap as TaskGroup$1, aq as TaskPanelKind$1, ar as TaskRevealKind$1, as as TaskScope$1, at as TerminalLink$1, au as TerminalLocation$1, av as TerminalProfile$1, aw as TextDocumentSaveReason$1, ax as TextEdit$1, ay as TextEditorLineNumbersStyle$1, az as TextEditorRevealType$1, aA as TextEditorSelectionChangeKind$1, aB as TextDocumentChangeReason$1, aC as ThemeColor$1, aD as ThemeIcon$1, aE as TreeItem$1, aF as TreeItemCollapsibleState$1, aG as TypeHierarchyItem$1, aH as UIKind$1, aI as ViewColumn$1, aJ as WorkspaceEdit$1, aK as InlayHint$1, aL as InlayHintLabelPart$1, aM as InlayHintKind$1, aN as NotebookRange$1, aO as NotebookCellKind$1, aP as NotebookCellData$1, aQ as NotebookData$1, aR as NotebookCellStatusBarAlignment$1, aS as NotebookCellOutput$1, aT as NotebookCellOutputItem$1, aU as NotebookCellStatusBarItem$1, aV as NotebookControllerAffinity$1, aW as LinkedEditingRanges$1, aX as TestRunRequest$1, aY as TestMessage$1, aZ as TestTag$1, a_ as TestRunProfileKind$1, a$ as LanguageStatusSeverity$1, b0 as QuickPickItemKind$1, b1 as TextDiffTabInput, b2 as CustomEditorTabInput, b3 as NotebookEditorTabInput, b4 as NotebookDiffEditorTabInput, b5 as WebviewEditorTabInput, b6 as TerminalEditorTabInput, b7 as InputBoxValidationSeverity$1, b8 as InlineSuggestionList, b9 as InlineCompletionTriggerKind$1, ba as InlineSuggestion, bb as DocumentDropEdit$1, bc as NotebookEditorRevealType$1, bd as
|
|
3
|
-
import { E as Emitter } from './
|
|
2
|
+
import { B as Breakpoint$1, C as CallHierarchyIncomingCall$1, a as CallHierarchyItem$1, b as CallHierarchyOutgoingCall$1, c as CancellationTokenSource$1, d as CodeAction$1, e as CodeActionKind$1, f as CodeActionTriggerKind$1, g as CodeLens$1, h as Color$1, i as ColorInformation$1, j as ColorPresentation$1, k as CommentMode$1, l as CommentThreadCollapsibleState$1, m as CompletionItem$1, n as CompletionItemKind$1, o as CompletionItemTag$1, p as CompletionList$1, q as CompletionTriggerKind$1, r as ConfigurationTarget$1, s as CustomExecution$1, D as DebugAdapterExecutable$1, t as DebugAdapterInlineImplementation$1, u as DebugAdapterNamedPipeServer$1, v as DebugAdapterServer$1, w as DebugConsoleMode$1, x as DecorationRangeBehavior$1, y as Diagnostic$1, z as DiagnosticRelatedInformation$1, A as DiagnosticSeverity$1, E as DiagnosticTag$1, F as Disposable$1, G as DocumentHighlight$1, H as DocumentHighlightKind$1, I as DocumentLink$1, J as DocumentSymbol$1, K as EndOfLine$1, L as EnvironmentVariableMutatorType$1, M as EvaluatableExpression$1, N as InlineValueText$1, O as InlineValueVariableLookup$1, P as InlineValueEvaluatableExpression$1, Q as ExtensionKind$1, R as ExtensionMode$1, S as FileChangeType$1, T as FileDecoration$1, U as FileSystemError$1, V as FoldingRange$1, W as FoldingRangeKind$1, X as FunctionBreakpoint$1, Y as Hover$1, Z as Location$1, _ as MarkdownString$1, $ as ParameterInformation$1, a0 as Position$1, a1 as ProcessExecution$1, a2 as ProgressLocation$1, a3 as QuickInputButtons$1, a4 as Range$1, a5 as RelativePattern$1, a6 as Selection$2, a7 as SelectionRange$1, a8 as SemanticTokens$1, a9 as SemanticTokensBuilder$1, aa as SemanticTokensEdit$1, ab as SemanticTokensEdits$1, ac as SemanticTokensLegend$1, ad as ShellExecution$1, ae as ShellQuoting$1, af as SignatureHelp$1, ag as SignatureHelpTriggerKind$1, ah as SignatureInformation$1, ai as SnippetString$1, aj as SourceBreakpoint$1, ak as StatusBarAlignment$1, al as SymbolInformation$1, am as SymbolKind$1, an as SymbolTag$1, ao as Task$1, ap as TaskGroup$1, aq as TaskPanelKind$1, ar as TaskRevealKind$1, as as TaskScope$1, at as TerminalLink$1, au as TerminalLocation$1, av as TerminalProfile$1, aw as TextDocumentSaveReason$1, ax as TextEdit$1, ay as TextEditorLineNumbersStyle$1, az as TextEditorRevealType$1, aA as TextEditorSelectionChangeKind$1, aB as TextDocumentChangeReason$1, aC as ThemeColor$1, aD as ThemeIcon$1, aE as TreeItem$1, aF as TreeItemCollapsibleState$1, aG as TypeHierarchyItem$1, aH as UIKind$1, aI as ViewColumn$1, aJ as WorkspaceEdit$1, aK as InlayHint$1, aL as InlayHintLabelPart$1, aM as InlayHintKind$1, aN as NotebookRange$1, aO as NotebookCellKind$1, aP as NotebookCellData$1, aQ as NotebookData$1, aR as NotebookCellStatusBarAlignment$1, aS as NotebookCellOutput$1, aT as NotebookCellOutputItem$1, aU as NotebookCellStatusBarItem$1, aV as NotebookControllerAffinity$1, aW as LinkedEditingRanges$1, aX as TestRunRequest$1, aY as TestMessage$1, aZ as TestTag$1, a_ as TestRunProfileKind$1, a$ as LanguageStatusSeverity$1, b0 as QuickPickItemKind$1, b1 as TextDiffTabInput, b2 as CustomEditorTabInput, b3 as NotebookEditorTabInput, b4 as NotebookDiffEditorTabInput, b5 as WebviewEditorTabInput, b6 as TerminalEditorTabInput, b7 as InputBoxValidationSeverity$1, b8 as InlineSuggestionList, b9 as InlineCompletionTriggerKind$1, ba as InlineSuggestion, bb as DocumentDropEdit$1, bc as NotebookEditorRevealType$1, bd as SnippetTextEdit$1, be as NotebookEdit$1, bf as TerminalExitReason$1, bg as CommentThreadState$1, bh as TelemetryTrustedValue$1, bi as getExtHostServices, bj as DEFAULT_EXTENSION, bk as LanguageSelector, bl as initData, bm as ExtHostTelemetryLogger } from './extHost.js';
|
|
3
|
+
import { E as Emitter } from './contextkey.js';
|
|
4
4
|
import { F as FileType$1, a as FilePermission$1, S as Services } from './services2.js';
|
|
5
5
|
import { score } from 'monaco-editor/esm/vs/editor/common/languageSelector.js';
|
|
6
6
|
import { u as unsupported$1 } from './missing-services.js';
|
|
7
7
|
import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
8
8
|
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
9
9
|
import Severity from 'monaco-editor/esm/vs/base/common/severity.js';
|
|
10
|
+
import { LogLevel as LogLevel$1 } from 'monaco-editor/esm/vs/platform/log/common/log.js';
|
|
10
11
|
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
11
12
|
import { IModelService } from 'monaco-editor/esm/vs/editor/common/services/model.js';
|
|
12
13
|
import { DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
@@ -300,10 +301,10 @@ const workspace$1 = {
|
|
|
300
301
|
dispose: () => { }
|
|
301
302
|
};
|
|
302
303
|
},
|
|
303
|
-
applyEdit: async (edit) => {
|
|
304
|
+
applyEdit: async (edit, metadata) => {
|
|
304
305
|
const { extHostBulkEdits } = getExtHostServices();
|
|
305
306
|
const extension = Services.get().extension ?? DEFAULT_EXTENSION;
|
|
306
|
-
return extHostBulkEdits.applyWorkspaceEdit(edit, extension);
|
|
307
|
+
return extHostBulkEdits.applyWorkspaceEdit(edit, extension, metadata);
|
|
307
308
|
},
|
|
308
309
|
getConfiguration: (section, scope) => {
|
|
309
310
|
const { extHostConfiguration } = getExtHostServices();
|
|
@@ -465,7 +466,7 @@ const tabGroup = {
|
|
|
465
466
|
return modelService.getModels().map(model => getTabFromModel(model, tabGroup));
|
|
466
467
|
}
|
|
467
468
|
};
|
|
468
|
-
const window$
|
|
469
|
+
const window$1 = {
|
|
469
470
|
showInformationMessage(message, ...rest) {
|
|
470
471
|
const { extHostMessageService } = getExtHostServices();
|
|
471
472
|
return extHostMessageService.showMessage(Services.get().extension ?? DEFAULT_EXTENSION, Severity.Info, message, rest[0], rest.slice(1));
|
|
@@ -478,10 +479,10 @@ const window$2 = {
|
|
|
478
479
|
const { extHostMessageService } = getExtHostServices();
|
|
479
480
|
return extHostMessageService.showMessage(Services.get().extension ?? DEFAULT_EXTENSION, Severity.Error, message, rest[0], rest.slice(1));
|
|
480
481
|
},
|
|
481
|
-
createOutputChannel(name) {
|
|
482
|
+
createOutputChannel(name, options) {
|
|
482
483
|
const { window } = Services.get();
|
|
483
484
|
const createOutputChannel = window?.createOutputChannel;
|
|
484
|
-
const channel = createOutputChannel?.call(window, name);
|
|
485
|
+
const channel = createOutputChannel?.call(window, name, options);
|
|
485
486
|
return channel ?? {
|
|
486
487
|
name,
|
|
487
488
|
append: () => { },
|
|
@@ -490,7 +491,14 @@ const window$2 = {
|
|
|
490
491
|
show: () => { },
|
|
491
492
|
hide: unsupported$1,
|
|
492
493
|
replace: unsupported$1,
|
|
493
|
-
dispose: () => { }
|
|
494
|
+
dispose: () => { },
|
|
495
|
+
logLevel: LogLevel$1.Off,
|
|
496
|
+
onDidChangeLogLevel: Event.None,
|
|
497
|
+
trace: unsupported$1,
|
|
498
|
+
debug: unsupported$1,
|
|
499
|
+
info: unsupported$1,
|
|
500
|
+
warn: unsupported$1,
|
|
501
|
+
error: unsupported$1
|
|
494
502
|
};
|
|
495
503
|
},
|
|
496
504
|
withScmProgress(task) {
|
|
@@ -514,7 +522,8 @@ const window$2 = {
|
|
|
514
522
|
},
|
|
515
523
|
showQuickPick(items, options, token) {
|
|
516
524
|
const { extHostQuickOpen } = getExtHostServices();
|
|
517
|
-
|
|
525
|
+
const extension = Services.get().extension ?? DEFAULT_EXTENSION;
|
|
526
|
+
return extHostQuickOpen.showQuickPick(extension, items, options, token);
|
|
518
527
|
},
|
|
519
528
|
createInputBox() {
|
|
520
529
|
const { extHostQuickOpen } = getExtHostServices();
|
|
@@ -628,25 +637,22 @@ const window$2 = {
|
|
|
628
637
|
onDidChangeNotebookEditorVisibleRanges: Event.None
|
|
629
638
|
};
|
|
630
639
|
const env$1 = {
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
language
|
|
634
|
-
get
|
|
635
|
-
|
|
636
|
-
},
|
|
640
|
+
get machineId() { return initData.telemetryInfo.machineId; },
|
|
641
|
+
get sessionId() { return initData.telemetryInfo.sessionId; },
|
|
642
|
+
get language() { return initData.environment.appLanguage; },
|
|
643
|
+
get appName() { return initData.environment.appName; },
|
|
644
|
+
get appRoot() { return initData.environment.appRoot?.fsPath ?? ''; },
|
|
645
|
+
get appHost() { return initData.environment.appHost; },
|
|
646
|
+
get uriScheme() { return initData.environment.appUriScheme; },
|
|
637
647
|
get clipboard() {
|
|
638
648
|
const { extHostClipboard } = getExtHostServices();
|
|
639
649
|
return extHostClipboard.value;
|
|
640
650
|
},
|
|
641
|
-
get machineId() {
|
|
642
|
-
return unsupported$1();
|
|
643
|
-
},
|
|
644
|
-
get sessionId() {
|
|
645
|
-
return unsupported$1();
|
|
646
|
-
},
|
|
647
651
|
remoteName: undefined,
|
|
648
|
-
shell
|
|
649
|
-
uiKind
|
|
652
|
+
get shell() { return unsupported$1(); },
|
|
653
|
+
get uiKind() {
|
|
654
|
+
return initData.uiKind;
|
|
655
|
+
},
|
|
650
656
|
async asExternalUri(uri) {
|
|
651
657
|
const { extHostWindow } = getExtHostServices();
|
|
652
658
|
try {
|
|
@@ -666,14 +672,33 @@ const env$1 = {
|
|
|
666
672
|
allowContributedOpeners: options?.allowContributedOpeners
|
|
667
673
|
});
|
|
668
674
|
},
|
|
669
|
-
appHost: 'web',
|
|
670
675
|
isNewAppInstall: false,
|
|
671
|
-
isTelemetryEnabled
|
|
672
|
-
|
|
676
|
+
get isTelemetryEnabled() {
|
|
677
|
+
const { extHostTelemetry } = getExtHostServices();
|
|
678
|
+
return extHostTelemetry.getTelemetryConfiguration();
|
|
679
|
+
},
|
|
680
|
+
get onDidChangeTelemetryEnabled() {
|
|
681
|
+
const { extHostTelemetry } = getExtHostServices();
|
|
682
|
+
return extHostTelemetry.onDidChangeTelemetryEnabled;
|
|
683
|
+
},
|
|
684
|
+
createTelemetryLogger(sender) {
|
|
685
|
+
const { extHostTelemetry } = getExtHostServices();
|
|
686
|
+
const extension = Services.get().extension ?? DEFAULT_EXTENSION;
|
|
687
|
+
ExtHostTelemetryLogger.validateSender(sender);
|
|
688
|
+
return extHostTelemetry.instantiateLogger(extension, sender);
|
|
689
|
+
},
|
|
690
|
+
get logLevel() {
|
|
691
|
+
const { extHostLogService } = getExtHostServices();
|
|
692
|
+
return extHostLogService.getLevel();
|
|
693
|
+
},
|
|
694
|
+
get onDidChangeLogLevel() {
|
|
695
|
+
const { extHostLogService } = getExtHostServices();
|
|
696
|
+
return extHostLogService.onDidChangeLogLevel;
|
|
697
|
+
}
|
|
673
698
|
};
|
|
674
699
|
const unsupported = undefined;
|
|
675
700
|
const api = {
|
|
676
|
-
version: "1.
|
|
701
|
+
version: "1.76.0",
|
|
677
702
|
tasks: unsupported,
|
|
678
703
|
notebooks: unsupported,
|
|
679
704
|
scm: unsupported,
|
|
@@ -684,7 +709,7 @@ const api = {
|
|
|
684
709
|
tests: unsupported,
|
|
685
710
|
env: env$1,
|
|
686
711
|
commands: commands$1,
|
|
687
|
-
window: window$
|
|
712
|
+
window: window$1,
|
|
688
713
|
workspace: workspace$1,
|
|
689
714
|
languages: languages$1,
|
|
690
715
|
Breakpoint: Breakpoint$1,
|
|
@@ -830,7 +855,14 @@ const api = {
|
|
|
830
855
|
InlineCompletionTriggerKind: InlineCompletionTriggerKind$1,
|
|
831
856
|
InlineCompletionItem: InlineSuggestion,
|
|
832
857
|
DocumentDropEdit: DocumentDropEdit$1,
|
|
833
|
-
NotebookEditorRevealType: NotebookEditorRevealType$1
|
|
858
|
+
NotebookEditorRevealType: NotebookEditorRevealType$1,
|
|
859
|
+
SnippetTextEdit: SnippetTextEdit$1,
|
|
860
|
+
NotebookEdit: NotebookEdit$1,
|
|
861
|
+
LogLevel: LogLevel$1,
|
|
862
|
+
TerminalExitReason: TerminalExitReason$1,
|
|
863
|
+
CommentThreadState: CommentThreadState$1,
|
|
864
|
+
l10n: unsupported,
|
|
865
|
+
TelemetryTrustedValue: TelemetryTrustedValue$1
|
|
834
866
|
};
|
|
835
|
-
const { version, tasks, notebooks, scm, debug, extensions, comments, authentication, tests, env, commands, window
|
|
836
|
-
export { Breakpoint, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CancellationError, CancellationTokenSource, CodeAction, CodeActionKind, CodeActionTriggerKind, CodeLens, Color, ColorInformation, ColorPresentation, ColorThemeKind, CommentMode, CommentThreadCollapsibleState, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionList, CompletionTriggerKind, ConfigurationTarget, CustomExecution, DataTransfer, DataTransferItem, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConfigurationProviderTriggerKind, DebugConsoleMode, DecorationRangeBehavior, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, Disposable, DocumentDropEdit, DocumentHighlight, DocumentHighlightKind, DocumentLink, DocumentSymbol, EndOfLine, EnvironmentVariableMutatorType, EvaluatableExpression, EventEmitter, ExtensionKind, ExtensionMode, FileChangeType, FileDecoration, FilePermission, FileSystemError, FileType, FoldingRange, FoldingRangeKind, FunctionBreakpoint, Hover, IndentAction, InlayHint, InlayHintKind, InlayHintLabelPart, InlineCompletionItem, InlineCompletionList, InlineCompletionTriggerKind, InlineValueEvaluatableExpression, InlineValueText, InlineValueVariableLookup, InputBoxValidationSeverity, LanguageStatusSeverity, LinkedEditingRanges, Location, MarkdownString, NotebookCellData, NotebookCellKind, NotebookCellOutput, NotebookCellOutputItem, NotebookCellStatusBarAlignment, NotebookCellStatusBarItem, NotebookControllerAffinity, NotebookData, NotebookEditorRevealType, NotebookRange, OverviewRulerLane, ParameterInformation, Position, ProcessExecution, ProgressLocation, QuickInputButtons, QuickPickItemKind, Range, RelativePattern, Selection, SelectionRange, SemanticTokens, SemanticTokensBuilder, SemanticTokensEdit, SemanticTokensEdits, SemanticTokensLegend, ShellExecution, ShellQuoting, SignatureHelp, SignatureHelpTriggerKind, SignatureInformation, SnippetString, SourceBreakpoint, StatusBarAlignment, SymbolInformation, SymbolKind, SymbolTag, TabInputCustom, TabInputNotebook, TabInputNotebookDiff, TabInputTerminal, TabInputText, TabInputTextDiff, TabInputWebview, Task, TaskGroup, TaskPanelKind, TaskRevealKind, TaskScope, TerminalLink, TerminalLocation, TerminalProfile, TestMessage, TestRunProfileKind, TestRunRequest, TestTag, TextDocumentChangeReason, TextDocumentSaveReason, TextEdit, TextEditorCursorStyle, TextEditorLineNumbersStyle, TextEditorRevealType, TextEditorSelectionChangeKind, ThemeColor, ThemeIcon, TreeItem, TreeItemCollapsibleState, TypeHierarchyItem, UIKind, Uri, ViewColumn, WorkspaceEdit, authentication, commands, comments, debug, env, extensions, languages, notebooks, scm, tasks, tests, version, window
|
|
867
|
+
const { version, tasks, notebooks, scm, debug, extensions, comments, authentication, tests, env, commands, window, workspace, languages, Breakpoint, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CancellationError, CancellationTokenSource, CodeAction, CodeActionKind, CodeActionTriggerKind, CodeLens, Color, ColorInformation, ColorPresentation, ColorThemeKind, CommentMode, CommentThreadCollapsibleState, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionList, CompletionTriggerKind, ConfigurationTarget, CustomExecution, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConfigurationProviderTriggerKind, DebugConsoleMode, DecorationRangeBehavior, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, Disposable, DocumentHighlight, DocumentHighlightKind, DocumentLink, DocumentSymbol, EndOfLine, EnvironmentVariableMutatorType, EvaluatableExpression, InlineValueText, InlineValueVariableLookup, InlineValueEvaluatableExpression, EventEmitter, ExtensionKind, ExtensionMode, FileChangeType, FileDecoration, FileSystemError, FileType, FilePermission, FoldingRange, FoldingRangeKind, FunctionBreakpoint, Hover, IndentAction, Location, MarkdownString, OverviewRulerLane, ParameterInformation, Position, ProcessExecution, ProgressLocation, QuickInputButtons, Range, RelativePattern, Selection, SelectionRange, SemanticTokens, SemanticTokensBuilder, SemanticTokensEdit, SemanticTokensEdits, SemanticTokensLegend, ShellExecution, ShellQuoting, SignatureHelp, SignatureHelpTriggerKind, SignatureInformation, SnippetString, SourceBreakpoint, StatusBarAlignment, SymbolInformation, SymbolKind, SymbolTag, Task, TaskGroup, TaskPanelKind, TaskRevealKind, TaskScope, TerminalLink, TerminalLocation, TerminalProfile, TextDocumentSaveReason, TextEdit, TextEditorCursorStyle, TextEditorLineNumbersStyle, TextEditorRevealType, TextEditorSelectionChangeKind, TextDocumentChangeReason, ThemeColor, ThemeIcon, TreeItem, TreeItemCollapsibleState, TypeHierarchyItem, UIKind, Uri, ViewColumn, WorkspaceEdit, InlayHint, InlayHintLabelPart, InlayHintKind, NotebookRange, NotebookCellKind, NotebookCellData, NotebookData, NotebookCellStatusBarAlignment, NotebookCellOutput, NotebookCellOutputItem, NotebookCellStatusBarItem, NotebookControllerAffinity, LinkedEditingRanges, TestRunRequest, TestMessage, TestTag, TestRunProfileKind, DataTransfer, DataTransferItem, LanguageStatusSeverity, QuickPickItemKind, TabInputText, TabInputTextDiff, TabInputCustom, TabInputNotebook, TabInputNotebookDiff, TabInputWebview, TabInputTerminal, InputBoxValidationSeverity, InlineCompletionList, InlineCompletionTriggerKind, InlineCompletionItem, DocumentDropEdit, NotebookEditorRevealType, SnippetTextEdit, NotebookEdit, LogLevel, TerminalExitReason, CommentThreadState, l10n, TelemetryTrustedValue } = api;
|
|
868
|
+
export { Breakpoint, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CancellationError, CancellationTokenSource, CodeAction, CodeActionKind, CodeActionTriggerKind, CodeLens, Color, ColorInformation, ColorPresentation, ColorThemeKind, CommentMode, CommentThreadCollapsibleState, CommentThreadState, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionList, CompletionTriggerKind, ConfigurationTarget, CustomExecution, DataTransfer, DataTransferItem, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConfigurationProviderTriggerKind, DebugConsoleMode, DecorationRangeBehavior, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, Disposable, DocumentDropEdit, DocumentHighlight, DocumentHighlightKind, DocumentLink, DocumentSymbol, EndOfLine, EnvironmentVariableMutatorType, EvaluatableExpression, EventEmitter, ExtensionKind, ExtensionMode, FileChangeType, FileDecoration, FilePermission, FileSystemError, FileType, FoldingRange, FoldingRangeKind, FunctionBreakpoint, Hover, IndentAction, InlayHint, InlayHintKind, InlayHintLabelPart, InlineCompletionItem, InlineCompletionList, InlineCompletionTriggerKind, InlineValueEvaluatableExpression, InlineValueText, InlineValueVariableLookup, InputBoxValidationSeverity, LanguageStatusSeverity, LinkedEditingRanges, Location, LogLevel, MarkdownString, NotebookCellData, NotebookCellKind, NotebookCellOutput, NotebookCellOutputItem, NotebookCellStatusBarAlignment, NotebookCellStatusBarItem, NotebookControllerAffinity, NotebookData, NotebookEdit, NotebookEditorRevealType, NotebookRange, OverviewRulerLane, ParameterInformation, Position, ProcessExecution, ProgressLocation, QuickInputButtons, QuickPickItemKind, Range, RelativePattern, Selection, SelectionRange, SemanticTokens, SemanticTokensBuilder, SemanticTokensEdit, SemanticTokensEdits, SemanticTokensLegend, ShellExecution, ShellQuoting, SignatureHelp, SignatureHelpTriggerKind, SignatureInformation, SnippetString, SnippetTextEdit, SourceBreakpoint, StatusBarAlignment, SymbolInformation, SymbolKind, SymbolTag, TabInputCustom, TabInputNotebook, TabInputNotebookDiff, TabInputTerminal, TabInputText, TabInputTextDiff, TabInputWebview, Task, TaskGroup, TaskPanelKind, TaskRevealKind, TaskScope, TelemetryTrustedValue, TerminalExitReason, TerminalLink, TerminalLocation, TerminalProfile, TestMessage, TestRunProfileKind, TestRunRequest, TestTag, TextDocumentChangeReason, TextDocumentSaveReason, TextEdit, TextEditorCursorStyle, TextEditorLineNumbersStyle, TextEditorRevealType, TextEditorSelectionChangeKind, ThemeColor, ThemeIcon, TreeItem, TreeItemCollapsibleState, TypeHierarchyItem, UIKind, Uri, ViewColumn, WorkspaceEdit, authentication, commands, comments, debug, env, extensions, l10n, languages, notebooks, scm, tasks, tests, version, window, workspace };
|
package/dist/async.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as Emitter } from './
|
|
1
|
+
import { E as Emitter } from './contextkey.js';
|
|
2
2
|
import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
3
3
|
import { extUri } from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
4
4
|
import { CancellationError } from 'monaco-editor/esm/vs/base/common/errors.js';
|
|
@@ -159,14 +159,6 @@ class IntervalCounter {
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
class DeferredPromise {
|
|
162
|
-
constructor() {
|
|
163
|
-
this.rejected = false;
|
|
164
|
-
this.resolved = false;
|
|
165
|
-
this.p = ( new Promise((c, e) => {
|
|
166
|
-
this.completeCallback = c;
|
|
167
|
-
this.errorCallback = e;
|
|
168
|
-
}));
|
|
169
|
-
}
|
|
170
162
|
get isRejected() {
|
|
171
163
|
return this.rejected;
|
|
172
164
|
}
|
|
@@ -176,6 +168,14 @@ class DeferredPromise {
|
|
|
176
168
|
get isSettled() {
|
|
177
169
|
return this.rejected || this.resolved;
|
|
178
170
|
}
|
|
171
|
+
constructor() {
|
|
172
|
+
this.rejected = false;
|
|
173
|
+
this.resolved = false;
|
|
174
|
+
this.p = ( new Promise((c, e) => {
|
|
175
|
+
this.completeCallback = c;
|
|
176
|
+
this.errorCallback = e;
|
|
177
|
+
}));
|
|
178
|
+
}
|
|
179
179
|
complete(value) {
|
|
180
180
|
return ( new Promise(resolve => {
|
|
181
181
|
this.completeCallback(value);
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
import * as vscode from 'vscode';
|
|
2
2
|
import * as monaco from 'monaco-editor';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* An object that performs a cleanup operation when `.dispose()` is called.
|
|
6
|
+
*
|
|
7
|
+
* Some examples of how disposables are used:
|
|
8
|
+
*
|
|
9
|
+
* - An event listener that removes itself when `.dispose()` is called.
|
|
10
|
+
* - A resource such as a file system watcher that cleans up the resource when `.dispose()` is called.
|
|
11
|
+
* - The return value from registering a provider. When `.dispose()` is called, the provider is unregistered.
|
|
12
|
+
*/
|
|
4
13
|
interface IDisposable {
|
|
5
14
|
dispose(): void;
|
|
6
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Manages a collection of disposable values.
|
|
18
|
+
*
|
|
19
|
+
* This is the preferred way to manage multiple disposables. A `DisposableStore` is safer to work with than an
|
|
20
|
+
* `IDisposable[]` as it considers edge cases, such as registering the same value multiple times or adding an item to a
|
|
21
|
+
* store that has already been disposed of.
|
|
22
|
+
*/
|
|
7
23
|
declare class DisposableStore implements IDisposable {
|
|
8
24
|
static DISABLE_DISPOSED_WARNING: boolean;
|
|
9
|
-
private _toDispose;
|
|
25
|
+
private readonly _toDispose;
|
|
10
26
|
private _isDisposed;
|
|
11
27
|
constructor();
|
|
12
28
|
/**
|
|
@@ -16,13 +32,16 @@ declare class DisposableStore implements IDisposable {
|
|
|
16
32
|
*/
|
|
17
33
|
dispose(): void;
|
|
18
34
|
/**
|
|
19
|
-
*
|
|
35
|
+
* @return `true` if this object has been disposed of.
|
|
20
36
|
*/
|
|
21
37
|
get isDisposed(): boolean;
|
|
22
38
|
/**
|
|
23
39
|
* Dispose of all registered disposables but do not mark this object as disposed.
|
|
24
40
|
*/
|
|
25
41
|
clear(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Add a new {@link IDisposable disposable} to the collection.
|
|
44
|
+
*/
|
|
26
45
|
add<T extends IDisposable>(o: T): T;
|
|
27
46
|
}
|
|
28
47
|
|
|
@@ -80,20 +99,50 @@ interface IObserver {
|
|
|
80
99
|
}
|
|
81
100
|
|
|
82
101
|
/**
|
|
83
|
-
*
|
|
84
|
-
*
|
|
102
|
+
* Can be passed into the Delayed to defer using a microtask
|
|
103
|
+
* */
|
|
104
|
+
declare const MicrotaskDelay: unique symbol;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* An event with zero or one parameters that can be subscribed to. The event is a function itself.
|
|
85
108
|
*/
|
|
86
109
|
type Event<T> = vscode.Event<T>
|
|
87
110
|
declare namespace Event {
|
|
88
111
|
const None: Event<any>;
|
|
112
|
+
/**
|
|
113
|
+
* Given an event, returns another event which debounces calls and defers the listeners to a later task via a shared
|
|
114
|
+
* `setTimeout`. The event is converted into a signal (`Event<void>`) to avoid additional object creation as a
|
|
115
|
+
* result of merging events and to try prevent race conditions that could arise when using related deferred and
|
|
116
|
+
* non-deferred events.
|
|
117
|
+
*
|
|
118
|
+
* This is useful for deferring non-critical work (eg. general UI updates) to ensure it does not block critical work
|
|
119
|
+
* (eg. latency of keypress to text rendered).
|
|
120
|
+
*
|
|
121
|
+
* *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned
|
|
122
|
+
* event is accessible to "third parties", e.g the event is a public property. Otherwise a leaked listener on the
|
|
123
|
+
* returned event causes this utility to leak a listener on the original event.
|
|
124
|
+
*
|
|
125
|
+
* @param event The event source for the new event.
|
|
126
|
+
* @param disposable A disposable store to add the new EventEmitter to.
|
|
127
|
+
*/
|
|
128
|
+
function defer(event: Event<unknown>, disposable?: DisposableStore): Event<void>;
|
|
89
129
|
/**
|
|
90
130
|
* Given an event, returns another event which only fires once.
|
|
131
|
+
*
|
|
132
|
+
* @param event The event source for the new event.
|
|
91
133
|
*/
|
|
92
134
|
function once<T>(event: Event<T>): Event<T>;
|
|
93
135
|
/**
|
|
136
|
+
* Maps an event of one type into an event of another type using a mapping function, similar to how
|
|
137
|
+
* `Array.prototype.map` works.
|
|
138
|
+
*
|
|
94
139
|
* *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned
|
|
95
140
|
* event is accessible to "third parties", e.g the event is a public property. Otherwise a leaked listener on the
|
|
96
141
|
* returned event causes this utility to leak a listener on the original event.
|
|
142
|
+
*
|
|
143
|
+
* @param event The event source for the new event.
|
|
144
|
+
* @param map The mapping function.
|
|
145
|
+
* @param disposable A disposable store to add the new EventEmitter to.
|
|
97
146
|
*/
|
|
98
147
|
function map<I, O>(event: Event<I>, map: (i: I) => O, disposable?: DisposableStore): Event<O>;
|
|
99
148
|
/**
|
|
@@ -127,17 +176,33 @@ declare namespace Event {
|
|
|
127
176
|
*/
|
|
128
177
|
function reduce<I, O>(event: Event<I>, merge: (last: O | undefined, event: I) => O, initial?: O, disposable?: DisposableStore): Event<O>;
|
|
129
178
|
/**
|
|
179
|
+
* Given an event, creates a new emitter that event that will debounce events based on {@link delay} and give an
|
|
180
|
+
* array event object of all events that fired.
|
|
181
|
+
*
|
|
130
182
|
* *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned
|
|
131
183
|
* event is accessible to "third parties", e.g the event is a public property. Otherwise a leaked listener on the
|
|
132
184
|
* returned event causes this utility to leak a listener on the original event.
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
185
|
+
*
|
|
186
|
+
* @param event The original event to debounce.
|
|
187
|
+
* @param merge A function that reduces all events into a single event.
|
|
188
|
+
* @param delay The number of milliseconds to debounce.
|
|
189
|
+
* @param leading Whether to fire a leading event without debouncing.
|
|
190
|
+
* @param flushOnListenerRemove Whether to fire all debounced events when a listener is removed. If this is not
|
|
191
|
+
* specified, some events could go missing. Use this if it's important that all events are processed, even if the
|
|
192
|
+
* listener gets disposed before the debounced event fires.
|
|
193
|
+
* @param leakWarningThreshold See {@link EmitterOptions.leakWarningThreshold}.
|
|
194
|
+
* @param disposable A disposable store to register the debounce emitter to.
|
|
195
|
+
*/
|
|
196
|
+
function debounce<T>(event: Event<T>, merge: (last: T | undefined, event: T) => T, delay?: number | typeof MicrotaskDelay, leading?: boolean, flushOnListenerRemove?: boolean, leakWarningThreshold?: number, disposable?: DisposableStore): Event<T>;
|
|
197
|
+
function debounce<I, O>(event: Event<I>, merge: (last: O | undefined, event: I) => O, delay?: number | typeof MicrotaskDelay, leading?: boolean, flushOnListenerRemove?: boolean, leakWarningThreshold?: number, disposable?: DisposableStore): Event<O>;
|
|
198
|
+
/**
|
|
199
|
+
* Debounces an event, firing after some delay (default=0) with an array of all event original objects.
|
|
200
|
+
*
|
|
136
201
|
* *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned
|
|
137
202
|
* event is accessible to "third parties", e.g the event is a public property. Otherwise a leaked listener on the
|
|
138
203
|
* returned event causes this utility to leak a listener on the original event.
|
|
139
204
|
*/
|
|
140
|
-
function
|
|
205
|
+
function accumulate<T>(event: Event<T>, delay?: number, disposable?: DisposableStore): Event<T[]>;
|
|
141
206
|
/**
|
|
142
207
|
* *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned
|
|
143
208
|
* event is accessible to "third parties", e.g the event is a public property. Otherwise a leaked listener on the
|
|
@@ -145,9 +210,21 @@ declare namespace Event {
|
|
|
145
210
|
*/
|
|
146
211
|
function latch<T>(event: Event<T>, equals?: (a: T, b: T) => boolean, disposable?: DisposableStore): Event<T>;
|
|
147
212
|
/**
|
|
213
|
+
* Splits an event whose parameter is a union type into 2 separate events for each type in the union.
|
|
214
|
+
*
|
|
148
215
|
* *NOTE* that this function returns an `Event` and it MUST be called with a `DisposableStore` whenever the returned
|
|
149
216
|
* event is accessible to "third parties", e.g the event is a public property. Otherwise a leaked listener on the
|
|
150
217
|
* returned event causes this utility to leak a listener on the original event.
|
|
218
|
+
*
|
|
219
|
+
* @example
|
|
220
|
+
* ```
|
|
221
|
+
* const event = new EventEmitter<number | undefined>().event;
|
|
222
|
+
* const [numberEvent, undefinedEvent] = Event.split(event, isUndefined);
|
|
223
|
+
* ```
|
|
224
|
+
*
|
|
225
|
+
* @param event The event source for the new event.
|
|
226
|
+
* @param isT A function that determines what event is of the first type.
|
|
227
|
+
* @param disposable A disposable store to add the new EventEmitter to.
|
|
151
228
|
*/
|
|
152
229
|
function split<T, U>(event: Event<T | U>, isT: (e: T | U) => e is T, disposable?: DisposableStore): [Event<T>, Event<U>];
|
|
153
230
|
/**
|
|
@@ -164,8 +241,8 @@ declare namespace Event {
|
|
|
164
241
|
filter<R>(fn: (e: T | R) => e is R): IChainableEvent<R>;
|
|
165
242
|
reduce<R>(merge: (last: R | undefined, event: T) => R, initial?: R): IChainableEvent<R>;
|
|
166
243
|
latch(): IChainableEvent<T>;
|
|
167
|
-
debounce(merge: (last: T | undefined, event: T) => T, delay?: number, leading?: boolean, leakWarningThreshold?: number): IChainableEvent<T>;
|
|
168
|
-
debounce<R>(merge: (last: R | undefined, event: T) => R, delay?: number, leading?: boolean, leakWarningThreshold?: number): IChainableEvent<R>;
|
|
244
|
+
debounce(merge: (last: T | undefined, event: T) => T, delay?: number, leading?: boolean, flushOnListenerRemove?: boolean, leakWarningThreshold?: number): IChainableEvent<T>;
|
|
245
|
+
debounce<R>(merge: (last: R | undefined, event: T) => R, delay?: number, leading?: boolean, flushOnListenerRemove?: boolean, leakWarningThreshold?: number): IChainableEvent<R>;
|
|
169
246
|
on(listener: (e: T) => any, thisArgs?: any, disposables?: IDisposable[] | DisposableStore): IDisposable;
|
|
170
247
|
once(listener: (e: T) => any, thisArgs?: any, disposables?: IDisposable[]): IDisposable;
|
|
171
248
|
}
|
|
@@ -186,7 +263,13 @@ declare namespace Event {
|
|
|
186
263
|
function fromObservable<T>(obs: IObservable<T, any>, store?: DisposableStore): Event<T>;
|
|
187
264
|
}
|
|
188
265
|
|
|
189
|
-
|
|
266
|
+
/**
|
|
267
|
+
* An interface for a JavaScript object that
|
|
268
|
+
* acts a dictionary. The keys are strings.
|
|
269
|
+
*/
|
|
270
|
+
type IStringDictionary<V> = Record<string, V>;
|
|
271
|
+
|
|
272
|
+
type JSONSchemaType = 'string' | 'number' | 'integer' | 'boolean' | 'null' | 'array' | 'object';
|
|
190
273
|
interface IJSONSchema {
|
|
191
274
|
id?: string;
|
|
192
275
|
$id?: string;
|
|
@@ -275,18 +358,18 @@ interface IJSONSchemaSnippet {
|
|
|
275
358
|
bodyText?: string;
|
|
276
359
|
}
|
|
277
360
|
|
|
278
|
-
|
|
279
|
-
* An interface for a JavaScript object that
|
|
280
|
-
* acts a dictionary. The keys are strings.
|
|
281
|
-
*/
|
|
282
|
-
declare type IStringDictionary<V> = Record<string, V>;
|
|
283
|
-
|
|
284
|
-
declare type PolicyName = string;
|
|
361
|
+
type PolicyName = string;
|
|
285
362
|
|
|
286
363
|
declare enum EditPresentationTypes {
|
|
287
364
|
Multiline = "multilineText",
|
|
288
365
|
Singleline = "singlelineText"
|
|
289
366
|
}
|
|
367
|
+
interface IConfigurationDelta {
|
|
368
|
+
removedDefaults?: IConfigurationDefaults[];
|
|
369
|
+
removedConfigurations?: IConfigurationNode[];
|
|
370
|
+
addedDefaults?: IConfigurationDefaults[];
|
|
371
|
+
addedConfigurations?: IConfigurationNode[];
|
|
372
|
+
}
|
|
290
373
|
interface IConfigurationRegistry {
|
|
291
374
|
/**
|
|
292
375
|
* Register a configuration to the registry.
|
|
@@ -317,6 +400,11 @@ interface IConfigurationRegistry {
|
|
|
317
400
|
* Deregister multiple default configurations from the registry.
|
|
318
401
|
*/
|
|
319
402
|
deregisterDefaultConfigurations(defaultConfigurations: IConfigurationDefaults[]): void;
|
|
403
|
+
/**
|
|
404
|
+
* Bulk update of the configuration registry (default and configurations, remove and add)
|
|
405
|
+
* @param delta
|
|
406
|
+
*/
|
|
407
|
+
deltaConfiguration(delta: IConfigurationDelta): void;
|
|
320
408
|
/**
|
|
321
409
|
* Return the registered configuration defaults overrides
|
|
322
410
|
*/
|
|
@@ -336,7 +424,7 @@ interface IConfigurationRegistry {
|
|
|
336
424
|
* registered.
|
|
337
425
|
*/
|
|
338
426
|
readonly onDidUpdateConfiguration: Event<{
|
|
339
|
-
properties: string
|
|
427
|
+
properties: ReadonlySet<string>;
|
|
340
428
|
defaultsOverrides?: boolean;
|
|
341
429
|
}>;
|
|
342
430
|
/**
|
|
@@ -461,12 +549,12 @@ interface IConfigurationDefaults {
|
|
|
461
549
|
overrides: IStringDictionary<any>;
|
|
462
550
|
source?: IExtensionInfo | string;
|
|
463
551
|
}
|
|
464
|
-
|
|
552
|
+
type IRegisteredConfigurationPropertySchema = IConfigurationPropertySchema & {
|
|
465
553
|
defaultDefaultValue?: any;
|
|
466
554
|
source?: IExtensionInfo;
|
|
467
555
|
defaultValueSource?: IExtensionInfo | string;
|
|
468
556
|
};
|
|
469
|
-
|
|
557
|
+
type IConfigurationDefaultOverride = {
|
|
470
558
|
readonly value: any;
|
|
471
559
|
readonly source?: IExtensionInfo | string;
|
|
472
560
|
readonly valuesSources?: Map<string, IExtensionInfo | string>;
|