@theia/plugin-ext 1.33.0-next.9 → 1.34.0-next.7
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/lib/common/collections.d.ts +5 -0
- package/lib/common/collections.d.ts.map +1 -0
- package/lib/common/collections.js +40 -0
- package/lib/common/collections.js.map +1 -0
- package/lib/common/plugin-api-rpc-model.d.ts +80 -0
- package/lib/common/plugin-api-rpc-model.d.ts.map +1 -1
- package/lib/common/plugin-api-rpc-model.js +17 -1
- package/lib/common/plugin-api-rpc-model.js.map +1 -1
- package/lib/common/plugin-api-rpc.d.ts +113 -1
- package/lib/common/plugin-api-rpc.d.ts.map +1 -1
- package/lib/common/plugin-api-rpc.js +5 -2
- package/lib/common/plugin-api-rpc.js.map +1 -1
- package/lib/common/reference-map.d.ts +8 -0
- package/lib/common/reference-map.d.ts.map +1 -0
- package/lib/common/reference-map.js +40 -0
- package/lib/common/reference-map.js.map +1 -0
- package/lib/common/types.d.ts +4 -0
- package/lib/common/types.d.ts.map +1 -1
- package/lib/common/types.js +11 -1
- package/lib/common/types.js.map +1 -1
- package/lib/main/browser/comments/comment-thread-widget.d.ts +1 -0
- package/lib/main/browser/comments/comment-thread-widget.d.ts.map +1 -1
- package/lib/main/browser/comments/comment-thread-widget.js +11 -0
- package/lib/main/browser/comments/comment-thread-widget.js.map +1 -1
- package/lib/main/browser/custom-editors/custom-editors-main.d.ts.map +1 -1
- package/lib/main/browser/custom-editors/custom-editors-main.js +2 -2
- package/lib/main/browser/custom-editors/custom-editors-main.js.map +1 -1
- package/lib/main/browser/file-system-main-impl.d.ts +1 -0
- package/lib/main/browser/file-system-main-impl.d.ts.map +1 -1
- package/lib/main/browser/file-system-main-impl.js +9 -2
- package/lib/main/browser/file-system-main-impl.js.map +1 -1
- package/lib/main/browser/languages-main.d.ts +1 -0
- package/lib/main/browser/languages-main.d.ts.map +1 -1
- package/lib/main/browser/languages-main.js +10 -0
- package/lib/main/browser/languages-main.js.map +1 -1
- package/lib/main/browser/tabs/tabs-main.d.ts +10 -0
- package/lib/main/browser/tabs/tabs-main.d.ts.map +1 -0
- package/lib/main/browser/tabs/tabs-main.js +33 -0
- package/lib/main/browser/tabs/tabs-main.js.map +1 -0
- package/lib/main/browser/terminal-main.d.ts +1 -1
- package/lib/main/browser/terminal-main.d.ts.map +1 -1
- package/lib/main/browser/terminal-main.js +2 -2
- package/lib/main/browser/terminal-main.js.map +1 -1
- package/lib/main/browser/webview/webview.d.ts +1 -0
- package/lib/main/browser/webview/webview.d.ts.map +1 -1
- package/lib/main/browser/webview/webview.js.map +1 -1
- package/lib/main/browser/webviews-main.d.ts.map +1 -1
- package/lib/main/browser/webviews-main.js +6 -6
- package/lib/main/browser/webviews-main.js.map +1 -1
- package/lib/plugin/comments.js +2 -0
- package/lib/plugin/comments.js.map +1 -1
- package/lib/plugin/file-system-ext-impl.d.ts +2 -0
- package/lib/plugin/file-system-ext-impl.d.ts.map +1 -1
- package/lib/plugin/file-system-ext-impl.js +22 -5
- package/lib/plugin/file-system-ext-impl.js.map +1 -1
- package/lib/plugin/languages/inline-completion.d.ts +21 -0
- package/lib/plugin/languages/inline-completion.d.ts.map +1 -0
- package/lib/plugin/languages/inline-completion.js +94 -0
- package/lib/plugin/languages/inline-completion.js.map +1 -0
- package/lib/plugin/languages.d.ts +5 -2
- package/lib/plugin/languages.d.ts.map +1 -1
- package/lib/plugin/languages.js +16 -1
- package/lib/plugin/languages.js.map +1 -1
- package/lib/plugin/plugin-context.d.ts.map +1 -1
- package/lib/plugin/plugin-context.js +120 -3
- package/lib/plugin/plugin-context.js.map +1 -1
- package/lib/plugin/tabs.d.ts +23 -0
- package/lib/plugin/tabs.d.ts.map +1 -0
- package/lib/plugin/tabs.js +362 -0
- package/lib/plugin/tabs.js.map +1 -0
- package/lib/plugin/theming.d.ts.map +1 -1
- package/lib/plugin/theming.js +3 -0
- package/lib/plugin/theming.js.map +1 -1
- package/lib/plugin/type-converters.d.ts +4 -0
- package/lib/plugin/type-converters.d.ts.map +1 -1
- package/lib/plugin/type-converters.js +21 -1
- package/lib/plugin/type-converters.js.map +1 -1
- package/lib/plugin/types-impl.d.ts +190 -1
- package/lib/plugin/types-impl.d.ts.map +1 -1
- package/lib/plugin/types-impl.js +265 -6
- package/lib/plugin/types-impl.js.map +1 -1
- package/package.json +26 -26
- package/src/common/collections.ts +37 -0
- package/src/common/plugin-api-rpc-model.ts +98 -0
- package/src/common/plugin-api-rpc.ts +142 -3
- package/src/common/reference-map.ts +38 -0
- package/src/common/types.ts +11 -0
- package/src/main/browser/comments/comment-thread-widget.tsx +11 -0
- package/src/main/browser/custom-editors/custom-editors-main.ts +2 -1
- package/src/main/browser/file-system-main-impl.ts +12 -3
- package/src/main/browser/languages-main.ts +18 -1
- package/src/main/browser/style/comments.css +6 -0
- package/src/main/browser/tabs/tabs-main.ts +42 -0
- package/src/main/browser/terminal-main.ts +2 -2
- package/src/main/browser/webview/pre/main.js +8 -1
- package/src/main/browser/webview/webview.ts +1 -0
- package/src/main/browser/webviews-main.ts +6 -3
- package/src/plugin/comments.ts +2 -0
- package/src/plugin/file-system-ext-impl.ts +21 -5
- package/src/plugin/languages/inline-completion.ts +126 -0
- package/src/plugin/languages.ts +30 -3
- package/src/plugin/plugin-context.ts +164 -5
- package/src/plugin/tabs.ts +430 -0
- package/src/plugin/theming.ts +3 -0
- package/src/plugin/type-converters.ts +22 -0
- package/src/plugin/types-impl.ts +287 -1
package/lib/plugin/types-impl.js
CHANGED
|
@@ -28,11 +28,18 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
28
28
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
29
29
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
30
30
|
};
|
|
31
|
-
var
|
|
31
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
32
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
33
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
34
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
35
|
+
};
|
|
36
|
+
var _a, _NotebookCellOutputItem_encoder;
|
|
37
|
+
var URI_1, Disposable_1, Position_1, Range_1, SnippetString_1, ThemeIcon_1, TextEdit_1, Location_1, NotebookEdit_1, CodeActionKind_1, SymbolInformation_1, DocumentSymbol_1, FileSystemError_1, TaskGroup_1, CallHierarchyItem_1, TypeHierarchyItem_1, TestMessage_1, SemanticTokensBuilder_1;
|
|
32
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
-
exports.
|
|
34
|
-
exports.
|
|
35
|
-
exports.InputBoxValidationSeverity = exports.SemanticTokensEdits = exports.SemanticTokensEdit = exports.SemanticTokens = exports.SemanticTokensBuilder = exports.SemanticTokensLegend = exports.TimelineItem = exports.TestMessage = exports.TestRunRequest = exports.TestTag = exports.TestRunProfileKind = exports.LinkedEditingRanges = exports.LanguageStatusSeverity = exports.TypeHierarchyItem = exports.CallHierarchyOutgoingCall = exports.CallHierarchyIncomingCall = exports.CallHierarchyItem = exports.UIKind = exports.WebviewPanelTargetArea = exports.OperatingSystem = exports.SelectionRange = exports.FoldingRangeKind = exports.FoldingRange = exports.InlayHintKind = exports.InlayHint = exports.InlayHintLabelPart = void 0;
|
|
39
|
+
exports.NotebookCellOutput = exports.NotebookCellData = exports.NotebookEditorRevealType = exports.NotebookControllerAffinity = exports.NotebookCellStatusBarAlignment = exports.NotebookCellKind = exports.MarkerTag = exports.MarkerSeverity = exports.Diagnostic = exports.CompletionItemTag = exports.DiagnosticTag = exports.DiagnosticRelatedInformation = exports.Location = exports.DebugConsoleMode = exports.DiagnosticSeverity = exports.InlineCompletionList = exports.InlineCompletionItem = exports.InlineCompletionTriggerKind = exports.CompletionList = exports.CompletionItem = exports.CompletionItemKind = exports.CompletionTriggerKind = exports.TextEdit = exports.IndentAction = exports.RelativePattern = exports.ConfigurationTarget = exports.OverviewRulerLane = exports.DecorationRangeBehavior = exports.TextEditorRevealType = exports.ThemeIcon = exports.ThemeColor = exports.SnippetString = exports.EnvironmentVariableMutatorType = exports.EndOfLine = exports.TextDocumentShowOptions = exports.Selection = exports.Range = exports.Position = exports.TextDocumentChangeReason = exports.TextEditorSelectionChangeKind = exports.ColorTheme = exports.SourceControlInputBoxValidationType = exports.ExtensionKind = exports.ExtensionMode = exports.ColorThemeKind = exports.ViewColumn = exports.TextEditorLineNumbersStyle = exports.StatusBarAlignment = exports.Disposable = exports.URI = void 0;
|
|
40
|
+
exports.CustomExecution = exports.ShellExecution = exports.TaskRevealKind = exports.TaskPanelKind = exports.ShellQuoting = exports.QuickPickItemKind = exports.ProcessExecution = exports.ProgressLocation = exports.Progress = exports.ProgressOptions = exports.FileType = exports.FileSystemError = exports.FileChangeType = exports.CommentMode = exports.FileDecoration = exports.TerminalLink = exports.QuickInputButtons = exports.CommentThreadCollapsibleState = exports.DocumentSymbol = exports.SymbolInformation = exports.SymbolTag = exports.TreeItemCollapsibleState = exports.TreeItem = exports.WorkspaceEdit = exports.CodeAction = exports.TextDocumentSaveReason = exports.CodeActionKind = exports.CodeActionTriggerKind = exports.CodeActionTrigger = exports.CodeLens = exports.DocumentLink = exports.DocumentHighlight = exports.DocumentHighlightKind = exports.InlineValueEvaluatableExpression = exports.InlineValueVariableLookup = exports.InlineValueText = exports.InlineValueContext = exports.EvaluatableExpression = exports.Hover = exports.SignatureHelp = exports.SignatureHelpTriggerKind = exports.SignatureInformation = exports.ParameterInformation = exports.NotebookEdit = exports.NotebookRange = exports.NotebookCell = exports.NotebookDocument = exports.NotebookData = exports.NotebookCellStatusBarItem = exports.NotebookCellOutputItem = void 0;
|
|
41
|
+
exports.TerminalEditorTabInput = exports.NotebookDiffEditorTabInput = exports.NotebookEditorTabInput = exports.WebviewEditorTabInput = exports.CustomEditorTabInput = exports.TextMergeTabInput = exports.TextDiffTabInput = exports.TextTabInput = exports.InputBoxValidationSeverity = exports.SemanticTokensEdits = exports.SemanticTokensEdit = exports.SemanticTokens = exports.SemanticTokensBuilder = exports.SemanticTokensLegend = exports.TimelineItem = exports.TestMessage = exports.TestRunRequest = exports.TestTag = exports.TestRunProfileKind = exports.LinkedEditingRanges = exports.LanguageStatusSeverity = exports.TypeHierarchyItem = exports.CallHierarchyOutgoingCall = exports.CallHierarchyIncomingCall = exports.CallHierarchyItem = exports.UIKind = exports.WebviewPanelTargetArea = exports.OperatingSystem = exports.SelectionRange = exports.FoldingRangeKind = exports.FoldingRange = exports.InlayHintKind = exports.InlayHint = exports.InlayHintLabelPart = exports.ColorFormat = exports.ColorPresentation = exports.ColorInformation = exports.Color = exports.FunctionBreakpoint = exports.SourceBreakpoint = exports.Breakpoint = exports.LogLevel = exports.DebugAdapterInlineImplementation = exports.DebugAdapterNamedPipeServer = exports.DebugAdapterServer = exports.DebugAdapterExecutable = exports.Task2 = exports.Task = exports.TaskScope = exports.TaskGroup = void 0;
|
|
42
|
+
exports.InteractiveWindowInput = void 0;
|
|
36
43
|
/* eslint-disable no-null/no-null */
|
|
37
44
|
const coreutils_1 = require("@theia/core/shared/@phosphor/coreutils");
|
|
38
45
|
const errors_1 = require("../common/errors");
|
|
@@ -166,6 +173,7 @@ var ColorThemeKind;
|
|
|
166
173
|
ColorThemeKind[ColorThemeKind["Light"] = 1] = "Light";
|
|
167
174
|
ColorThemeKind[ColorThemeKind["Dark"] = 2] = "Dark";
|
|
168
175
|
ColorThemeKind[ColorThemeKind["HighContrast"] = 3] = "HighContrast";
|
|
176
|
+
ColorThemeKind[ColorThemeKind["HighContrastLight"] = 4] = "HighContrastLight";
|
|
169
177
|
})(ColorThemeKind = exports.ColorThemeKind || (exports.ColorThemeKind = {}));
|
|
170
178
|
var ExtensionMode;
|
|
171
179
|
(function (ExtensionMode) {
|
|
@@ -888,6 +896,34 @@ CompletionList = __decorate([
|
|
|
888
896
|
__metadata("design:paramtypes", [Array, Boolean])
|
|
889
897
|
], CompletionList);
|
|
890
898
|
exports.CompletionList = CompletionList;
|
|
899
|
+
var InlineCompletionTriggerKind;
|
|
900
|
+
(function (InlineCompletionTriggerKind) {
|
|
901
|
+
InlineCompletionTriggerKind[InlineCompletionTriggerKind["Invoke"] = 0] = "Invoke";
|
|
902
|
+
InlineCompletionTriggerKind[InlineCompletionTriggerKind["Automatic"] = 1] = "Automatic";
|
|
903
|
+
})(InlineCompletionTriggerKind = exports.InlineCompletionTriggerKind || (exports.InlineCompletionTriggerKind = {}));
|
|
904
|
+
let InlineCompletionItem = class InlineCompletionItem {
|
|
905
|
+
constructor(insertText, range, command) {
|
|
906
|
+
this.insertText = insertText;
|
|
907
|
+
this.range = range;
|
|
908
|
+
this.command = command;
|
|
909
|
+
}
|
|
910
|
+
};
|
|
911
|
+
InlineCompletionItem = __decorate([
|
|
912
|
+
types_1.es5ClassCompat,
|
|
913
|
+
__metadata("design:paramtypes", [String, Range, Object])
|
|
914
|
+
], InlineCompletionItem);
|
|
915
|
+
exports.InlineCompletionItem = InlineCompletionItem;
|
|
916
|
+
let InlineCompletionList = class InlineCompletionList {
|
|
917
|
+
constructor(items) {
|
|
918
|
+
this.commands = undefined;
|
|
919
|
+
this.items = items;
|
|
920
|
+
}
|
|
921
|
+
};
|
|
922
|
+
InlineCompletionList = __decorate([
|
|
923
|
+
types_1.es5ClassCompat,
|
|
924
|
+
__metadata("design:paramtypes", [Array])
|
|
925
|
+
], InlineCompletionList);
|
|
926
|
+
exports.InlineCompletionList = InlineCompletionList;
|
|
891
927
|
var DiagnosticSeverity;
|
|
892
928
|
(function (DiagnosticSeverity) {
|
|
893
929
|
DiagnosticSeverity[DiagnosticSeverity["Error"] = 0] = "Error";
|
|
@@ -970,6 +1006,165 @@ var MarkerTag;
|
|
|
970
1006
|
MarkerTag[MarkerTag["Unnecessary"] = 1] = "Unnecessary";
|
|
971
1007
|
MarkerTag[MarkerTag["Deprecated"] = 2] = "Deprecated";
|
|
972
1008
|
})(MarkerTag = exports.MarkerTag || (exports.MarkerTag = {}));
|
|
1009
|
+
var NotebookCellKind;
|
|
1010
|
+
(function (NotebookCellKind) {
|
|
1011
|
+
NotebookCellKind[NotebookCellKind["Markup"] = 1] = "Markup";
|
|
1012
|
+
NotebookCellKind[NotebookCellKind["Code"] = 2] = "Code";
|
|
1013
|
+
})(NotebookCellKind = exports.NotebookCellKind || (exports.NotebookCellKind = {}));
|
|
1014
|
+
var NotebookCellStatusBarAlignment;
|
|
1015
|
+
(function (NotebookCellStatusBarAlignment) {
|
|
1016
|
+
NotebookCellStatusBarAlignment[NotebookCellStatusBarAlignment["Left"] = 1] = "Left";
|
|
1017
|
+
NotebookCellStatusBarAlignment[NotebookCellStatusBarAlignment["Right"] = 2] = "Right";
|
|
1018
|
+
})(NotebookCellStatusBarAlignment = exports.NotebookCellStatusBarAlignment || (exports.NotebookCellStatusBarAlignment = {}));
|
|
1019
|
+
var NotebookControllerAffinity;
|
|
1020
|
+
(function (NotebookControllerAffinity) {
|
|
1021
|
+
NotebookControllerAffinity[NotebookControllerAffinity["Default"] = 1] = "Default";
|
|
1022
|
+
NotebookControllerAffinity[NotebookControllerAffinity["Preferred"] = 2] = "Preferred";
|
|
1023
|
+
})(NotebookControllerAffinity = exports.NotebookControllerAffinity || (exports.NotebookControllerAffinity = {}));
|
|
1024
|
+
var NotebookEditorRevealType;
|
|
1025
|
+
(function (NotebookEditorRevealType) {
|
|
1026
|
+
NotebookEditorRevealType[NotebookEditorRevealType["Default"] = 0] = "Default";
|
|
1027
|
+
NotebookEditorRevealType[NotebookEditorRevealType["InCenter"] = 1] = "InCenter";
|
|
1028
|
+
NotebookEditorRevealType[NotebookEditorRevealType["InCenterIfOutsideViewport"] = 2] = "InCenterIfOutsideViewport";
|
|
1029
|
+
NotebookEditorRevealType[NotebookEditorRevealType["AtTop"] = 3] = "AtTop";
|
|
1030
|
+
})(NotebookEditorRevealType = exports.NotebookEditorRevealType || (exports.NotebookEditorRevealType = {}));
|
|
1031
|
+
let NotebookCellData = class NotebookCellData {
|
|
1032
|
+
constructor(kind, value, languageId) {
|
|
1033
|
+
this.kind = kind;
|
|
1034
|
+
this.value = value;
|
|
1035
|
+
this.languageId = languageId;
|
|
1036
|
+
}
|
|
1037
|
+
};
|
|
1038
|
+
NotebookCellData = __decorate([
|
|
1039
|
+
types_1.es5ClassCompat,
|
|
1040
|
+
__metadata("design:paramtypes", [Number, String, String])
|
|
1041
|
+
], NotebookCellData);
|
|
1042
|
+
exports.NotebookCellData = NotebookCellData;
|
|
1043
|
+
let NotebookCellOutput = class NotebookCellOutput {
|
|
1044
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1045
|
+
constructor(items, metadata) {
|
|
1046
|
+
this.items = items;
|
|
1047
|
+
this.metadata = metadata;
|
|
1048
|
+
}
|
|
1049
|
+
};
|
|
1050
|
+
NotebookCellOutput = __decorate([
|
|
1051
|
+
types_1.es5ClassCompat,
|
|
1052
|
+
__metadata("design:paramtypes", [Array, Object])
|
|
1053
|
+
], NotebookCellOutput);
|
|
1054
|
+
exports.NotebookCellOutput = NotebookCellOutput;
|
|
1055
|
+
class NotebookCellOutputItem {
|
|
1056
|
+
constructor(data, mime) {
|
|
1057
|
+
this.data = data;
|
|
1058
|
+
this.mime = mime;
|
|
1059
|
+
}
|
|
1060
|
+
static text(value, mime) {
|
|
1061
|
+
const bytes = __classPrivateFieldGet(NotebookCellOutputItem, _a, "f", _NotebookCellOutputItem_encoder).encode(String(value));
|
|
1062
|
+
return new NotebookCellOutputItem(bytes, mime || 'text/plain');
|
|
1063
|
+
}
|
|
1064
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1065
|
+
static json(value, mime) {
|
|
1066
|
+
const jsonStr = JSON.stringify(value, undefined, '\t');
|
|
1067
|
+
return NotebookCellOutputItem.text(jsonStr, mime);
|
|
1068
|
+
}
|
|
1069
|
+
static stdout(value) {
|
|
1070
|
+
return NotebookCellOutputItem.text(value, 'application/vnd.code.notebook.stdout');
|
|
1071
|
+
}
|
|
1072
|
+
static stderr(value) {
|
|
1073
|
+
return NotebookCellOutputItem.text(value, 'application/vnd.code.notebook.stderr');
|
|
1074
|
+
}
|
|
1075
|
+
static error(value) {
|
|
1076
|
+
return NotebookCellOutputItem.json(value, 'application/vnd.code.notebook.error');
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
exports.NotebookCellOutputItem = NotebookCellOutputItem;
|
|
1080
|
+
_a = NotebookCellOutputItem;
|
|
1081
|
+
_NotebookCellOutputItem_encoder = { value: new TextEncoder() };
|
|
1082
|
+
let NotebookCellStatusBarItem = class NotebookCellStatusBarItem {
|
|
1083
|
+
/**
|
|
1084
|
+
* Creates a new NotebookCellStatusBarItem.
|
|
1085
|
+
* @param text The text to show for the item.
|
|
1086
|
+
* @param alignment Whether the item is aligned to the left or right.
|
|
1087
|
+
* @stubbed
|
|
1088
|
+
*/
|
|
1089
|
+
constructor(text, alignment) {
|
|
1090
|
+
this.text = text;
|
|
1091
|
+
this.alignment = alignment;
|
|
1092
|
+
}
|
|
1093
|
+
};
|
|
1094
|
+
NotebookCellStatusBarItem = __decorate([
|
|
1095
|
+
types_1.es5ClassCompat,
|
|
1096
|
+
__metadata("design:paramtypes", [String, Number])
|
|
1097
|
+
], NotebookCellStatusBarItem);
|
|
1098
|
+
exports.NotebookCellStatusBarItem = NotebookCellStatusBarItem;
|
|
1099
|
+
let NotebookData = class NotebookData {
|
|
1100
|
+
constructor(cells) {
|
|
1101
|
+
this.cells = cells;
|
|
1102
|
+
}
|
|
1103
|
+
};
|
|
1104
|
+
NotebookData = __decorate([
|
|
1105
|
+
types_1.es5ClassCompat,
|
|
1106
|
+
__metadata("design:paramtypes", [Array])
|
|
1107
|
+
], NotebookData);
|
|
1108
|
+
exports.NotebookData = NotebookData;
|
|
1109
|
+
class NotebookDocument {
|
|
1110
|
+
cellAt(index) {
|
|
1111
|
+
return {};
|
|
1112
|
+
}
|
|
1113
|
+
save() {
|
|
1114
|
+
return Promise.resolve(false);
|
|
1115
|
+
}
|
|
1116
|
+
getCells(range) {
|
|
1117
|
+
return [];
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
exports.NotebookDocument = NotebookDocument;
|
|
1121
|
+
class NotebookCell {
|
|
1122
|
+
}
|
|
1123
|
+
exports.NotebookCell = NotebookCell;
|
|
1124
|
+
class NotebookRange {
|
|
1125
|
+
constructor(start, end) {
|
|
1126
|
+
this.start = start;
|
|
1127
|
+
this.end = end;
|
|
1128
|
+
}
|
|
1129
|
+
with(change) {
|
|
1130
|
+
let newStart = this.start;
|
|
1131
|
+
let newEnd = this.end;
|
|
1132
|
+
if (change.start !== undefined) {
|
|
1133
|
+
newStart = change.start;
|
|
1134
|
+
}
|
|
1135
|
+
if (change.end !== undefined) {
|
|
1136
|
+
newEnd = change.end;
|
|
1137
|
+
}
|
|
1138
|
+
if (newStart === this.start && newEnd === this.end) {
|
|
1139
|
+
return this;
|
|
1140
|
+
}
|
|
1141
|
+
return new NotebookRange(newStart, newEnd);
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
exports.NotebookRange = NotebookRange;
|
|
1145
|
+
let NotebookEdit = NotebookEdit_1 = class NotebookEdit {
|
|
1146
|
+
static replaceCells(range, newCells) {
|
|
1147
|
+
return new NotebookEdit_1();
|
|
1148
|
+
}
|
|
1149
|
+
static insertCells(index, newCells) {
|
|
1150
|
+
return new NotebookEdit_1();
|
|
1151
|
+
}
|
|
1152
|
+
static deleteCells(range) {
|
|
1153
|
+
return new NotebookEdit_1();
|
|
1154
|
+
}
|
|
1155
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1156
|
+
static updateCellMetadata(index, newCellMetadata) {
|
|
1157
|
+
return new NotebookEdit_1();
|
|
1158
|
+
}
|
|
1159
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1160
|
+
static updateNotebookMetadata(newNotebookMetadata) {
|
|
1161
|
+
return new NotebookEdit_1();
|
|
1162
|
+
}
|
|
1163
|
+
};
|
|
1164
|
+
NotebookEdit = NotebookEdit_1 = __decorate([
|
|
1165
|
+
types_1.es5ClassCompat
|
|
1166
|
+
], NotebookEdit);
|
|
1167
|
+
exports.NotebookEdit = NotebookEdit;
|
|
973
1168
|
let ParameterInformation = class ParameterInformation {
|
|
974
1169
|
constructor(label, documentation) {
|
|
975
1170
|
this.label = label;
|
|
@@ -1198,6 +1393,7 @@ CodeActionKind.QuickFix = CodeActionKind_1.Empty.append('quickfix');
|
|
|
1198
1393
|
CodeActionKind.Refactor = CodeActionKind_1.Empty.append('refactor');
|
|
1199
1394
|
CodeActionKind.RefactorExtract = CodeActionKind_1.Refactor.append('extract');
|
|
1200
1395
|
CodeActionKind.RefactorInline = CodeActionKind_1.Refactor.append('inline');
|
|
1396
|
+
CodeActionKind.RefactorMove = CodeActionKind_1.Refactor.append('move');
|
|
1201
1397
|
CodeActionKind.RefactorRewrite = CodeActionKind_1.Refactor.append('rewrite');
|
|
1202
1398
|
CodeActionKind.Source = CodeActionKind_1.Empty.append('source');
|
|
1203
1399
|
CodeActionKind.SourceOrganizeImports = CodeActionKind_1.Source.append('organizeImports');
|
|
@@ -1489,9 +1685,9 @@ var FileChangeType;
|
|
|
1489
1685
|
})(FileChangeType = exports.FileChangeType || (exports.FileChangeType = {}));
|
|
1490
1686
|
let FileSystemError = FileSystemError_1 = class FileSystemError extends Error {
|
|
1491
1687
|
constructor(uriOrMessage, code = files_1.FileSystemProviderErrorCode.Unknown, terminator) {
|
|
1492
|
-
var
|
|
1688
|
+
var _b;
|
|
1493
1689
|
super(URI.isUri(uriOrMessage) ? uriOrMessage.toString(true) : uriOrMessage);
|
|
1494
|
-
this.code = (
|
|
1690
|
+
this.code = (_b = terminator === null || terminator === void 0 ? void 0 : terminator.name) !== null && _b !== void 0 ? _b : 'Unknown';
|
|
1495
1691
|
// mark the error as file system provider error so that
|
|
1496
1692
|
// we can extract the error code on the receiving side
|
|
1497
1693
|
(0, files_1.markAsFileSystemProviderError)(this, code);
|
|
@@ -2592,4 +2788,67 @@ var InputBoxValidationSeverity;
|
|
|
2592
2788
|
InputBoxValidationSeverity[InputBoxValidationSeverity["Error"] = 3] = "Error";
|
|
2593
2789
|
})(InputBoxValidationSeverity = exports.InputBoxValidationSeverity || (exports.InputBoxValidationSeverity = {}));
|
|
2594
2790
|
// #endregion
|
|
2791
|
+
// #region Tab Inputs
|
|
2792
|
+
class TextTabInput {
|
|
2793
|
+
constructor(uri) {
|
|
2794
|
+
this.uri = uri;
|
|
2795
|
+
}
|
|
2796
|
+
}
|
|
2797
|
+
exports.TextTabInput = TextTabInput;
|
|
2798
|
+
class TextDiffTabInput {
|
|
2799
|
+
constructor(original, modified) {
|
|
2800
|
+
this.original = original;
|
|
2801
|
+
this.modified = modified;
|
|
2802
|
+
}
|
|
2803
|
+
}
|
|
2804
|
+
exports.TextDiffTabInput = TextDiffTabInput;
|
|
2805
|
+
class TextMergeTabInput {
|
|
2806
|
+
constructor(base, input1, input2, result) {
|
|
2807
|
+
this.base = base;
|
|
2808
|
+
this.input1 = input1;
|
|
2809
|
+
this.input2 = input2;
|
|
2810
|
+
this.result = result;
|
|
2811
|
+
}
|
|
2812
|
+
}
|
|
2813
|
+
exports.TextMergeTabInput = TextMergeTabInput;
|
|
2814
|
+
class CustomEditorTabInput {
|
|
2815
|
+
constructor(uri, viewType) {
|
|
2816
|
+
this.uri = uri;
|
|
2817
|
+
this.viewType = viewType;
|
|
2818
|
+
}
|
|
2819
|
+
}
|
|
2820
|
+
exports.CustomEditorTabInput = CustomEditorTabInput;
|
|
2821
|
+
class WebviewEditorTabInput {
|
|
2822
|
+
constructor(viewType) {
|
|
2823
|
+
this.viewType = viewType;
|
|
2824
|
+
}
|
|
2825
|
+
}
|
|
2826
|
+
exports.WebviewEditorTabInput = WebviewEditorTabInput;
|
|
2827
|
+
class NotebookEditorTabInput {
|
|
2828
|
+
constructor(uri, notebookType) {
|
|
2829
|
+
this.uri = uri;
|
|
2830
|
+
this.notebookType = notebookType;
|
|
2831
|
+
}
|
|
2832
|
+
}
|
|
2833
|
+
exports.NotebookEditorTabInput = NotebookEditorTabInput;
|
|
2834
|
+
class NotebookDiffEditorTabInput {
|
|
2835
|
+
constructor(original, modified, notebookType) {
|
|
2836
|
+
this.original = original;
|
|
2837
|
+
this.modified = modified;
|
|
2838
|
+
this.notebookType = notebookType;
|
|
2839
|
+
}
|
|
2840
|
+
}
|
|
2841
|
+
exports.NotebookDiffEditorTabInput = NotebookDiffEditorTabInput;
|
|
2842
|
+
class TerminalEditorTabInput {
|
|
2843
|
+
constructor() { }
|
|
2844
|
+
}
|
|
2845
|
+
exports.TerminalEditorTabInput = TerminalEditorTabInput;
|
|
2846
|
+
class InteractiveWindowInput {
|
|
2847
|
+
constructor(uri, inputBoxUri) {
|
|
2848
|
+
this.uri = uri;
|
|
2849
|
+
this.inputBoxUri = inputBoxUri;
|
|
2850
|
+
}
|
|
2851
|
+
}
|
|
2852
|
+
exports.InteractiveWindowInput = InteractiveWindowInput;
|
|
2853
|
+
// #endregion
|
|
2595
2854
|
//# sourceMappingURL=types-impl.js.map
|