@codingame/monaco-vscode-api 1.76.3-next.0 → 1.76.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/dist/api2.js +106 -34
- package/dist/debug.js +17 -5
- package/dist/extensions.d.ts +15 -2
- package/dist/extensions.js +27 -12
- package/dist/files.js +1 -1
- package/dist/missing-services.js +1 -1
- package/dist/modelEditor.js +1 -1
- package/dist/polyfill.js +65 -1
- package/dist/services.js +1 -1
- package/dist/services2.js +1 -1
- package/dist/textmate.d.ts +1 -19
- package/dist/tokenClassification.d.ts +1 -16
- package/dist/workspaceContext.js +1 -1
- package/package.json +1 -1
package/dist/api2.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { P as Position$2, R as Range$2, w as withUndefinedAsNull, m as mapArrayOrNot, d as
|
|
1
|
+
import { P as Position$2, R as Range$2, w as withUndefinedAsNull, m as mapArrayOrNot, d as delta$1, r as readonly, a as disposed, s as setUnexpectedErrorHandler, i as isUntitledWorkspace, S as Selection$3, N as NotImplementedError, t as toWorkspaceFolder, f as flatten, e as encodeBase64 } from './polyfill.js';
|
|
2
2
|
import { I as IWorkingCopyService, u as unsupported$1, e as extensionTelemetryLogChannelId, i as isLogLevel, a as getRemoteName, c as cleanRemoteAuthority, b as cleanData, D as Disposable$2, P as Position$3, R as Range$3, L as Location$1, N as NotebookRange$2, T as TelemetryTrustedValue$1, r as resultIsMatch, s as supportsTelemetry, d as TELEMETRY_SETTING_ID, f as TELEMETRY_OLD_SETTING_ID, F as FileSystemError$1, h as format2, j as FileDecoration$1, k as checkProposedApiEnabled, E as ExtensionRuntime, l as ILoggerService, m as EndOfLine$2, n as IURITransformerService, S as Selection$2, o as TextEditorRevealType$2, p as extensionIdentifiersArrayToSet, q as isProposedApiEnabled, v as RemoteAuthorityResolverErrorCode, w as RemoteAuthorityResolverError, x as getRemoteAuthorityPrefix, y as SourceBreakpoint$1, z as DebugConsoleMode$1, A as setBreakpointId, B as FunctionBreakpoint$1, C as DebugAdapterExecutable$1, G as DebugAdapterServer$1, H as DebugAdapterNamedPipeServer$1, J as DebugAdapterInlineImplementation$1, K as count, M as ProgressLocation$2, O as ExtensionKind$1, Q as Breakpoint$1, U as CallHierarchyIncomingCall$1, V as CallHierarchyItem$2, W as CallHierarchyOutgoingCall$1, X as CodeAction$1, Y as CodeActionKind$1, Z as CodeActionTriggerKind$2, _ as CodeLens$1, $ as Color$2, a0 as ColorInformation$1, a1 as ColorPresentation$2, a2 as CommentMode$1, a3 as CommentThreadCollapsibleState$1, a4 as CompletionItem$1, a5 as CompletionItemKind$2, a6 as CompletionItemTag$2, a7 as CompletionList$1, a8 as CompletionTriggerKind$2, a9 as ConfigurationTarget$1, aa as CustomExecution$1, ab as DecorationRangeBehavior$2, ac as Diagnostic$2, ad as DiagnosticRelatedInformation$2, ae as DiagnosticSeverity$2, af as DiagnosticTag$2, ag as DocumentHighlight$2, ah as DocumentHighlightKind$1, ai as DocumentLink$2, aj as DocumentSymbol$2, ak as EnvironmentVariableMutatorType$1, al as EvaluatableExpression$2, am as InlineValueText$1, an as InlineValueVariableLookup$1, ao as InlineValueEvaluatableExpression$1, ap as ExtensionMode$1, aq as FileChangeType$1, ar as FoldingRange$2, as as FoldingRangeKind$3, at as Hover$2, au as MarkdownString$2, av as ParameterInformation$2, aw as ProcessExecution$1, ax as QuickInputButtons$1, ay as RelativePattern$1, az as SelectionRange$2, aA as SemanticTokens$1, aB as SemanticTokensBuilder$1, aC as SemanticTokensEdit$1, aD as SemanticTokensEdits$1, aE as SemanticTokensLegend$1, aF as ShellExecution$1, aG as ShellQuoting$1, aH as SignatureHelp$2, aI as SignatureHelpTriggerKind$1, aJ as SignatureInformation$2, aK as SnippetString$1, aL as SymbolInformation$1, aM as SymbolKind$2, aN as SymbolTag$2, aO as TextDocumentSaveReason$1, aP as TextEdit$2, aQ as TextEditorLineNumbersStyle$2, aR as TextEditorSelectionChangeKind$1, aS as TextDocumentChangeReason$1, aT as ThemeColor$1, aU as ThemeIcon$1, aV as TreeItem$1, aW as TreeItemCollapsibleState$1, aX as TypeHierarchyItem$2, aY as ViewColumn$2, aZ as WorkspaceEdit$2, a_ as InlayHint$1, a$ as InlayHintLabelPart$1, b0 as InlayHintKind$2, b1 as LinkedEditingRanges$1, b2 as TestRunRequest$1, b3 as TestMessage$1, b4 as TestTag$1, b5 as TestRunProfileKind$1, b6 as LanguageStatusSeverity$1, b7 as QuickPickItemKind$1, b8 as TextDiffTabInput, b9 as CustomEditorTabInput, ba as NotebookEditorTabInput, bb as NotebookDiffEditorTabInput, bc as WebviewEditorTabInput, bd as TerminalEditorTabInput, be as InputBoxValidationSeverity$1, bf as InlineSuggestionList, bg as InlineCompletionTriggerKind$1, bh as InlineSuggestion, bi as DocumentDropEdit$1, bj as SnippetTextEdit$1, bk as MissingExtensionDependency, bl as TextTabInput$1, bm as DataBreakpoint, bn as InteractiveWindowInput, bo as TextMergeTabInput, bp as IExtensionService, bq as ISearchService, br as IWorkspaceTrustRequestService, bs as IRequestService, bt as IEditSessionIdentityService, bu as IWorkspaceEditingService, bv as ITimerService, bw as IExtensionsWorkbenchService, bx as IWorkbenchExtensionEnablementService, by as URITransformerService, bz as StandardTokenType, bA as areSameExtensions, bB as pathIncludedInQuery, bC as getExcludes, bD as InlineValueContext$1, bE as NotebookCellData$2, bF as DataTransfer$2, bG as NotebookCellOutput$2, bH as CellKind, bI as NotebookCellKind$2, bJ as DataTransferItem$2, bK as NotebookCellOutputItem$2 } from './missing-services.js';
|
|
3
|
-
import { _ as __decorate, E as Emitter$1, a as __param, b as __classPrivateFieldSet, c as __classPrivateFieldGet, F as FileSystemProviderErrorCode,
|
|
3
|
+
import { _ as __decorate, E as Emitter$1, a as __param, b as __classPrivateFieldSet, c as __classPrivateFieldGet, F as FileSystemProviderErrorCode, I as IEditorService, d as IEditorGroupsService, e as IProductService, m as mark, g as getMarks, S as Services, D as DebugConfigurationProviderTriggerKind$1, f as FileType$1, h as FilePermission$1, i as SIDE_GROUP, A as ACTIVE_GROUP, p as preferredSideBySideGroupDirection, j as IUriIdentityService, k as IPaneCompositePartService, l as ITextFileService, n as IFileService, o as IWorkbenchEnvironmentService, q as IWorkingCopyFileService, r as IPathService, s as ILanguageStatusService, t as IHostService, u as IDebugService, v as FileOperationError, w as refineServiceDecorator, x as toFileSystemProviderErrorCode } from './services2.js';
|
|
4
4
|
import { C as CancellationTokenSource$1 } from './cancellation.js';
|
|
5
5
|
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js';
|
|
6
6
|
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
7
7
|
import { marked } from 'monaco-editor/esm/vs/base/common/marked/marked.js';
|
|
8
8
|
import { parseHrefAndDimensions, isMarkdownString } from 'monaco-editor/esm/vs/base/common/htmlContent.js';
|
|
9
|
-
import { isNonEmptyArray, asArray, groupBy as groupBy$1, equals
|
|
9
|
+
import { isNonEmptyArray, asArray, groupBy as groupBy$1, equals, coalesce, isFalsyOrEmpty } from 'monaco-editor/esm/vs/base/common/arrays.js';
|
|
10
10
|
import { assertType, validateConstraint, assertIsDefined, withNullAsUndefined, isString, isNumber, isObject, isDefined } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
11
11
|
import { revive, parse as parse$1 } from 'monaco-editor/esm/vs/base/common/marshalling.js';
|
|
12
|
-
import { mixin, cloneAndChange, equals, deepClone, deepFreeze } from 'monaco-editor/esm/vs/base/common/objects.js';
|
|
12
|
+
import { mixin, cloneAndChange, equals as equals$1, deepClone, deepFreeze } from 'monaco-editor/esm/vs/base/common/objects.js';
|
|
13
13
|
import { MarkerSeverity, IMarkerService } from 'monaco-editor/esm/vs/platform/markers/common/markers.js';
|
|
14
14
|
import { VSBuffer } from 'monaco-editor/esm/vs/base/common/buffer.js';
|
|
15
15
|
import { once } from 'monaco-editor/esm/vs/base/common/functional.js';
|
|
16
16
|
import { Mimes } from 'monaco-editor/esm/vs/base/common/mime.js';
|
|
17
17
|
import { createStringDataTransferItem, VSDataTransfer, UriList } from 'monaco-editor/esm/vs/base/common/dataTransfer.js';
|
|
18
|
-
import { createDecorator, IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
19
|
-
import { Disposable as Disposable$1, toDisposable, dispose,
|
|
18
|
+
import { createDecorator as createDecorator$1, IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
19
|
+
import { Disposable as Disposable$1, toDisposable, dispose, RefCountedDisposable, MutableDisposable, DisposableStore, combinedDisposable, SafeDisposable, DisposableMap } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
20
20
|
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
21
21
|
import { LogLevel as LogLevel$1, ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
|
|
22
22
|
import { StopWatch } from 'monaco-editor/esm/vs/base/common/stopwatch.js';
|
|
@@ -42,7 +42,7 @@ import { TernarySearchTree } from 'monaco-editor/esm/vs/base/common/ternarySearc
|
|
|
42
42
|
import { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
|
|
43
43
|
import { Action, toAction } from 'monaco-editor/esm/vs/base/common/actions.js';
|
|
44
44
|
import { IDialogService } from 'monaco-editor/esm/vs/platform/dialogs/common/dialogs.js';
|
|
45
|
-
import {
|
|
45
|
+
import { Progress, IProgressService } from 'monaco-editor/esm/vs/platform/progress/common/progress.js';
|
|
46
46
|
import { EditOperation } from 'monaco-editor/esm/vs/editor/common/core/editOperation.js';
|
|
47
47
|
import { ITextModelService } from 'monaco-editor/esm/vs/editor/common/services/resolverService.js';
|
|
48
48
|
import { ILanguageService } from 'monaco-editor/esm/vs/editor/common/languages/language.js';
|
|
@@ -526,6 +526,63 @@ class Counter {
|
|
|
526
526
|
return this._next++;
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
+
function createDecorator(mapFn) {
|
|
530
|
+
return (target, key, descriptor) => {
|
|
531
|
+
let fnKey = null;
|
|
532
|
+
let fn = null;
|
|
533
|
+
if (typeof descriptor.value === 'function') {
|
|
534
|
+
fnKey = 'value';
|
|
535
|
+
fn = descriptor.value;
|
|
536
|
+
}
|
|
537
|
+
else if (typeof descriptor.get === 'function') {
|
|
538
|
+
fnKey = 'get';
|
|
539
|
+
fn = descriptor.get;
|
|
540
|
+
}
|
|
541
|
+
if (!fn) {
|
|
542
|
+
throw new Error('not supported');
|
|
543
|
+
}
|
|
544
|
+
descriptor[fnKey] = mapFn(fn, key);
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
function throttle(delay, reducer, initialValueProvider) {
|
|
548
|
+
return (
|
|
549
|
+
(createDecorator((fn, key) => {
|
|
550
|
+
const timerKey = `$throttle$timer$${key}`;
|
|
551
|
+
const resultKey = `$throttle$result$${key}`;
|
|
552
|
+
const lastRunKey = `$throttle$lastRun$${key}`;
|
|
553
|
+
const pendingKey = `$throttle$pending$${key}`;
|
|
554
|
+
return function (...args) {
|
|
555
|
+
if (!this[resultKey]) {
|
|
556
|
+
this[resultKey] = initialValueProvider ? initialValueProvider() : undefined;
|
|
557
|
+
}
|
|
558
|
+
if (this[lastRunKey] === null || this[lastRunKey] === undefined) {
|
|
559
|
+
this[lastRunKey] = -Number.MAX_VALUE;
|
|
560
|
+
}
|
|
561
|
+
if (reducer) {
|
|
562
|
+
this[resultKey] = reducer(this[resultKey], ...args);
|
|
563
|
+
}
|
|
564
|
+
if (this[pendingKey]) {
|
|
565
|
+
return;
|
|
566
|
+
}
|
|
567
|
+
const nextTime = this[lastRunKey] + delay;
|
|
568
|
+
if (nextTime <= Date.now()) {
|
|
569
|
+
this[lastRunKey] = Date.now();
|
|
570
|
+
fn.apply(this, [this[resultKey]]);
|
|
571
|
+
this[resultKey] = initialValueProvider ? initialValueProvider() : undefined;
|
|
572
|
+
}
|
|
573
|
+
else {
|
|
574
|
+
this[pendingKey] = true;
|
|
575
|
+
this[timerKey] = setTimeout(() => {
|
|
576
|
+
this[pendingKey] = false;
|
|
577
|
+
this[lastRunKey] = Date.now();
|
|
578
|
+
fn.apply(this, [this[resultKey]]);
|
|
579
|
+
this[resultKey] = initialValueProvider ? initialValueProvider() : undefined;
|
|
580
|
+
}, nextTime - Date.now());
|
|
581
|
+
}
|
|
582
|
+
};
|
|
583
|
+
}))
|
|
584
|
+
);
|
|
585
|
+
}
|
|
529
586
|
var TextEditorCursorStyle$1;
|
|
530
587
|
( ((function(TextEditorCursorStyle) {
|
|
531
588
|
TextEditorCursorStyle[TextEditorCursorStyle["Line"] = 1] = "Line";
|
|
@@ -2215,7 +2272,7 @@ const ExtHostContext = {
|
|
|
2215
2272
|
ExtHostTelemetry: ( (createProxyIdentifier('ExtHostTelemetry'))),
|
|
2216
2273
|
ExtHostLocalization: ( (createProxyIdentifier('ExtHostLocalization'))),
|
|
2217
2274
|
};
|
|
2218
|
-
const IExtHostRpcService = ( (createDecorator('IExtHostRpcService')));
|
|
2275
|
+
const IExtHostRpcService = ( (createDecorator$1('IExtHostRpcService')));
|
|
2219
2276
|
class ExtHostRpcService {
|
|
2220
2277
|
constructor(rpcProtocol) {
|
|
2221
2278
|
this.getProxy = rpcProtocol.getProxy.bind(rpcProtocol);
|
|
@@ -2225,7 +2282,7 @@ class ExtHostRpcService {
|
|
|
2225
2282
|
this.drain = rpcProtocol.drain.bind(rpcProtocol);
|
|
2226
2283
|
}
|
|
2227
2284
|
}
|
|
2228
|
-
const IExtHostInitDataService = ( (createDecorator('IExtHostInitDataService')));
|
|
2285
|
+
const IExtHostInitDataService = ( (createDecorator$1('IExtHostInitDataService')));
|
|
2229
2286
|
let ExtHostTelemetry = class ExtHostTelemetry extends Disposable$1 {
|
|
2230
2287
|
constructor(initData, loggerService) {
|
|
2231
2288
|
super();
|
|
@@ -2449,7 +2506,7 @@ function isNewAppInstall(firstSessionDate) {
|
|
|
2449
2506
|
const installAge = Date.now() - ( (new Date(firstSessionDate))).getTime();
|
|
2450
2507
|
return isNaN(installAge) ? false : installAge < 1000 * 60 * 60 * 24;
|
|
2451
2508
|
}
|
|
2452
|
-
const IExtHostTelemetry = ( (createDecorator('IExtHostTelemetry')));
|
|
2509
|
+
const IExtHostTelemetry = ( (createDecorator$1('IExtHostTelemetry')));
|
|
2453
2510
|
var _ExtHostCommands_proxy, _ExtHostCommands_telemetry, _ExtHostCommands_extHostTelemetry;
|
|
2454
2511
|
let ExtHostCommands = class ExtHostCommands {
|
|
2455
2512
|
constructor(extHostRpc, logService, extHostTelemetry) {
|
|
@@ -2692,7 +2749,7 @@ ExtHostCommands = ( (__decorate([
|
|
|
2692
2749
|
( (__param(1, ILogService))),
|
|
2693
2750
|
( (__param(2, IExtHostTelemetry)))
|
|
2694
2751
|
], ExtHostCommands)));
|
|
2695
|
-
const IExtHostCommands = ( (createDecorator('IExtHostCommands')));
|
|
2752
|
+
const IExtHostCommands = ( (createDecorator$1('IExtHostCommands')));
|
|
2696
2753
|
class CommandsConverter {
|
|
2697
2754
|
constructor(_commands, _lookupApiCommand, _logService) {
|
|
2698
2755
|
this._commands = _commands;
|
|
@@ -2877,7 +2934,7 @@ function _generateMarkdown(description) {
|
|
|
2877
2934
|
return parts.join('');
|
|
2878
2935
|
}
|
|
2879
2936
|
}
|
|
2880
|
-
const IExtHostApiDeprecationService = ( (createDecorator('IExtHostApiDeprecationService')));
|
|
2937
|
+
const IExtHostApiDeprecationService = ( (createDecorator$1('IExtHostApiDeprecationService')));
|
|
2881
2938
|
let ExtHostApiDeprecationService = class ExtHostApiDeprecationService {
|
|
2882
2939
|
constructor(rpc, _extHostLogService) {
|
|
2883
2940
|
this._extHostLogService = _extHostLogService;
|
|
@@ -2936,7 +2993,7 @@ class ExtHostFileSystemInfo {
|
|
|
2936
2993
|
return this._providerInfo.get(scheme);
|
|
2937
2994
|
}
|
|
2938
2995
|
}
|
|
2939
|
-
const IExtHostFileSystemInfo = ( (createDecorator('IExtHostFileSystemInfo')));
|
|
2996
|
+
const IExtHostFileSystemInfo = ( (createDecorator$1('IExtHostFileSystemInfo')));
|
|
2940
2997
|
var _DiagnosticCollection_proxy, _DiagnosticCollection_onDidChangeDiagnostics, _DiagnosticCollection_data;
|
|
2941
2998
|
class DiagnosticCollection {
|
|
2942
2999
|
constructor(_name, _owner, _maxDiagnosticsPerFile, _modelVersionIdProvider, extUri, proxy, onDidChangeDiagnostics) {
|
|
@@ -3246,7 +3303,7 @@ class ExtHostDocumentData extends MirrorTextModel {
|
|
|
3246
3303
|
this._isDirty = false;
|
|
3247
3304
|
}
|
|
3248
3305
|
equalLines(lines) {
|
|
3249
|
-
return equals
|
|
3306
|
+
return equals(this._lines, lines);
|
|
3250
3307
|
}
|
|
3251
3308
|
get document() {
|
|
3252
3309
|
if (!this._document) {
|
|
@@ -4633,7 +4690,7 @@ ExtHostWorkspace = ( (__decorate([
|
|
|
4633
4690
|
( (__param(3, ILogService))),
|
|
4634
4691
|
( (__param(4, IURITransformerService)))
|
|
4635
4692
|
], ExtHostWorkspace)));
|
|
4636
|
-
const IExtHostWorkspace = ( (createDecorator('IExtHostWorkspace')));
|
|
4693
|
+
const IExtHostWorkspace = ( (createDecorator$1('IExtHostWorkspace')));
|
|
4637
4694
|
function parseSearchInclude(include) {
|
|
4638
4695
|
let includePattern;
|
|
4639
4696
|
let includeFolder;
|
|
@@ -5033,6 +5090,18 @@ class ExtHostProgress {
|
|
|
5033
5090
|
}
|
|
5034
5091
|
}
|
|
5035
5092
|
}
|
|
5093
|
+
function mergeProgress(result, currentValue) {
|
|
5094
|
+
result.message = currentValue.message;
|
|
5095
|
+
if (typeof currentValue.increment === 'number') {
|
|
5096
|
+
if (typeof result.increment === 'number') {
|
|
5097
|
+
result.increment += currentValue.increment;
|
|
5098
|
+
}
|
|
5099
|
+
else {
|
|
5100
|
+
result.increment = currentValue.increment;
|
|
5101
|
+
}
|
|
5102
|
+
}
|
|
5103
|
+
return result;
|
|
5104
|
+
}
|
|
5036
5105
|
class ProgressCallback extends Progress {
|
|
5037
5106
|
constructor(_proxy, _handle) {
|
|
5038
5107
|
super(p => this.throttledReport(p));
|
|
@@ -5043,6 +5112,9 @@ class ProgressCallback extends Progress {
|
|
|
5043
5112
|
this._proxy.$progressReport(this._handle, p);
|
|
5044
5113
|
}
|
|
5045
5114
|
}
|
|
5115
|
+
ProgressCallback.__decorator = ( (__decorate([
|
|
5116
|
+
throttle(100, (result, currentValue) => mergeProgress(result, currentValue), () => Object.create(null))
|
|
5117
|
+
], ProgressCallback.prototype, "throttledReport", null)));
|
|
5046
5118
|
class ManageExtensionAction extends Action {
|
|
5047
5119
|
constructor(extensionId, label, commandService) {
|
|
5048
5120
|
super(extensionId, label, undefined, true, () => {
|
|
@@ -5875,7 +5947,7 @@ ExtHostDocumentsAndEditors = ( (__decorate([
|
|
|
5875
5947
|
( (__param(0, IExtHostRpcService))),
|
|
5876
5948
|
( (__param(1, ILogService)))
|
|
5877
5949
|
], ExtHostDocumentsAndEditors)));
|
|
5878
|
-
const IExtHostDocumentsAndEditors = ( (createDecorator('IExtHostDocumentsAndEditors')));
|
|
5950
|
+
const IExtHostDocumentsAndEditors = ( (createDecorator$1('IExtHostDocumentsAndEditors')));
|
|
5879
5951
|
class ExtHostEditors {
|
|
5880
5952
|
constructor(mainContext, _extHostDocumentsAndEditors) {
|
|
5881
5953
|
this._extHostDocumentsAndEditors = _extHostDocumentsAndEditors;
|
|
@@ -6314,10 +6386,10 @@ class MainThreadTextEditorProperties {
|
|
|
6314
6386
|
return null;
|
|
6315
6387
|
}
|
|
6316
6388
|
static _selectionsEqual(a, b) {
|
|
6317
|
-
return equals
|
|
6389
|
+
return equals(a, b, (aValue, bValue) => aValue.equalsSelection(bValue));
|
|
6318
6390
|
}
|
|
6319
6391
|
static _rangesEqual(a, b) {
|
|
6320
|
-
return equals
|
|
6392
|
+
return equals(a, b, (aValue, bValue) => aValue.equalsRange(bValue));
|
|
6321
6393
|
}
|
|
6322
6394
|
static _optionsEqual(a, b) {
|
|
6323
6395
|
if (a && !b || !a && b) {
|
|
@@ -6698,7 +6770,7 @@ let MainThreadTextEditors = class MainThreadTextEditors {
|
|
|
6698
6770
|
}
|
|
6699
6771
|
_updateActiveAndVisibleTextEditors() {
|
|
6700
6772
|
const editorPositionData = this._getTextEditorPositionData();
|
|
6701
|
-
if (!equals(this._editorPositionData, editorPositionData)) {
|
|
6773
|
+
if (!equals$1(this._editorPositionData, editorPositionData)) {
|
|
6702
6774
|
this._editorPositionData = editorPositionData;
|
|
6703
6775
|
this._proxy.$acceptEditorPositionData(this._editorPositionData);
|
|
6704
6776
|
}
|
|
@@ -7666,7 +7738,7 @@ ExtHostWindow.InitialState = {
|
|
|
7666
7738
|
ExtHostWindow = ( (__decorate([
|
|
7667
7739
|
( (__param(0, IExtHostRpcService)))
|
|
7668
7740
|
], ExtHostWindow)));
|
|
7669
|
-
const IExtHostWindow = ( (createDecorator('IExtHostWindow')));
|
|
7741
|
+
const IExtHostWindow = ( (createDecorator$1('IExtHostWindow')));
|
|
7670
7742
|
let MainThreadWindow = class MainThreadWindow {
|
|
7671
7743
|
constructor(extHostContext, hostService, openerService) {
|
|
7672
7744
|
this.hostService = hostService;
|
|
@@ -11249,7 +11321,7 @@ class ExtHostConfigProvider {
|
|
|
11249
11321
|
return scopes.reduce((result, scope) => { result.set(scope[0], scope[1]); return result; }, ( (new Map())));
|
|
11250
11322
|
}
|
|
11251
11323
|
}
|
|
11252
|
-
const IExtHostConfiguration = ( (createDecorator('IExtHostConfiguration')));
|
|
11324
|
+
const IExtHostConfiguration = ( (createDecorator$1('IExtHostConfiguration')));
|
|
11253
11325
|
let MainThreadConfiguration = class MainThreadConfiguration {
|
|
11254
11326
|
constructor(extHostContext, _workspaceContextService, configurationService, _environmentService) {
|
|
11255
11327
|
this._workspaceContextService = _workspaceContextService;
|
|
@@ -11318,7 +11390,7 @@ MainThreadConfiguration = ( (__decorate([
|
|
|
11318
11390
|
( (__param(2, IConfigurationService))),
|
|
11319
11391
|
( (__param(3, IEnvironmentService)))
|
|
11320
11392
|
], MainThreadConfiguration)));
|
|
11321
|
-
const IExtHostEditorTabs = ( (createDecorator('IExtHostEditorTabs')));
|
|
11393
|
+
const IExtHostEditorTabs = ( (createDecorator$1('IExtHostEditorTabs')));
|
|
11322
11394
|
class ExtHostEditorTab {
|
|
11323
11395
|
constructor(dto, parentGroup, activeTabIdGetter) {
|
|
11324
11396
|
this._activeTabIdGetter = activeTabIdGetter;
|
|
@@ -12180,7 +12252,7 @@ class ExtHostStorage {
|
|
|
12180
12252
|
return undefined;
|
|
12181
12253
|
}
|
|
12182
12254
|
}
|
|
12183
|
-
const IExtHostStorage = ( (createDecorator('IExtHostStorage')));
|
|
12255
|
+
const IExtHostStorage = ( (createDecorator$1('IExtHostStorage')));
|
|
12184
12256
|
class ExtensionMemento {
|
|
12185
12257
|
constructor(id, global, storage) {
|
|
12186
12258
|
this._deferredPromises = ( (new Map()));
|
|
@@ -12397,8 +12469,8 @@ ExtHostConsumerFileSystem = ( (__decorate([
|
|
|
12397
12469
|
( (__param(0, IExtHostRpcService))),
|
|
12398
12470
|
( (__param(1, IExtHostFileSystemInfo)))
|
|
12399
12471
|
], ExtHostConsumerFileSystem)));
|
|
12400
|
-
const IExtHostConsumerFileSystem = ( (createDecorator('IExtHostConsumerFileSystem')));
|
|
12401
|
-
const IExtensionStoragePaths = ( (createDecorator('IExtensionStoragePaths')));
|
|
12472
|
+
const IExtHostConsumerFileSystem = ( (createDecorator$1('IExtHostConsumerFileSystem')));
|
|
12473
|
+
const IExtensionStoragePaths = ( (createDecorator$1('IExtensionStoragePaths')));
|
|
12402
12474
|
let ExtensionStoragePaths = class ExtensionStoragePaths {
|
|
12403
12475
|
constructor(initData, _logService, _extHostFileSystem) {
|
|
12404
12476
|
this._logService = _logService;
|
|
@@ -12455,7 +12527,7 @@ ExtensionStoragePaths = ( (__decorate([
|
|
|
12455
12527
|
( (__param(1, ILogService))),
|
|
12456
12528
|
( (__param(2, IExtHostConsumerFileSystem)))
|
|
12457
12529
|
], ExtensionStoragePaths)));
|
|
12458
|
-
const IExtHostTunnelService = ( (createDecorator('IExtHostTunnelService')));
|
|
12530
|
+
const IExtHostTunnelService = ( (createDecorator$1('IExtHostTunnelService')));
|
|
12459
12531
|
let ExtHostTunnelService = class ExtHostTunnelService {
|
|
12460
12532
|
constructor(extHostRpc) {
|
|
12461
12533
|
this.onDidChangeTunnels = (( (new Emitter$1()))).event;
|
|
@@ -12486,7 +12558,7 @@ let ExtHostTunnelService = class ExtHostTunnelService {
|
|
|
12486
12558
|
ExtHostTunnelService = ( (__decorate([
|
|
12487
12559
|
( (__param(0, IExtHostRpcService)))
|
|
12488
12560
|
], ExtHostTunnelService)));
|
|
12489
|
-
const IExtHostTerminalService = ( (createDecorator('IExtHostTerminalService')));
|
|
12561
|
+
const IExtHostTerminalService = ( (createDecorator$1('IExtHostTerminalService')));
|
|
12490
12562
|
let QueryBuilder = class QueryBuilder {
|
|
12491
12563
|
constructor(configurationService, workspaceContextService, editorGroupsService, logService, pathService) {
|
|
12492
12564
|
this.configurationService = configurationService;
|
|
@@ -13000,7 +13072,7 @@ class ExtHostSecretState {
|
|
|
13000
13072
|
return this._proxy.$deletePassword(extensionId, key);
|
|
13001
13073
|
}
|
|
13002
13074
|
}
|
|
13003
|
-
const IExtHostSecretState = ( (createDecorator('IExtHostSecretState')));
|
|
13075
|
+
const IExtHostSecretState = ( (createDecorator$1('IExtHostSecretState')));
|
|
13004
13076
|
var _ExtensionSecrets_secretState;
|
|
13005
13077
|
class ExtensionSecrets {
|
|
13006
13078
|
constructor(extensionDescription, secretState) {
|
|
@@ -13100,9 +13172,9 @@ ExtHostLocalizationService = ( (__decorate([
|
|
|
13100
13172
|
( (__param(1, IExtHostRpcService))),
|
|
13101
13173
|
( (__param(2, ILogService)))
|
|
13102
13174
|
], ExtHostLocalizationService)));
|
|
13103
|
-
const IExtHostLocalizationService = ( (createDecorator('IExtHostLocalizationService')));
|
|
13175
|
+
const IExtHostLocalizationService = ( (createDecorator$1('IExtHostLocalizationService')));
|
|
13104
13176
|
var _Extension_extensionService, _Extension_originExtensionId, _Extension_identifier;
|
|
13105
|
-
const IHostUtils = ( (createDecorator('IHostUtils')));
|
|
13177
|
+
const IHostUtils = ( (createDecorator$1('IHostUtils')));
|
|
13106
13178
|
let AbstractExtHostExtensionService = class AbstractExtHostExtensionService extends Disposable$1 {
|
|
13107
13179
|
constructor(instaService, hostUtils, extHostContext, extHostWorkspace, extHostConfiguration, logService, initData, storagePath, extHostTunnelService, extHostTerminalService, extHostLocalizationService) {
|
|
13108
13180
|
super();
|
|
@@ -13815,7 +13887,7 @@ function getTelemetryActivationEvent(extensionDescription, reason) {
|
|
|
13815
13887
|
};
|
|
13816
13888
|
return event;
|
|
13817
13889
|
}
|
|
13818
|
-
const IExtHostExtensionService = ( (createDecorator('IExtHostExtensionService')));
|
|
13890
|
+
const IExtHostExtensionService = ( (createDecorator$1('IExtHostExtensionService')));
|
|
13819
13891
|
class Extension {
|
|
13820
13892
|
constructor(extensionService, originExtensionId, description, kind, isFromDifferentExtensionHost) {
|
|
13821
13893
|
_Extension_extensionService.set(this, void 0);
|
|
@@ -14012,7 +14084,7 @@ class AbstractDebugAdapter {
|
|
|
14012
14084
|
this.queue = [];
|
|
14013
14085
|
}
|
|
14014
14086
|
}
|
|
14015
|
-
const IExtHostVariableResolverProvider = ( (createDecorator('IExtHostVariableResolverProvider')));
|
|
14087
|
+
const IExtHostVariableResolverProvider = ( (createDecorator$1('IExtHostVariableResolverProvider')));
|
|
14016
14088
|
class ExtHostVariableResolverService extends AbstractVariableResolverService {
|
|
14017
14089
|
constructor(extensionService, workspaceService, editorService, editorTabs, configProvider, context, homeDir) {
|
|
14018
14090
|
function getActiveUri() {
|
|
@@ -14138,7 +14210,7 @@ ExtHostVariableResolverProviderService = ( (__decorate([
|
|
|
14138
14210
|
( (__param(3, IExtHostConfiguration))),
|
|
14139
14211
|
( (__param(4, IExtHostEditorTabs)))
|
|
14140
14212
|
], ExtHostVariableResolverProviderService)));
|
|
14141
|
-
const IExtHostDebugService = ( (createDecorator('IExtHostDebugService')));
|
|
14213
|
+
const IExtHostDebugService = ( (createDecorator$1('IExtHostDebugService')));
|
|
14142
14214
|
let ExtHostDebugServiceBase = class ExtHostDebugServiceBase {
|
|
14143
14215
|
get onDidStartDebugSession() { return this._onDidStartDebugSession.event; }
|
|
14144
14216
|
get onDidTerminateDebugSession() { return this._onDidTerminateDebugSession.event; }
|
|
@@ -16257,7 +16329,7 @@ ExtHostDecorations = ( (__decorate([
|
|
|
16257
16329
|
( (__param(0, IExtHostRpcService))),
|
|
16258
16330
|
( (__param(1, ILogService)))
|
|
16259
16331
|
], ExtHostDecorations)));
|
|
16260
|
-
const IExtHostDecorations = ( (createDecorator('IExtHostDecorations')));
|
|
16332
|
+
const IExtHostDecorations = ( (createDecorator$1('IExtHostDecorations')));
|
|
16261
16333
|
function parse(entry) {
|
|
16262
16334
|
const args = [];
|
|
16263
16335
|
let stack;
|
package/dist/debug.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n, R as Range, T as disposeIfDisposable, P as Position, o as onServicesInitialized, w as withUndefinedAsNull, p as parse, V as visit, f as flatten, W as decodeBase64, e as encodeBase64 } from './polyfill.js';
|
|
2
2
|
import { c7 as IViewsService, bp as IExtensionService, c8 as ViewContainerLocationToString, c9 as defaultViewIcon, ca as NumberBadge, cb as IConfigurationResolverService, cc as AbstractEditorInput, bO as isEditorInput, cd as EditorResourceAccessor, bL as ILifecycleService, ce as IViewDescriptorService, cf as IHistoryService, bS as IPreferencesService, cg as ICustomEndpointTelemetryService, ch as ITaskService, ci as IExtensionHostDebugService, cj as IActivityService, br as IWorkspaceTrustRequestService, c as cleanRemoteAuthority, ck as Extensions$3, cl as SideBySideEditor, cm as ITunnelService } from './missing-services.js';
|
|
3
|
-
import { _ as __decorate, a4 as BREAKPOINTS_VIEW_ID, a5 as CONTEXT_DEBUGGERS_AVAILABLE, u as IDebugService, a6 as CONTEXT_BREAKPOINT_ITEM_TYPE, a7 as CONTEXT_BREAKPOINTS_EXIST, a8 as CONTEXT_IN_DEBUG_MODE, a9 as CONTEXT_BREAKPOINT_SUPPORTS_CONDITION, I as IEditorService, aa as BREAKPOINT_EDITOR_CONTRIBUTION_ID, ab as CONTEXT_DISASSEMBLY_VIEW_FOCUS, ac as CONTEXT_JUMP_TO_CURSOR_SUPPORTED, ad as CONTEXT_DEBUG_STATE, ae as CONTEXT_STEP_INTO_TARGETS_SUPPORTED, af as CONTEXT_FOCUSED_SESSION_IS_ATTACH, ag as REPL_VIEW_ID, ah as CONTEXT_BREAKPOINTS_FOCUSED, ai as CONTEXT_WATCH_EXPRESSIONS_FOCUSED, aj as CONTEXT_VARIABLES_FOCUSED, ak as CONTEXT_EXPRESSION_SELECTED, al as CONTEXT_BREAKPOINT_INPUT_FOCUSED, am as VIEWLET_ID$1, an as CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED, ao as CONTEXT_SUSPEND_DEBUGGEE_SUPPORTED,
|
|
3
|
+
import { _ as __decorate, a4 as BREAKPOINTS_VIEW_ID, a5 as CONTEXT_DEBUGGERS_AVAILABLE, u as IDebugService, a6 as CONTEXT_BREAKPOINT_ITEM_TYPE, a7 as CONTEXT_BREAKPOINTS_EXIST, a8 as CONTEXT_IN_DEBUG_MODE, a9 as CONTEXT_BREAKPOINT_SUPPORTS_CONDITION, I as IEditorService, aa as BREAKPOINT_EDITOR_CONTRIBUTION_ID, ab as CONTEXT_DISASSEMBLY_VIEW_FOCUS, ac as CONTEXT_JUMP_TO_CURSOR_SUPPORTED, ad as CONTEXT_DEBUG_STATE, ae as CONTEXT_STEP_INTO_TARGETS_SUPPORTED, af as CONTEXT_FOCUSED_SESSION_IS_ATTACH, ag as REPL_VIEW_ID, ah as CONTEXT_BREAKPOINTS_FOCUSED, ai as CONTEXT_WATCH_EXPRESSIONS_FOCUSED, aj as CONTEXT_VARIABLES_FOCUSED, ak as CONTEXT_EXPRESSION_SELECTED, al as CONTEXT_BREAKPOINT_INPUT_FOCUSED, am as VIEWLET_ID$1, an as CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED, ao as CONTEXT_SUSPEND_DEBUGGEE_SUPPORTED, i as SIDE_GROUP, ap as VARIABLES_VIEW_ID, aq as EDITOR_CONTRIBUTION_ID, ar as INTERNAL_CONSOLE_OPTIONS_SCHEMA, as as DEBUG_MEMORY_SCHEME, E as Emitter, a as __param, at as DEBUG_SCHEME, A as ACTIVE_GROUP, au as CALLSTACK_VIEW_ID, av as CONTEXT_DEBUG_TYPE, aw as CONTEXT_HAS_DEBUGGED, ax as CONTEXT_DEBUG_UX, ay as getStateLabel, az as debuggerDisabledMessage, aA as CONTEXT_STEP_BACK_SUPPORTED, aB as CONTEXT_MULTI_SESSION_DEBUG, aC as CONTEXT_BREAKPOINT_WIDGET_VISIBLE, aD as CONTEXT_IN_BREAKPOINT_WIDGET, aE as CONTEXT_EXCEPTION_WIDGET_VISIBLE, aF as CONTEXT_DEBUG_EXTENSION_AVAILABLE, l as ITextFileService, j as IUriIdentityService, aG as CONTEXT_DEBUG_CONFIGURATION_TYPE, D as DebugConfigurationProviderTriggerKind, n as IFileService, f as FileType, h as FilePermission, a2 as createFileSystemProviderError, t as IHostService, k as IPaneCompositePartService, e as IProductService, o as IWorkbenchEnvironmentService, aH as CONTEXT_LOADED_SCRIPTS_SUPPORTED, aI as CONTEXT_RESTART_FRAME_SUPPORTED, aJ as CONTEXT_SET_VARIABLE_SUPPORTED, aK as CONTEXT_SET_EXPRESSION_SUPPORTED, aL as CONTEXT_DISASSEMBLE_REQUEST_SUPPORTED, aM as CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE, r as IPathService, y as ISnippetsService, aN as CONTEXT_DEBUG_PROTOCOL_VARIABLE_MENU_CONTEXT, aO as CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, aP as CONTEXT_CAN_VIEW_MEMORY, aQ as CONTEXT_VARIABLE_IS_READONLY, F as FileSystemProviderErrorCode, aR as DebuggerString } from './services2.js';
|
|
4
4
|
import { C as CancellationTokenSource } from './cancellation.js';
|
|
5
5
|
import { ContextKeyExpr, IContextKeyService, RawContextKey } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
6
6
|
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
@@ -109,6 +109,7 @@ import { SuggestController } from 'monaco-editor/esm/vs/editor/contrib/suggest/b
|
|
|
109
109
|
import { ZoneWidget } from 'monaco-editor/esm/vs/editor/contrib/zoneWidget/browser/zoneWidget.js';
|
|
110
110
|
import { CodeEditorWidget } from 'monaco-editor/esm/vs/editor/browser/widget/codeEditorWidget.js';
|
|
111
111
|
import { ICodeEditorService } from 'monaco-editor/esm/vs/editor/browser/services/codeEditorService.js';
|
|
112
|
+
import { memoize } from 'monaco-editor/esm/vs/base/common/decorators.js';
|
|
112
113
|
import { MarkdownString } from 'monaco-editor/esm/vs/base/common/htmlContent.js';
|
|
113
114
|
import { OverviewRulerLane, InjectedTextCursorStops } from 'monaco-editor/esm/vs/editor/common/model.js';
|
|
114
115
|
import { PickerQuickAccessProvider, TriggerAction } from 'monaco-editor/esm/vs/platform/quickinput/browser/pickerQuickAccess.js';
|
|
@@ -9451,7 +9452,6 @@ class ViewModel {
|
|
|
9451
9452
|
}
|
|
9452
9453
|
let DebugService = class DebugService {
|
|
9453
9454
|
constructor(editorService, paneCompositeService, viewsService, viewDescriptorService, notificationService, dialogService, layoutService, contextService, contextKeyService, lifecycleService, instantiationService, extensionService, fileService, configurationService, extensionHostDebugService, activityService, commandService, quickInputService, workspaceTrustRequestService, uriIdentityService) {
|
|
9454
|
-
try {
|
|
9455
9455
|
this.editorService = editorService;
|
|
9456
9456
|
this.paneCompositeService = paneCompositeService;
|
|
9457
9457
|
this.viewsService = viewsService;
|
|
@@ -9553,9 +9553,6 @@ let DebugService = class DebugService {
|
|
|
9553
9553
|
}
|
|
9554
9554
|
}));
|
|
9555
9555
|
this.initContextKeys(contextKeyService);
|
|
9556
|
-
} catch (err) {
|
|
9557
|
-
console.error('OMG', err);
|
|
9558
|
-
}
|
|
9559
9556
|
}
|
|
9560
9557
|
initContextKeys(contextKeyService) {
|
|
9561
9558
|
queueMicrotask(() => {
|
|
@@ -13292,6 +13289,9 @@ class InlineBreakpointWidget {
|
|
|
13292
13289
|
dispose(this.toDispose);
|
|
13293
13290
|
}
|
|
13294
13291
|
}
|
|
13292
|
+
InlineBreakpointWidget.__decorator = ( (__decorate([
|
|
13293
|
+
memoize
|
|
13294
|
+
], InlineBreakpointWidget.prototype, "getId", null)));
|
|
13295
13295
|
registerThemingParticipant((theme, collector) => {
|
|
13296
13296
|
const debugIconBreakpointColor = theme.getColor(debugIconBreakpointForeground);
|
|
13297
13297
|
if (debugIconBreakpointColor) {
|
|
@@ -15253,6 +15253,18 @@ let DebugEditorContribution = class DebugEditorContribution {
|
|
|
15253
15253
|
this.oldDecorations.clear();
|
|
15254
15254
|
}
|
|
15255
15255
|
};
|
|
15256
|
+
DebugEditorContribution.__decorator = ( (__decorate([
|
|
15257
|
+
memoize
|
|
15258
|
+
], DebugEditorContribution.prototype, "showHoverScheduler", null)));
|
|
15259
|
+
DebugEditorContribution.__decorator = ( (__decorate([
|
|
15260
|
+
memoize
|
|
15261
|
+
], DebugEditorContribution.prototype, "hideHoverScheduler", null)));
|
|
15262
|
+
DebugEditorContribution.__decorator = ( (__decorate([
|
|
15263
|
+
memoize
|
|
15264
|
+
], DebugEditorContribution.prototype, "removeInlineValuesScheduler", null)));
|
|
15265
|
+
DebugEditorContribution.__decorator = ( (__decorate([
|
|
15266
|
+
memoize
|
|
15267
|
+
], DebugEditorContribution.prototype, "updateInlineValuesScheduler", null)));
|
|
15256
15268
|
DebugEditorContribution = ( (__decorate([
|
|
15257
15269
|
( (__param(1, IDebugService))),
|
|
15258
15270
|
( (__param(2, IInstantiationService))),
|
package/dist/extensions.d.ts
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import * as vscode from 'vscode';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* An object that performs a cleanup operation when `.dispose()` is called.
|
|
5
|
+
*
|
|
6
|
+
* Some examples of how disposables are used:
|
|
7
|
+
*
|
|
8
|
+
* - An event listener that removes itself when `.dispose()` is called.
|
|
9
|
+
* - A resource such as a file system watcher that cleans up the resource when `.dispose()` is called.
|
|
10
|
+
* - The return value from registering a provider. When `.dispose()` is called, the provider is unregistered.
|
|
11
|
+
*/
|
|
12
|
+
interface IDisposable {
|
|
13
|
+
dispose(): void;
|
|
14
|
+
}
|
|
15
|
+
|
|
3
16
|
/**
|
|
4
17
|
* Uniform Resource Identifier (URI) http://tools.ietf.org/html/rfc3986.
|
|
5
18
|
* This class is a simple parser which creates the basic component parts
|
|
@@ -482,10 +495,10 @@ declare class Disposable {
|
|
|
482
495
|
}
|
|
483
496
|
|
|
484
497
|
declare function createApi(extension: IExtensionDescription): typeof vscode;
|
|
485
|
-
interface RegisterExtensionResult {
|
|
498
|
+
interface RegisterExtensionResult extends IDisposable {
|
|
486
499
|
api: typeof vscode;
|
|
487
500
|
registerFile: (path: string, getContent: () => Promise<string>) => Disposable;
|
|
488
501
|
}
|
|
489
502
|
declare function registerExtension(manifest: IExtensionManifest): RegisterExtensionResult;
|
|
490
503
|
|
|
491
|
-
export { IExtensionManifest, createApi, registerExtension };
|
|
504
|
+
export { IExtensionContributions, IExtensionManifest, createApi, registerExtension };
|
package/dist/extensions.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { c as consoleExtensionMessageHandler } from './polyfill.js';
|
|
2
|
+
import { bM as api$1, bN as create, bO as create$1, bP as create$2, bQ as create$5, bR as create$3, bS as create$4, bT as create$6, bU as IExtHostExtensionService } from './api2.js';
|
|
1
3
|
import { E as ExtensionsRegistry, a as ExtensionMessageCollector } from './extensionsRegistry.js';
|
|
2
4
|
import { t as toExtensionDescription, g as getExtensionId } from './missing-services.js';
|
|
3
|
-
import { bM as api$1, bN as create, bO as create$1, bP as create$2, bQ as create$5, bR as create$3, bS as create$4, bT as create$6, bU as IExtHostExtensionService } from './api2.js';
|
|
4
|
-
import { c as consoleExtensionMessageHandler } from './polyfill.js';
|
|
5
5
|
import { r as registerExtensionFile } from './files.js';
|
|
6
6
|
import { generateUuid } from 'monaco-editor/esm/vs/base/common/uuid.js';
|
|
7
7
|
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
@@ -33,6 +33,27 @@ function handleExtensionPoint(extensionPoint, availableExtensions, messageHandle
|
|
|
33
33
|
}
|
|
34
34
|
extensionPoint.acceptUsers(users);
|
|
35
35
|
}
|
|
36
|
+
function deltaExtensions(toAdd, toRemove) {
|
|
37
|
+
void StandaloneServices.get(IExtHostExtensionService).getExtensionRegistry().then(extensionRegistry => {
|
|
38
|
+
const affectedExtensions = [].concat(toAdd).concat(toRemove);
|
|
39
|
+
const affectedExtensionPoints = Object.create(null);
|
|
40
|
+
for (const extensionDescription of affectedExtensions) {
|
|
41
|
+
for (const extPointName in extensionDescription.contributes) {
|
|
42
|
+
if (hasOwnProperty.call(extensionDescription.contributes, extPointName)) {
|
|
43
|
+
affectedExtensionPoints[extPointName] = true;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
extensionRegistry.deltaExtensions(toAdd, ( toRemove.map(ext => ext.identifier)));
|
|
48
|
+
const availableExtensions = extensionRegistry.getAllExtensionDescriptions();
|
|
49
|
+
const extensionPoints = ExtensionsRegistry.getExtensionPoints();
|
|
50
|
+
for (const extensionPoint of extensionPoints) {
|
|
51
|
+
if (affectedExtensionPoints[extensionPoint.name] ?? false) {
|
|
52
|
+
handleExtensionPoint(extensionPoint, availableExtensions, consoleExtensionMessageHandler);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
36
57
|
function registerExtension(manifest) {
|
|
37
58
|
const uuid = generateUuid();
|
|
38
59
|
const location = ( URI.from({ scheme: 'extension', path: `/${uuid}` }));
|
|
@@ -50,20 +71,14 @@ function registerExtension(manifest) {
|
|
|
50
71
|
validations: []
|
|
51
72
|
};
|
|
52
73
|
const extensionDescription = toExtensionDescription(extension);
|
|
53
|
-
|
|
54
|
-
extensionRegistry.deltaExtensions([extensionDescription], []);
|
|
55
|
-
const availableExtensions = extensionRegistry.getAllExtensionDescriptions();
|
|
56
|
-
const extensionPoints = ExtensionsRegistry.getExtensionPoints();
|
|
57
|
-
for (const extensionPoint of extensionPoints) {
|
|
58
|
-
if (Object.hasOwnProperty.call(extensionDescription.contributes, extensionPoint.name)) {
|
|
59
|
-
handleExtensionPoint(extensionPoint, availableExtensions, consoleExtensionMessageHandler);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
});
|
|
74
|
+
deltaExtensions([extensionDescription], []);
|
|
63
75
|
return {
|
|
64
76
|
api: createApi(extensionDescription),
|
|
65
77
|
registerFile: (path, getContent) => {
|
|
66
78
|
return registerExtensionFile(location, path, getContent);
|
|
79
|
+
},
|
|
80
|
+
dispose() {
|
|
81
|
+
deltaExtensions([], [extensionDescription]);
|
|
67
82
|
}
|
|
68
83
|
};
|
|
69
84
|
}
|
package/dist/files.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __decorate, E as Emitter, a as __param, T as TextFileOperationError, K as toBufferOrReadable, l as ITextFileService, I as IEditorService, n as IFileService, q as IWorkingCopyFileService, j as IUriIdentityService, o as IWorkbenchEnvironmentService, r as IPathService, e as IProductService, L as stringToSnapshot, m as mark, M as FileChangesEvent, v as FileOperationError, O as hasOpenReadWriteCloseCapability, P as hasReadWriteCapability, Q as hasFileReadStreamCapability, x as toFileSystemProviderErrorCode, F as FileSystemProviderErrorCode, R as ensureFileSystemProviderError,
|
|
1
|
+
import { _ as __decorate, E as Emitter, a as __param, T as TextFileOperationError, K as toBufferOrReadable, l as ITextFileService, I as IEditorService, n as IFileService, q as IWorkingCopyFileService, j as IUriIdentityService, o as IWorkbenchEnvironmentService, r as IPathService, e as IProductService, L as stringToSnapshot, m as mark, M as FileChangesEvent, v as FileOperationError, O as hasOpenReadWriteCloseCapability, P as hasReadWriteCapability, Q as hasFileReadStreamCapability, x as toFileSystemProviderErrorCode, F as FileSystemProviderErrorCode, R as ensureFileSystemProviderError, f as FileType, h as FilePermission, U as etag, V as FileOperationEvent, W as toFileOperationResult, X as ETAG_DISABLED, Y as hasFileAtomicReadCapability, Z as NotModifiedSinceFileOperationError, $ as TooLargeFileOperationError, a0 as hasFileFolderCopyCapability, a1 as hasFileCloneCapability, a2 as createFileSystemProviderError, a3 as FileSystemProviderError } from './services2.js';
|
|
2
2
|
import { y as bufferToReadable, z as bufferToStream, B as consumeStream, C as insert, D as isReadableStream, E as peekStream, F as peekReadable, G as streamToBuffer, H as transform, J as isReadableBufferedStream, K as listenStream, L as bufferedStreamToBuffer, M as readableToBuffer, O as newWriteableBufferStream, Q as newWriteableStream } from './polyfill.js';
|
|
3
3
|
import { b$ as SaveSourceRegistry, c0 as IWorkingCopyBackupService, I as IWorkingCopyService, bP as ILanguageDetectionService, c1 as IUntitledTextEditorService, bL as ILifecycleService, c2 as IFileDialogService, c3 as IFilesConfigurationService, c4 as IElevatedFileService, c5 as IDecorationsService, u as unsupported, D as Disposable$1 } from './missing-services.js';
|
|
4
4
|
import { C as CancellationTokenSource } from './cancellation.js';
|
package/dist/missing-services.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __decorate, aU as AutoSaveConfiguration, I as IEditorService, k as IPaneCompositePartService, j as IUriIdentityService, E as Emitter, l as ITextFileService, n as IFileService, d as IEditorGroupsService, o as IWorkbenchEnvironmentService, q as IWorkingCopyFileService, r as IPathService,
|
|
1
|
+
import { _ as __decorate, aU as AutoSaveConfiguration, I as IEditorService, k as IPaneCompositePartService, j as IUriIdentityService, E as Emitter, l as ITextFileService, n as IFileService, d as IEditorGroupsService, o as IWorkbenchEnvironmentService, q as IWorkingCopyFileService, r as IPathService, S as Services, e as IProductService, s as ILanguageStatusService, t as IHostService, J as IUserDataProfilesService, y as ISnippetsService, u as IDebugService, aV as IRemoteAgentService, b as __classPrivateFieldSet, c as __classPrivateFieldGet, w as refineServiceDecorator, aW as AbstractPathService, a as __param, aX as HotExitConfiguration, F as FileSystemProviderErrorCode, aY as markAsFileSystemProviderError } from './services2.js';
|
|
2
2
|
import { I as IPolicyService, f as flatten, $ as uniqueFilter, R as Range$1, _ as isStringArray, m as mapArrayOrNot } from './polyfill.js';
|
|
3
3
|
import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
4
4
|
import { compare, nextCharLength, compareIgnoreCase } from 'monaco-editor/esm/vs/base/common/strings.js';
|
package/dist/modelEditor.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IEditorService,
|
|
1
|
+
import { I as IEditorService, i as SIDE_GROUP, A as ACTIVE_GROUP, _ as __decorate, a as __param, E as Emitter, n as IFileService, j as IUriIdentityService, H as isPreferredGroup, l as ITextFileService } from './services2.js';
|
|
2
2
|
import { A as AsyncReferenceCollection, g as ReferenceCollection } from './polyfill.js';
|
|
3
3
|
import { u as unsupported, bN as isResourceEditorInput, bO as isEditorInput, bP as ILanguageDetectionService, bQ as isTextEditorViewState } from './missing-services.js';
|
|
4
4
|
import { B as BaseTextEditorModel, T as TextFileEditorModel } from './textFileEditorModel.js';
|
package/dist/polyfill.js
CHANGED
|
@@ -38,6 +38,7 @@ import { CombinedSpliceable } from 'monaco-editor/esm/vs/base/browser/ui/list/sp
|
|
|
38
38
|
import { ListView as ListView$1, ElementsDragAndDropData as ElementsDragAndDropData$1 } from 'monaco-editor/esm/vs/base/browser/ui/list/listView.js';
|
|
39
39
|
import { ListError } from 'monaco-editor/esm/vs/base/browser/ui/list/list.js';
|
|
40
40
|
import { clamp } from 'monaco-editor/esm/vs/base/common/numbers.js';
|
|
41
|
+
import { memoize } from 'monaco-editor/esm/vs/base/common/decorators.js';
|
|
41
42
|
import { OS, isLinux, isMacintosh, isNative, isWebWorker, globals, isWeb } from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
42
43
|
import { alert } from 'monaco-editor/esm/vs/base/browser/ui/aria/aria.js';
|
|
43
44
|
import { FuzzyScore, matchesPrefix, fuzzyScore } from 'monaco-editor/esm/vs/base/common/filters.js';
|
|
@@ -6212,6 +6213,9 @@ class Trait {
|
|
|
6212
6213
|
dispose$1(this._onChange);
|
|
6213
6214
|
}
|
|
6214
6215
|
}
|
|
6216
|
+
Trait.__decorator = ( (__decorate([
|
|
6217
|
+
memoize
|
|
6218
|
+
], Trait.prototype, "renderer", null)));
|
|
6215
6219
|
class SelectionTrait extends Trait {
|
|
6216
6220
|
constructor(setAriaSelected) {
|
|
6217
6221
|
super('selected');
|
|
@@ -6354,6 +6358,9 @@ class KeyboardController {
|
|
|
6354
6358
|
this.multipleSelectionDisposables.dispose();
|
|
6355
6359
|
}
|
|
6356
6360
|
}
|
|
6361
|
+
KeyboardController.__decorator = ( (__decorate([
|
|
6362
|
+
memoize
|
|
6363
|
+
], KeyboardController.prototype, "onKeyDown", null)));
|
|
6357
6364
|
var TypeNavigationMode;
|
|
6358
6365
|
( ((function(TypeNavigationMode) {
|
|
6359
6366
|
TypeNavigationMode[TypeNavigationMode["Automatic"] = 0] = "Automatic";
|
|
@@ -7446,6 +7453,30 @@ class List {
|
|
|
7446
7453
|
this._onDidDispose.dispose();
|
|
7447
7454
|
}
|
|
7448
7455
|
}
|
|
7456
|
+
List.__decorator = ( (__decorate([
|
|
7457
|
+
memoize
|
|
7458
|
+
], List.prototype, "onDidChangeFocus", null)));
|
|
7459
|
+
List.__decorator = ( (__decorate([
|
|
7460
|
+
memoize
|
|
7461
|
+
], List.prototype, "onDidChangeSelection", null)));
|
|
7462
|
+
List.__decorator = ( (__decorate([
|
|
7463
|
+
memoize
|
|
7464
|
+
], List.prototype, "onContextMenu", null)));
|
|
7465
|
+
List.__decorator = ( (__decorate([
|
|
7466
|
+
memoize
|
|
7467
|
+
], List.prototype, "onKeyDown", null)));
|
|
7468
|
+
List.__decorator = ( (__decorate([
|
|
7469
|
+
memoize
|
|
7470
|
+
], List.prototype, "onKeyUp", null)));
|
|
7471
|
+
List.__decorator = ( (__decorate([
|
|
7472
|
+
memoize
|
|
7473
|
+
], List.prototype, "onKeyPress", null)));
|
|
7474
|
+
List.__decorator = ( (__decorate([
|
|
7475
|
+
memoize
|
|
7476
|
+
], List.prototype, "onDidFocus", null)));
|
|
7477
|
+
List.__decorator = ( (__decorate([
|
|
7478
|
+
memoize
|
|
7479
|
+
], List.prototype, "onDidBlur", null)));
|
|
7449
7480
|
function roundFloat(number, decimalPoints) {
|
|
7450
7481
|
const decimal = Math.pow(10, decimalPoints);
|
|
7451
7482
|
return Math.round(number * decimal) / decimal;
|
|
@@ -13911,6 +13942,39 @@ class ListView {
|
|
|
13911
13942
|
}
|
|
13912
13943
|
}
|
|
13913
13944
|
ListView.InstanceCount = 0;
|
|
13945
|
+
ListView.__decorator = ( (__decorate([
|
|
13946
|
+
memoize
|
|
13947
|
+
], ListView.prototype, "onMouseClick", null)));
|
|
13948
|
+
ListView.__decorator = ( (__decorate([
|
|
13949
|
+
memoize
|
|
13950
|
+
], ListView.prototype, "onMouseDblClick", null)));
|
|
13951
|
+
ListView.__decorator = ( (__decorate([
|
|
13952
|
+
memoize
|
|
13953
|
+
], ListView.prototype, "onMouseMiddleClick", null)));
|
|
13954
|
+
ListView.__decorator = ( (__decorate([
|
|
13955
|
+
memoize
|
|
13956
|
+
], ListView.prototype, "onMouseUp", null)));
|
|
13957
|
+
ListView.__decorator = ( (__decorate([
|
|
13958
|
+
memoize
|
|
13959
|
+
], ListView.prototype, "onMouseDown", null)));
|
|
13960
|
+
ListView.__decorator = ( (__decorate([
|
|
13961
|
+
memoize
|
|
13962
|
+
], ListView.prototype, "onMouseOver", null)));
|
|
13963
|
+
ListView.__decorator = ( (__decorate([
|
|
13964
|
+
memoize
|
|
13965
|
+
], ListView.prototype, "onMouseMove", null)));
|
|
13966
|
+
ListView.__decorator = ( (__decorate([
|
|
13967
|
+
memoize
|
|
13968
|
+
], ListView.prototype, "onMouseOut", null)));
|
|
13969
|
+
ListView.__decorator = ( (__decorate([
|
|
13970
|
+
memoize
|
|
13971
|
+
], ListView.prototype, "onContextMenu", null)));
|
|
13972
|
+
ListView.__decorator = ( (__decorate([
|
|
13973
|
+
memoize
|
|
13974
|
+
], ListView.prototype, "onTouchStart", null)));
|
|
13975
|
+
ListView.__decorator = ( (__decorate([
|
|
13976
|
+
memoize
|
|
13977
|
+
], ListView.prototype, "onTap", null)));
|
|
13914
13978
|
class BaseActionViewItem extends Disposable {
|
|
13915
13979
|
get action() {
|
|
13916
13980
|
return this._action;
|
|
@@ -14479,4 +14543,4 @@ onServicesInitialized(() => {
|
|
|
14479
14543
|
workspaceContextService.onDidChangeWorkbenchState ?? (workspaceContextService.onDidChangeWorkbenchState = Event.None);
|
|
14480
14544
|
workspaceContextService.getWorkbenchState ?? ((workspaceContextService.getWorkbenchState = () => 1) );
|
|
14481
14545
|
});
|
|
14482
|
-
export { uniqueFilter as $, AsyncReferenceCollection as A, consumeStream as B, insert as C, isReadableStream as D, peekStream as E, peekReadable as F, streamToBuffer as G, transform as H, IPolicyService as I, isReadableBufferedStream as J, listenStream as K, bufferedStreamToBuffer as L, readableToBuffer as M, NotImplementedError as N, newWriteableBufferStream as O, Position as P, newWriteableStream as Q, Range as R, Selection as S, disposeIfDisposable as T, UserSettings as U, visit as V, decodeBase64 as W, parseTree as X, findNodeAtLocation as Y, createScanner as Z, isStringArray as _,
|
|
14546
|
+
export { uniqueFilter as $, AsyncReferenceCollection as A, consumeStream as B, insert as C, isReadableStream as D, peekStream as E, peekReadable as F, streamToBuffer as G, transform as H, IPolicyService as I, isReadableBufferedStream as J, listenStream as K, bufferedStreamToBuffer as L, readableToBuffer as M, NotImplementedError as N, newWriteableBufferStream as O, Position as P, newWriteableStream as Q, Range as R, Selection as S, disposeIfDisposable as T, UserSettings as U, visit as V, decodeBase64 as W, parseTree as X, findNodeAtLocation as Y, createScanner as Z, isStringArray as _, disposed as a, distinct as a0, assertAllDefined as b, consoleExtensionMessageHandler as c, delta as d, encodeBase64 as e, flatten as f, ReferenceCollection as g, index as h, isUntitledWorkspace as i, getNodeType as j, NullPolicyService as k, NullPolicyConfiguration as l, mapArrayOrNot as m, n, onServicesInitialized as o, parse as p, PolicyConfiguration as q, readonly as r, setUnexpectedErrorHandler as s, toWorkspaceFolder as t, nodeModulesAsarUnpackedPath as u, nodeModulesPath as v, withUndefinedAsNull as w, nodeModulesAsarPath as x, bufferToReadable as y, bufferToStream as z };
|
package/dist/services.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ContextKeyExprType, u as IDebugService, d as IEditorGroupsService, I as IEditorService, n as IFileService, t as IHostService, s as ILanguageStatusService, k as IPaneCompositePartService, r as IPathService, e as IProductService, y as ISnippetsService, l as ITextFileService, j as IUriIdentityService, o as IWorkbenchEnvironmentService, q as IWorkingCopyFileService, N as NotificationsFilter,
|
|
1
|
+
export { C as ContextKeyExprType, u as IDebugService, d as IEditorGroupsService, I as IEditorService, n as IFileService, t as IHostService, s as ILanguageStatusService, k as IPaneCompositePartService, r as IPathService, e as IProductService, y as ISnippetsService, l as ITextFileService, j as IUriIdentityService, o as IWorkbenchEnvironmentService, q as IWorkingCopyFileService, N as NotificationsFilter, S as Services, z as StorageScope, B as StorageTarget } from './services2.js';
|
|
2
2
|
export { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
3
3
|
export { ICommandService } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
|
|
4
4
|
export { INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
package/dist/services2.js
CHANGED
|
@@ -3464,4 +3464,4 @@ var Services;
|
|
|
3464
3464
|
}
|
|
3465
3465
|
Services.install = install;
|
|
3466
3466
|
})(Services || (Services = {})));
|
|
3467
|
-
export { TooLargeFileOperationError as $, ACTIVE_GROUP as A, StorageTarget as B, ContextKeyExprType as C, DebugConfigurationProviderTriggerKind as D, Emitter as E, FileSystemProviderErrorCode as F, NeverShowAgainScope as G, isPreferredGroup as H, IEditorService as I, IUserDataProfilesService as J, toBufferOrReadable as K, stringToSnapshot as L, FileChangesEvent as M, NotificationsFilter as N, hasOpenReadWriteCloseCapability as O, hasReadWriteCapability as P, hasFileReadStreamCapability as Q, ensureFileSystemProviderError as R,
|
|
3467
|
+
export { TooLargeFileOperationError as $, ACTIVE_GROUP as A, StorageTarget as B, ContextKeyExprType as C, DebugConfigurationProviderTriggerKind as D, Emitter as E, FileSystemProviderErrorCode as F, NeverShowAgainScope as G, isPreferredGroup as H, IEditorService as I, IUserDataProfilesService as J, toBufferOrReadable as K, stringToSnapshot as L, FileChangesEvent as M, NotificationsFilter as N, hasOpenReadWriteCloseCapability as O, hasReadWriteCapability as P, hasFileReadStreamCapability as Q, ensureFileSystemProviderError as R, Services as S, TextFileOperationError as T, etag as U, FileOperationEvent as V, toFileOperationResult as W, ETAG_DISABLED as X, hasFileAtomicReadCapability as Y, NotModifiedSinceFileOperationError as Z, __decorate as _, __param as a, NoOpNotification as a$, hasFileFolderCopyCapability as a0, hasFileCloneCapability as a1, createFileSystemProviderError as a2, FileSystemProviderError as a3, BREAKPOINTS_VIEW_ID as a4, CONTEXT_DEBUGGERS_AVAILABLE as a5, CONTEXT_BREAKPOINT_ITEM_TYPE as a6, CONTEXT_BREAKPOINTS_EXIST as a7, CONTEXT_IN_DEBUG_MODE as a8, CONTEXT_BREAKPOINT_SUPPORTS_CONDITION as a9, CONTEXT_STEP_BACK_SUPPORTED as aA, CONTEXT_MULTI_SESSION_DEBUG as aB, CONTEXT_BREAKPOINT_WIDGET_VISIBLE as aC, CONTEXT_IN_BREAKPOINT_WIDGET as aD, CONTEXT_EXCEPTION_WIDGET_VISIBLE as aE, CONTEXT_DEBUG_EXTENSION_AVAILABLE as aF, CONTEXT_DEBUG_CONFIGURATION_TYPE as aG, CONTEXT_LOADED_SCRIPTS_SUPPORTED as aH, CONTEXT_RESTART_FRAME_SUPPORTED as aI, CONTEXT_SET_VARIABLE_SUPPORTED as aJ, CONTEXT_SET_EXPRESSION_SUPPORTED as aK, CONTEXT_DISASSEMBLE_REQUEST_SUPPORTED as aL, CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE as aM, CONTEXT_DEBUG_PROTOCOL_VARIABLE_MENU_CONTEXT as aN, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT as aO, CONTEXT_CAN_VIEW_MEMORY as aP, CONTEXT_VARIABLE_IS_READONLY as aQ, DebuggerString as aR, FILES_ASSOCIATIONS_CONFIG as aS, productSchemaId as aT, AutoSaveConfiguration as aU, IRemoteAgentService as aV, AbstractPathService as aW, HotExitConfiguration as aX, markAsFileSystemProviderError as aY, RawContextKey as aZ, ContextKeyExpr as a_, BREAKPOINT_EDITOR_CONTRIBUTION_ID as aa, CONTEXT_DISASSEMBLY_VIEW_FOCUS as ab, CONTEXT_JUMP_TO_CURSOR_SUPPORTED as ac, CONTEXT_DEBUG_STATE as ad, CONTEXT_STEP_INTO_TARGETS_SUPPORTED as ae, CONTEXT_FOCUSED_SESSION_IS_ATTACH as af, REPL_VIEW_ID as ag, CONTEXT_BREAKPOINTS_FOCUSED as ah, CONTEXT_WATCH_EXPRESSIONS_FOCUSED as ai, CONTEXT_VARIABLES_FOCUSED as aj, CONTEXT_EXPRESSION_SELECTED as ak, CONTEXT_BREAKPOINT_INPUT_FOCUSED as al, VIEWLET_ID as am, CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED as an, CONTEXT_SUSPEND_DEBUGGEE_SUPPORTED as ao, VARIABLES_VIEW_ID as ap, EDITOR_CONTRIBUTION_ID as aq, INTERNAL_CONSOLE_OPTIONS_SCHEMA as ar, DEBUG_MEMORY_SCHEME as as, DEBUG_SCHEME as at, CALLSTACK_VIEW_ID as au, CONTEXT_DEBUG_TYPE as av, CONTEXT_HAS_DEBUGGED as aw, CONTEXT_DEBUG_UX as ax, getStateLabel as ay, debuggerDisabledMessage as az, __classPrivateFieldSet as b, __classPrivateFieldGet as c, IEditorGroupsService as d, IProductService as e, FileType as f, getMarks as g, FilePermission as h, SIDE_GROUP as i, IUriIdentityService as j, IPaneCompositePartService as k, ITextFileService as l, mark as m, IFileService as n, IWorkbenchEnvironmentService as o, preferredSideBySideGroupDirection as p, IWorkingCopyFileService as q, IPathService as r, ILanguageStatusService as s, IHostService as t, IDebugService as u, FileOperationError as v, refineServiceDecorator as w, toFileSystemProviderErrorCode as x, ISnippetsService as y, StorageScope as z };
|
package/dist/textmate.d.ts
CHANGED
|
@@ -282,24 +282,6 @@ interface ITextMateTokenizationService {
|
|
|
282
282
|
startDebugMode(printFn: (str: string) => void, onStop: () => void): void;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
interface IEmbeddedLanguagesMap {
|
|
286
|
-
[scopeName: string]: string;
|
|
287
|
-
}
|
|
288
|
-
interface TokenTypesContribution {
|
|
289
|
-
[scopeName: string]: string;
|
|
290
|
-
}
|
|
291
|
-
interface ITMSyntaxExtensionPoint {
|
|
292
|
-
language: string;
|
|
293
|
-
scopeName: string;
|
|
294
|
-
path: string;
|
|
295
|
-
embeddedLanguages: IEmbeddedLanguagesMap;
|
|
296
|
-
tokenTypes: TokenTypesContribution;
|
|
297
|
-
injectTo: string[];
|
|
298
|
-
balancedBracketScopes: string[];
|
|
299
|
-
unbalancedBracketScopes: string[];
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
type PartialITMSyntaxExtensionPoint = Partial<ITMSyntaxExtensionPoint> & Pick<ITMSyntaxExtensionPoint, 'path' | 'scopeName'>;
|
|
303
285
|
declare function getServiceOverride(): IEditorOverrideServices;
|
|
304
286
|
|
|
305
|
-
export {
|
|
287
|
+
export { ITextMateTokenizationService, getServiceOverride as default };
|
|
@@ -2,21 +2,6 @@ import * as monaco from 'monaco-editor';
|
|
|
2
2
|
|
|
3
3
|
type IEditorOverrideServices = monaco.editor.IEditorOverrideServices
|
|
4
4
|
|
|
5
|
-
interface ITokenTypeExtensionPoint {
|
|
6
|
-
id: string;
|
|
7
|
-
description: string;
|
|
8
|
-
superType?: string;
|
|
9
|
-
}
|
|
10
|
-
interface ITokenModifierExtensionPoint {
|
|
11
|
-
id: string;
|
|
12
|
-
description: string;
|
|
13
|
-
}
|
|
14
|
-
interface ITokenStyleDefaultExtensionPoint {
|
|
15
|
-
language?: string;
|
|
16
|
-
scopes: {
|
|
17
|
-
[selector: string]: string[];
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
5
|
declare function getServiceOverride(): IEditorOverrideServices;
|
|
21
6
|
|
|
22
|
-
export {
|
|
7
|
+
export { getServiceOverride as default };
|
package/dist/workspaceContext.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './polyfill.js';
|
|
2
2
|
import { u as unsupported } from './missing-services.js';
|
|
3
|
-
import {
|
|
3
|
+
import { S as Services } from './services2.js';
|
|
4
4
|
import { IWorkspaceContextService, WorkspaceFolder } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
|
|
5
5
|
import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
|
|
6
6
|
import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
|