@codingame/monaco-vscode-api 1.83.1 → 1.83.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/monaco-editor-treemending.patch +555 -555
- package/package.json +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/workspaces/common/workspaces.js +15 -15
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +49 -51
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +58 -69
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystem.js +23 -23
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +16 -16
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +59 -65
- package/vscode/src/vs/workbench/api/common/extHostConsoleForwarder.js +8 -8
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +151 -215
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +54 -58
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +53 -55
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +28 -28
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +265 -277
- package/vscode/src/vs/workbench/api/common/extensionHostMain.js +17 -19
- package/vscode/src/vs/workbench/api/worker/extHostExtensionService.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +26 -32
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +20 -26
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkFileEdits.js +58 -74
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +19 -19
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +32 -36
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +19 -19
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +73 -126
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +66 -74
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +82 -92
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +27 -29
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +122 -124
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +35 -39
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.js +25 -25
- package/vscode/src/vs/workbench/services/keybinding/common/macLinuxKeyboardMapper.js +30 -32
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +82 -92
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +31 -31
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +16 -16
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackupService.js +32 -42
|
@@ -21,7 +21,7 @@ import { namespaceTestTag, denamespaceTestTag } from '../../contrib/testing/comm
|
|
|
21
21
|
import { SIDE_GROUP, ACTIVE_GROUP } from '../../services/editor/common/editorService.js';
|
|
22
22
|
import { Position as Position$1, Selection as Selection$1, Range as Range$1, Diagnostic as Diagnostic$1, ViewColumn as ViewColumn$1, MarkdownString as MarkdownString$1, TextEdit as TextEdit$1, WorkspaceEdit as WorkspaceEdit$1, SnippetTextEdit, SnippetString, SymbolKind as SymbolKind$1, SymbolInformation, CallHierarchyItem as CallHierarchyItem$1, CallHierarchyIncomingCall as CallHierarchyIncomingCall$1, CallHierarchyOutgoingCall as CallHierarchyOutgoingCall$1, Location, InlineValueText, InlineValueVariableLookup, InlineValueEvaluatableExpression, InlineValueContext as InlineValueContext$1, CompletionItemKind as CompletionItemKind$1, InlayHint as InlayHint$1, DocumentLink as DocumentLink$1, ColorPresentation as ColorPresentation$1, Color as Color$1, NotebookRange as NotebookRange$1, NotebookCellData as NotebookCellData$1, NotebookCellOutputItem as NotebookCellOutputItem$1, NotebookCellOutput as NotebookCellOutput$1, TestTag as TestTag$1, CodeActionTriggerKind as CodeActionTriggerKind$1, TypeHierarchyItem as TypeHierarchyItem$1, ChatMessage as ChatMessage$1, InteractiveEditorResponseFeedbackKind as InteractiveEditorResponseFeedbackKind$1, DiagnosticRelatedInformation as DiagnosticRelatedInformation$1, DiagnosticSeverity as DiagnosticSeverity$1, SymbolTag as SymbolTag$1, DocumentSymbol as DocumentSymbol$1, Hover as Hover$1, EvaluatableExpression as EvaluatableExpression$1, DocumentHighlight as DocumentHighlight$1, CompletionItemTag as CompletionItemTag$1, CompletionItem as CompletionItem$1, InlayHintLabelPart as InlayHintLabelPart$1, SelectionRange as SelectionRange$1, EndOfLine as EndOfLine$1, FoldingRangeKind as FoldingRangeKind$1, RelativePattern, NotebookData as NotebookData$1, NotebookCellStatusBarAlignment, DataTransfer as DataTransfer$1, ChatMessageRole as ChatMessageRole$1, ChatVariableLevel as ChatVariableLevel$1, DiagnosticTag as DiagnosticTag$1, DecorationRangeBehavior as DecorationRangeBehavior$1, NotebookCellKind as NotebookCellKind$1, StandardTokenType, CompletionTriggerKind as CompletionTriggerKind$1, TextDocumentSaveReason as TextDocumentSaveReason$1, TextEditorLineNumbersStyle as TextEditorLineNumbersStyle$1, ProgressLocation as ProgressLocation$1, NotebookCellExecutionState as NotebookCellExecutionState$2, TestMessage as TestMessage$1, InternalFileDataTransferItem, DataTransferFile, InternalDataTransferItem, NotebookRendererScript as NotebookRendererScript$1 } from './extHostTypes.js';
|
|
23
23
|
var Selection;
|
|
24
|
-
( (
|
|
24
|
+
( (function(Selection) {
|
|
25
25
|
function to(selection) {
|
|
26
26
|
const { selectionStartLineNumber, selectionStartColumn, positionLineNumber, positionColumn } = selection;
|
|
27
27
|
const start = new Position$1(selectionStartLineNumber - 1, selectionStartColumn - 1);
|
|
@@ -39,9 +39,9 @@ var Selection;
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
Selection.from = from;
|
|
42
|
-
})(Selection || (Selection = {})))
|
|
42
|
+
})(Selection || (Selection = {})));
|
|
43
43
|
var Range;
|
|
44
|
-
( (
|
|
44
|
+
( (function(Range) {
|
|
45
45
|
function from(range) {
|
|
46
46
|
if (!range) {
|
|
47
47
|
return undefined;
|
|
@@ -63,9 +63,9 @@ var Range;
|
|
|
63
63
|
return new Range$1(startLineNumber - 1, startColumn - 1, endLineNumber - 1, endColumn - 1);
|
|
64
64
|
}
|
|
65
65
|
Range.to = to;
|
|
66
|
-
})(Range || (Range = {})))
|
|
66
|
+
})(Range || (Range = {})));
|
|
67
67
|
var TokenType;
|
|
68
|
-
( (
|
|
68
|
+
( (function(TokenType) {
|
|
69
69
|
function to(type) {
|
|
70
70
|
switch (type) {
|
|
71
71
|
case 1 : return StandardTokenType.Comment;
|
|
@@ -75,9 +75,9 @@ var TokenType;
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
TokenType.to = to;
|
|
78
|
-
})(TokenType || (TokenType = {})))
|
|
78
|
+
})(TokenType || (TokenType = {})));
|
|
79
79
|
var Position;
|
|
80
|
-
( (
|
|
80
|
+
( (function(Position) {
|
|
81
81
|
function to(position) {
|
|
82
82
|
return new Position$1(position.lineNumber - 1, position.column - 1);
|
|
83
83
|
}
|
|
@@ -86,11 +86,11 @@ var Position;
|
|
|
86
86
|
return { lineNumber: position.line + 1, column: position.character + 1 };
|
|
87
87
|
}
|
|
88
88
|
Position.from = from;
|
|
89
|
-
})(Position || (Position = {})))
|
|
89
|
+
})(Position || (Position = {})));
|
|
90
90
|
var DocumentSelector;
|
|
91
|
-
( (
|
|
91
|
+
( (function(DocumentSelector) {
|
|
92
92
|
function from(value, uriTransformer, extension) {
|
|
93
|
-
return coalesce((
|
|
93
|
+
return coalesce(( asArray(value).map(sel => _doTransformDocumentSelector(sel, uriTransformer, extension))));
|
|
94
94
|
}
|
|
95
95
|
DocumentSelector.from = from;
|
|
96
96
|
function _doTransformDocumentSelector(selector, uriTransformer, extension) {
|
|
@@ -120,9 +120,9 @@ var DocumentSelector;
|
|
|
120
120
|
}
|
|
121
121
|
return scheme;
|
|
122
122
|
}
|
|
123
|
-
})(DocumentSelector || (DocumentSelector = {})))
|
|
123
|
+
})(DocumentSelector || (DocumentSelector = {})));
|
|
124
124
|
var DiagnosticTag;
|
|
125
|
-
( (
|
|
125
|
+
( (function(DiagnosticTag) {
|
|
126
126
|
function from(value) {
|
|
127
127
|
switch (value) {
|
|
128
128
|
case DiagnosticTag$1.Unnecessary:
|
|
@@ -144,9 +144,9 @@ var DiagnosticTag;
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
DiagnosticTag.to = to;
|
|
147
|
-
})(DiagnosticTag || (DiagnosticTag = {})))
|
|
147
|
+
})(DiagnosticTag || (DiagnosticTag = {})));
|
|
148
148
|
var Diagnostic;
|
|
149
|
-
( (
|
|
149
|
+
( (function(Diagnostic) {
|
|
150
150
|
function from(value) {
|
|
151
151
|
let code;
|
|
152
152
|
if (value.code) {
|
|
@@ -166,8 +166,8 @@ var Diagnostic;
|
|
|
166
166
|
source: value.source,
|
|
167
167
|
code,
|
|
168
168
|
severity: DiagnosticSeverity.from(value.severity),
|
|
169
|
-
relatedInformation: value.relatedInformation && (
|
|
170
|
-
tags: Array.isArray(value.tags) ? coalesce((
|
|
169
|
+
relatedInformation: value.relatedInformation && ( value.relatedInformation.map(DiagnosticRelatedInformation.from)),
|
|
170
|
+
tags: Array.isArray(value.tags) ? coalesce(( value.tags.map(DiagnosticTag.from))) : undefined,
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
173
|
Diagnostic.from = from;
|
|
@@ -175,14 +175,14 @@ var Diagnostic;
|
|
|
175
175
|
const res = new Diagnostic$1(Range.to(value), value.message, DiagnosticSeverity.to(value.severity));
|
|
176
176
|
res.source = value.source;
|
|
177
177
|
res.code = isString(value.code) ? value.code : value.code?.value;
|
|
178
|
-
res.relatedInformation = value.relatedInformation && (
|
|
179
|
-
res.tags = value.tags && coalesce((
|
|
178
|
+
res.relatedInformation = value.relatedInformation && ( value.relatedInformation.map(DiagnosticRelatedInformation.to));
|
|
179
|
+
res.tags = value.tags && coalesce(( value.tags.map(DiagnosticTag.to)));
|
|
180
180
|
return res;
|
|
181
181
|
}
|
|
182
182
|
Diagnostic.to = to;
|
|
183
|
-
})(Diagnostic || (Diagnostic = {})))
|
|
183
|
+
})(Diagnostic || (Diagnostic = {})));
|
|
184
184
|
var DiagnosticRelatedInformation;
|
|
185
|
-
( (
|
|
185
|
+
( (function(DiagnosticRelatedInformation) {
|
|
186
186
|
function from(value) {
|
|
187
187
|
return {
|
|
188
188
|
...Range.from(value.location.range),
|
|
@@ -195,9 +195,9 @@ var DiagnosticRelatedInformation;
|
|
|
195
195
|
return new DiagnosticRelatedInformation$1(new Location(value.resource, Range.to(value)), value.message);
|
|
196
196
|
}
|
|
197
197
|
DiagnosticRelatedInformation.to = to;
|
|
198
|
-
})(DiagnosticRelatedInformation || (DiagnosticRelatedInformation = {})))
|
|
198
|
+
})(DiagnosticRelatedInformation || (DiagnosticRelatedInformation = {})));
|
|
199
199
|
var DiagnosticSeverity;
|
|
200
|
-
( (
|
|
200
|
+
( (function(DiagnosticSeverity) {
|
|
201
201
|
function from(value) {
|
|
202
202
|
switch (value) {
|
|
203
203
|
case DiagnosticSeverity$1.Error:
|
|
@@ -227,9 +227,9 @@ var DiagnosticSeverity;
|
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
DiagnosticSeverity.to = to;
|
|
230
|
-
})(DiagnosticSeverity || (DiagnosticSeverity = {})))
|
|
230
|
+
})(DiagnosticSeverity || (DiagnosticSeverity = {})));
|
|
231
231
|
var ViewColumn;
|
|
232
|
-
( (
|
|
232
|
+
( (function(ViewColumn) {
|
|
233
233
|
function from(column) {
|
|
234
234
|
if (typeof column === 'number' && column >= ViewColumn$1.One) {
|
|
235
235
|
return column - 1;
|
|
@@ -247,7 +247,7 @@ var ViewColumn;
|
|
|
247
247
|
throw new Error(`invalid 'EditorGroupColumn'`);
|
|
248
248
|
}
|
|
249
249
|
ViewColumn.to = to;
|
|
250
|
-
})(ViewColumn || (ViewColumn = {})))
|
|
250
|
+
})(ViewColumn || (ViewColumn = {})));
|
|
251
251
|
function isDecorationOptions(something) {
|
|
252
252
|
return (typeof something.range !== 'undefined');
|
|
253
253
|
}
|
|
@@ -258,11 +258,9 @@ function isDecorationOptionsArr(something) {
|
|
|
258
258
|
return isDecorationOptions(something[0]) ? true : false;
|
|
259
259
|
}
|
|
260
260
|
var MarkdownString;
|
|
261
|
-
( (
|
|
261
|
+
( (function(MarkdownString) {
|
|
262
262
|
function fromMany(markup) {
|
|
263
|
-
return (
|
|
264
|
-
(markup.map(MarkdownString.from))
|
|
265
|
-
);
|
|
263
|
+
return ( markup.map(MarkdownString.from));
|
|
266
264
|
}
|
|
267
265
|
MarkdownString.fromMany = fromMany;
|
|
268
266
|
function isCodeblock(thing) {
|
|
@@ -289,7 +287,7 @@ var MarkdownString;
|
|
|
289
287
|
res.uris = resUris;
|
|
290
288
|
const collectUri = (href) => {
|
|
291
289
|
try {
|
|
292
|
-
let uri = (
|
|
290
|
+
let uri = ( URI.parse(href, true));
|
|
293
291
|
uri = uri.with({ query: _uriMassage(uri.query, resUris) });
|
|
294
292
|
resUris[href] = uri;
|
|
295
293
|
}
|
|
@@ -320,7 +318,7 @@ var MarkdownString;
|
|
|
320
318
|
let changed = false;
|
|
321
319
|
data = cloneAndChange(data, value => {
|
|
322
320
|
if (URI.isUri(value)) {
|
|
323
|
-
const key = `__uri_${(
|
|
321
|
+
const key = `__uri_${( Math.random().toString(16)).slice(2, 8)}`;
|
|
324
322
|
bucket[key] = value;
|
|
325
323
|
changed = true;
|
|
326
324
|
return key;
|
|
@@ -338,7 +336,7 @@ var MarkdownString;
|
|
|
338
336
|
const result = new MarkdownString$1(value.value, value.supportThemeIcons);
|
|
339
337
|
result.isTrusted = value.isTrusted;
|
|
340
338
|
result.supportHtml = value.supportHtml;
|
|
341
|
-
result.baseUri = value.baseUri ? (
|
|
339
|
+
result.baseUri = value.baseUri ? ( URI.from(value.baseUri)) : undefined;
|
|
342
340
|
return result;
|
|
343
341
|
}
|
|
344
342
|
MarkdownString.to = to;
|
|
@@ -349,29 +347,25 @@ var MarkdownString;
|
|
|
349
347
|
return typeof value === 'string' ? value : MarkdownString.from(value);
|
|
350
348
|
}
|
|
351
349
|
MarkdownString.fromStrict = fromStrict;
|
|
352
|
-
})(MarkdownString || (MarkdownString = {})))
|
|
350
|
+
})(MarkdownString || (MarkdownString = {})));
|
|
353
351
|
function fromRangeOrRangeWithMessage(ranges) {
|
|
354
352
|
if (isDecorationOptionsArr(ranges)) {
|
|
355
|
-
return (
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
}))
|
|
365
|
-
);
|
|
353
|
+
return ( ranges.map((r) => {
|
|
354
|
+
return {
|
|
355
|
+
range: Range.from(r.range),
|
|
356
|
+
hoverMessage: Array.isArray(r.hoverMessage)
|
|
357
|
+
? MarkdownString.fromMany(r.hoverMessage)
|
|
358
|
+
: (r.hoverMessage ? MarkdownString.from(r.hoverMessage) : undefined),
|
|
359
|
+
renderOptions: r.renderOptions
|
|
360
|
+
};
|
|
361
|
+
}));
|
|
366
362
|
}
|
|
367
363
|
else {
|
|
368
|
-
return (
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
}))
|
|
374
|
-
);
|
|
364
|
+
return ( ranges.map((r) => {
|
|
365
|
+
return {
|
|
366
|
+
range: Range.from(r)
|
|
367
|
+
};
|
|
368
|
+
}));
|
|
375
369
|
}
|
|
376
370
|
}
|
|
377
371
|
function pathOrURIToURI(value) {
|
|
@@ -386,7 +380,7 @@ function pathOrURIToURI(value) {
|
|
|
386
380
|
}
|
|
387
381
|
}
|
|
388
382
|
var ThemableDecorationAttachmentRenderOptions;
|
|
389
|
-
( (
|
|
383
|
+
( (function(ThemableDecorationAttachmentRenderOptions) {
|
|
390
384
|
function from(options) {
|
|
391
385
|
if (typeof options === 'undefined') {
|
|
392
386
|
return options;
|
|
@@ -409,9 +403,9 @@ var ThemableDecorationAttachmentRenderOptions;
|
|
|
409
403
|
ThemableDecorationAttachmentRenderOptions.from = from;
|
|
410
404
|
})(
|
|
411
405
|
ThemableDecorationAttachmentRenderOptions || (ThemableDecorationAttachmentRenderOptions = {})
|
|
412
|
-
))
|
|
406
|
+
));
|
|
413
407
|
var ThemableDecorationRenderOptions;
|
|
414
|
-
( (
|
|
408
|
+
( (function(ThemableDecorationRenderOptions) {
|
|
415
409
|
function from(options) {
|
|
416
410
|
if (typeof options === 'undefined') {
|
|
417
411
|
return options;
|
|
@@ -443,9 +437,9 @@ var ThemableDecorationRenderOptions;
|
|
|
443
437
|
};
|
|
444
438
|
}
|
|
445
439
|
ThemableDecorationRenderOptions.from = from;
|
|
446
|
-
})(ThemableDecorationRenderOptions || (ThemableDecorationRenderOptions = {})))
|
|
440
|
+
})(ThemableDecorationRenderOptions || (ThemableDecorationRenderOptions = {})));
|
|
447
441
|
var DecorationRangeBehavior;
|
|
448
|
-
( (
|
|
442
|
+
( (function(DecorationRangeBehavior) {
|
|
449
443
|
function from(value) {
|
|
450
444
|
if (typeof value === 'undefined') {
|
|
451
445
|
return value;
|
|
@@ -462,9 +456,9 @@ var DecorationRangeBehavior;
|
|
|
462
456
|
}
|
|
463
457
|
}
|
|
464
458
|
DecorationRangeBehavior.from = from;
|
|
465
|
-
})(DecorationRangeBehavior || (DecorationRangeBehavior = {})))
|
|
459
|
+
})(DecorationRangeBehavior || (DecorationRangeBehavior = {})));
|
|
466
460
|
var DecorationRenderOptions;
|
|
467
|
-
( (
|
|
461
|
+
( (function(DecorationRenderOptions) {
|
|
468
462
|
function from(options) {
|
|
469
463
|
return {
|
|
470
464
|
isWholeLine: options.isWholeLine,
|
|
@@ -498,9 +492,9 @@ var DecorationRenderOptions;
|
|
|
498
492
|
};
|
|
499
493
|
}
|
|
500
494
|
DecorationRenderOptions.from = from;
|
|
501
|
-
})(DecorationRenderOptions || (DecorationRenderOptions = {})))
|
|
495
|
+
})(DecorationRenderOptions || (DecorationRenderOptions = {})));
|
|
502
496
|
var TextEdit;
|
|
503
|
-
( (
|
|
497
|
+
( (function(TextEdit) {
|
|
504
498
|
function from(edit) {
|
|
505
499
|
return {
|
|
506
500
|
text: edit.newText,
|
|
@@ -515,15 +509,15 @@ var TextEdit;
|
|
|
515
509
|
return result;
|
|
516
510
|
}
|
|
517
511
|
TextEdit.to = to;
|
|
518
|
-
})(TextEdit || (TextEdit = {})))
|
|
512
|
+
})(TextEdit || (TextEdit = {})));
|
|
519
513
|
var WorkspaceEdit;
|
|
520
|
-
( (
|
|
514
|
+
( (function(WorkspaceEdit) {
|
|
521
515
|
function from(value, versionInfo) {
|
|
522
516
|
const result = {
|
|
523
517
|
edits: []
|
|
524
518
|
};
|
|
525
519
|
if (value instanceof WorkspaceEdit$1) {
|
|
526
|
-
const toCreate = (
|
|
520
|
+
const toCreate = ( new ResourceSet());
|
|
527
521
|
for (const entry of value._allEntries()) {
|
|
528
522
|
if (entry._type === 1 && URI.isUri(entry.to) && entry.from === undefined) {
|
|
529
523
|
toCreate.add(entry.to);
|
|
@@ -551,7 +545,7 @@ var WorkspaceEdit;
|
|
|
551
545
|
result.edits.push({
|
|
552
546
|
resource: entry.uri,
|
|
553
547
|
textEdit: TextEdit.from(entry.edit),
|
|
554
|
-
versionId: !(
|
|
548
|
+
versionId: !( toCreate.has(entry.uri)) ? versionInfo?.getTextDocumentVersion(entry.uri) : undefined,
|
|
555
549
|
metadata: entry.metadata
|
|
556
550
|
});
|
|
557
551
|
}
|
|
@@ -563,7 +557,7 @@ var WorkspaceEdit;
|
|
|
563
557
|
text: entry.edit.value,
|
|
564
558
|
insertAsSnippet: true
|
|
565
559
|
},
|
|
566
|
-
versionId: !(
|
|
560
|
+
versionId: !( toCreate.has(entry.uri)) ? versionInfo?.getTextDocumentVersion(entry.uri) : undefined,
|
|
567
561
|
metadata: entry.metadata
|
|
568
562
|
});
|
|
569
563
|
}
|
|
@@ -585,7 +579,7 @@ var WorkspaceEdit;
|
|
|
585
579
|
editType: 1 ,
|
|
586
580
|
index: entry.index,
|
|
587
581
|
count: entry.count,
|
|
588
|
-
cells: (
|
|
582
|
+
cells: ( entry.cells.map(NotebookCellData.from))
|
|
589
583
|
}
|
|
590
584
|
});
|
|
591
585
|
}
|
|
@@ -596,7 +590,7 @@ var WorkspaceEdit;
|
|
|
596
590
|
WorkspaceEdit.from = from;
|
|
597
591
|
function to(value) {
|
|
598
592
|
const result = new WorkspaceEdit$1();
|
|
599
|
-
const edits = (
|
|
593
|
+
const edits = ( new ResourceMap());
|
|
600
594
|
for (const edit of value.edits) {
|
|
601
595
|
if (edit.textEdit) {
|
|
602
596
|
const item = edit;
|
|
@@ -629,9 +623,9 @@ var WorkspaceEdit;
|
|
|
629
623
|
return result;
|
|
630
624
|
}
|
|
631
625
|
WorkspaceEdit.to = to;
|
|
632
|
-
})(WorkspaceEdit || (WorkspaceEdit = {})))
|
|
626
|
+
})(WorkspaceEdit || (WorkspaceEdit = {})));
|
|
633
627
|
var SymbolKind;
|
|
634
|
-
( (
|
|
628
|
+
( (function(SymbolKind) {
|
|
635
629
|
const _fromMapping = Object.create(null);
|
|
636
630
|
_fromMapping[SymbolKind$1.File] = 0 ;
|
|
637
631
|
_fromMapping[SymbolKind$1.Module] = 1 ;
|
|
@@ -672,9 +666,9 @@ var SymbolKind;
|
|
|
672
666
|
return SymbolKind$1.Property;
|
|
673
667
|
}
|
|
674
668
|
SymbolKind.to = to;
|
|
675
|
-
})(SymbolKind || (SymbolKind = {})))
|
|
669
|
+
})(SymbolKind || (SymbolKind = {})));
|
|
676
670
|
var SymbolTag;
|
|
677
|
-
( (
|
|
671
|
+
( (function(SymbolTag) {
|
|
678
672
|
function from(kind) {
|
|
679
673
|
switch (kind) {
|
|
680
674
|
case SymbolTag$1.Deprecated: return 1 ;
|
|
@@ -687,14 +681,14 @@ var SymbolTag;
|
|
|
687
681
|
}
|
|
688
682
|
}
|
|
689
683
|
SymbolTag.to = to;
|
|
690
|
-
})(SymbolTag || (SymbolTag = {})))
|
|
684
|
+
})(SymbolTag || (SymbolTag = {})));
|
|
691
685
|
var WorkspaceSymbol;
|
|
692
|
-
( (
|
|
686
|
+
( (function(WorkspaceSymbol) {
|
|
693
687
|
function from(info) {
|
|
694
688
|
return {
|
|
695
689
|
name: info.name,
|
|
696
690
|
kind: SymbolKind.from(info.kind),
|
|
697
|
-
tags: info.tags && (
|
|
691
|
+
tags: info.tags && ( info.tags.map(SymbolTag.from)),
|
|
698
692
|
containerName: info.containerName,
|
|
699
693
|
location: location.from(info.location)
|
|
700
694
|
};
|
|
@@ -702,13 +696,13 @@ var WorkspaceSymbol;
|
|
|
702
696
|
WorkspaceSymbol.from = from;
|
|
703
697
|
function to(info) {
|
|
704
698
|
const result = new SymbolInformation(info.name, SymbolKind.to(info.kind), info.containerName, location.to(info.location));
|
|
705
|
-
result.tags = info.tags && (
|
|
699
|
+
result.tags = info.tags && ( info.tags.map(SymbolTag.to));
|
|
706
700
|
return result;
|
|
707
701
|
}
|
|
708
702
|
WorkspaceSymbol.to = to;
|
|
709
|
-
})(WorkspaceSymbol || (WorkspaceSymbol = {})))
|
|
703
|
+
})(WorkspaceSymbol || (WorkspaceSymbol = {})));
|
|
710
704
|
var DocumentSymbol;
|
|
711
|
-
( (
|
|
705
|
+
( (function(DocumentSymbol) {
|
|
712
706
|
function from(info) {
|
|
713
707
|
const result = {
|
|
714
708
|
name: info.name || '!!MISSING: name!!',
|
|
@@ -719,7 +713,7 @@ var DocumentSymbol;
|
|
|
719
713
|
tags: info.tags?.map(SymbolTag.from) ?? []
|
|
720
714
|
};
|
|
721
715
|
if (info.children) {
|
|
722
|
-
result.children = (
|
|
716
|
+
result.children = ( info.children.map(from));
|
|
723
717
|
}
|
|
724
718
|
return result;
|
|
725
719
|
}
|
|
@@ -727,17 +721,17 @@ var DocumentSymbol;
|
|
|
727
721
|
function to(info) {
|
|
728
722
|
const result = new DocumentSymbol$1(info.name, info.detail, SymbolKind.to(info.kind), Range.to(info.range), Range.to(info.selectionRange));
|
|
729
723
|
if (isNonEmptyArray(info.tags)) {
|
|
730
|
-
result.tags = (
|
|
724
|
+
result.tags = ( info.tags.map(SymbolTag.to));
|
|
731
725
|
}
|
|
732
726
|
if (info.children) {
|
|
733
|
-
result.children = (
|
|
727
|
+
result.children = ( info.children.map(to));
|
|
734
728
|
}
|
|
735
729
|
return result;
|
|
736
730
|
}
|
|
737
731
|
DocumentSymbol.to = to;
|
|
738
|
-
})(DocumentSymbol || (DocumentSymbol = {})))
|
|
732
|
+
})(DocumentSymbol || (DocumentSymbol = {})));
|
|
739
733
|
var CallHierarchyItem;
|
|
740
|
-
( (
|
|
734
|
+
( (function(CallHierarchyItem) {
|
|
741
735
|
function to(item) {
|
|
742
736
|
const result = new CallHierarchyItem$1(SymbolKind.to(item.kind), item.name, item.detail || '', URI.revive(item.uri), Range.to(item.range), Range.to(item.selectionRange));
|
|
743
737
|
result._sessionId = item._sessionId;
|
|
@@ -764,23 +758,23 @@ var CallHierarchyItem;
|
|
|
764
758
|
};
|
|
765
759
|
}
|
|
766
760
|
CallHierarchyItem.from = from;
|
|
767
|
-
})(CallHierarchyItem || (CallHierarchyItem = {})))
|
|
761
|
+
})(CallHierarchyItem || (CallHierarchyItem = {})));
|
|
768
762
|
var CallHierarchyIncomingCall;
|
|
769
|
-
( (
|
|
763
|
+
( (function(CallHierarchyIncomingCall) {
|
|
770
764
|
function to(item) {
|
|
771
|
-
return new CallHierarchyIncomingCall$1(CallHierarchyItem.to(item.from), (
|
|
765
|
+
return new CallHierarchyIncomingCall$1(CallHierarchyItem.to(item.from), ( item.fromRanges.map(r => Range.to(r))));
|
|
772
766
|
}
|
|
773
767
|
CallHierarchyIncomingCall.to = to;
|
|
774
|
-
})(CallHierarchyIncomingCall || (CallHierarchyIncomingCall = {})))
|
|
768
|
+
})(CallHierarchyIncomingCall || (CallHierarchyIncomingCall = {})));
|
|
775
769
|
var CallHierarchyOutgoingCall;
|
|
776
|
-
( (
|
|
770
|
+
( (function(CallHierarchyOutgoingCall) {
|
|
777
771
|
function to(item) {
|
|
778
|
-
return new CallHierarchyOutgoingCall$1(CallHierarchyItem.to(item.to), (
|
|
772
|
+
return new CallHierarchyOutgoingCall$1(CallHierarchyItem.to(item.to), ( item.fromRanges.map(r => Range.to(r))));
|
|
779
773
|
}
|
|
780
774
|
CallHierarchyOutgoingCall.to = to;
|
|
781
|
-
})(CallHierarchyOutgoingCall || (CallHierarchyOutgoingCall = {})))
|
|
775
|
+
})(CallHierarchyOutgoingCall || (CallHierarchyOutgoingCall = {})));
|
|
782
776
|
var location;
|
|
783
|
-
( (
|
|
777
|
+
( (function(location) {
|
|
784
778
|
function from(value) {
|
|
785
779
|
return {
|
|
786
780
|
range: value.range && Range.from(value.range),
|
|
@@ -792,9 +786,9 @@ var location;
|
|
|
792
786
|
return new Location(URI.revive(value.uri), Range.to(value.range));
|
|
793
787
|
}
|
|
794
788
|
location.to = to;
|
|
795
|
-
})(location || (location = {})))
|
|
789
|
+
})(location || (location = {})));
|
|
796
790
|
var DefinitionLink;
|
|
797
|
-
( (
|
|
791
|
+
( (function(DefinitionLink) {
|
|
798
792
|
function from(value) {
|
|
799
793
|
const definitionLink = value;
|
|
800
794
|
const location = value;
|
|
@@ -823,9 +817,9 @@ var DefinitionLink;
|
|
|
823
817
|
};
|
|
824
818
|
}
|
|
825
819
|
DefinitionLink.to = to;
|
|
826
|
-
})(DefinitionLink || (DefinitionLink = {})))
|
|
820
|
+
})(DefinitionLink || (DefinitionLink = {})));
|
|
827
821
|
var Hover;
|
|
828
|
-
( (
|
|
822
|
+
( (function(Hover) {
|
|
829
823
|
function from(hover) {
|
|
830
824
|
return {
|
|
831
825
|
range: Range.from(hover.range),
|
|
@@ -834,12 +828,12 @@ var Hover;
|
|
|
834
828
|
}
|
|
835
829
|
Hover.from = from;
|
|
836
830
|
function to(info) {
|
|
837
|
-
return new Hover$1((
|
|
831
|
+
return new Hover$1(( info.contents.map(MarkdownString.to)), Range.to(info.range));
|
|
838
832
|
}
|
|
839
833
|
Hover.to = to;
|
|
840
|
-
})(Hover || (Hover = {})))
|
|
834
|
+
})(Hover || (Hover = {})));
|
|
841
835
|
var EvaluatableExpression;
|
|
842
|
-
( (
|
|
836
|
+
( (function(EvaluatableExpression) {
|
|
843
837
|
function from(expression) {
|
|
844
838
|
return {
|
|
845
839
|
range: Range.from(expression.range),
|
|
@@ -851,9 +845,9 @@ var EvaluatableExpression;
|
|
|
851
845
|
return new EvaluatableExpression$1(Range.to(info.range), info.expression);
|
|
852
846
|
}
|
|
853
847
|
EvaluatableExpression.to = to;
|
|
854
|
-
})(EvaluatableExpression || (EvaluatableExpression = {})))
|
|
848
|
+
})(EvaluatableExpression || (EvaluatableExpression = {})));
|
|
855
849
|
var InlineValue;
|
|
856
|
-
( (
|
|
850
|
+
( (function(InlineValue) {
|
|
857
851
|
function from(inlineValue) {
|
|
858
852
|
if (inlineValue instanceof InlineValueText) {
|
|
859
853
|
return {
|
|
@@ -903,9 +897,9 @@ var InlineValue;
|
|
|
903
897
|
}
|
|
904
898
|
}
|
|
905
899
|
InlineValue.to = to;
|
|
906
|
-
})(InlineValue || (InlineValue = {})))
|
|
900
|
+
})(InlineValue || (InlineValue = {})));
|
|
907
901
|
var InlineValueContext;
|
|
908
|
-
( (
|
|
902
|
+
( (function(InlineValueContext) {
|
|
909
903
|
function from(inlineValueContext) {
|
|
910
904
|
return {
|
|
911
905
|
frameId: inlineValueContext.frameId,
|
|
@@ -917,9 +911,9 @@ var InlineValueContext;
|
|
|
917
911
|
return new InlineValueContext$1(inlineValueContext.frameId, Range.to(inlineValueContext.stoppedLocation));
|
|
918
912
|
}
|
|
919
913
|
InlineValueContext.to = to;
|
|
920
|
-
})(InlineValueContext || (InlineValueContext = {})))
|
|
914
|
+
})(InlineValueContext || (InlineValueContext = {})));
|
|
921
915
|
var DocumentHighlight;
|
|
922
|
-
( (
|
|
916
|
+
( (function(DocumentHighlight) {
|
|
923
917
|
function from(documentHighlight) {
|
|
924
918
|
return {
|
|
925
919
|
range: Range.from(documentHighlight.range),
|
|
@@ -931,9 +925,9 @@ var DocumentHighlight;
|
|
|
931
925
|
return new DocumentHighlight$1(Range.to(occurrence.range), occurrence.kind);
|
|
932
926
|
}
|
|
933
927
|
DocumentHighlight.to = to;
|
|
934
|
-
})(DocumentHighlight || (DocumentHighlight = {})))
|
|
928
|
+
})(DocumentHighlight || (DocumentHighlight = {})));
|
|
935
929
|
var CompletionTriggerKind;
|
|
936
|
-
( (
|
|
930
|
+
( (function(CompletionTriggerKind) {
|
|
937
931
|
function to(kind) {
|
|
938
932
|
switch (kind) {
|
|
939
933
|
case 1 :
|
|
@@ -946,9 +940,9 @@ var CompletionTriggerKind;
|
|
|
946
940
|
}
|
|
947
941
|
}
|
|
948
942
|
CompletionTriggerKind.to = to;
|
|
949
|
-
})(CompletionTriggerKind || (CompletionTriggerKind = {})))
|
|
943
|
+
})(CompletionTriggerKind || (CompletionTriggerKind = {})));
|
|
950
944
|
var CompletionContext;
|
|
951
|
-
( (
|
|
945
|
+
( (function(CompletionContext) {
|
|
952
946
|
function to(context) {
|
|
953
947
|
return {
|
|
954
948
|
triggerKind: CompletionTriggerKind.to(context.triggerKind),
|
|
@@ -956,9 +950,9 @@ var CompletionContext;
|
|
|
956
950
|
};
|
|
957
951
|
}
|
|
958
952
|
CompletionContext.to = to;
|
|
959
|
-
})(CompletionContext || (CompletionContext = {})))
|
|
953
|
+
})(CompletionContext || (CompletionContext = {})));
|
|
960
954
|
var CompletionItemTag;
|
|
961
|
-
( (
|
|
955
|
+
( (function(CompletionItemTag) {
|
|
962
956
|
function from(kind) {
|
|
963
957
|
switch (kind) {
|
|
964
958
|
case CompletionItemTag$1.Deprecated: return 1 ;
|
|
@@ -971,10 +965,10 @@ var CompletionItemTag;
|
|
|
971
965
|
}
|
|
972
966
|
}
|
|
973
967
|
CompletionItemTag.to = to;
|
|
974
|
-
})(CompletionItemTag || (CompletionItemTag = {})))
|
|
968
|
+
})(CompletionItemTag || (CompletionItemTag = {})));
|
|
975
969
|
var CompletionItemKind;
|
|
976
|
-
( (
|
|
977
|
-
const _from = (
|
|
970
|
+
( (function(CompletionItemKind) {
|
|
971
|
+
const _from = ( new Map([
|
|
978
972
|
[CompletionItemKind$1.Method, 0 ],
|
|
979
973
|
[CompletionItemKind$1.Function, 1 ],
|
|
980
974
|
[CompletionItemKind$1.Constructor, 2 ],
|
|
@@ -1002,12 +996,12 @@ var CompletionItemKind;
|
|
|
1002
996
|
[CompletionItemKind$1.TypeParameter, 24 ],
|
|
1003
997
|
[CompletionItemKind$1.Issue, 26 ],
|
|
1004
998
|
[CompletionItemKind$1.User, 25 ],
|
|
1005
|
-
]))
|
|
999
|
+
]));
|
|
1006
1000
|
function from(kind) {
|
|
1007
1001
|
return _from.get(kind) ?? 9 ;
|
|
1008
1002
|
}
|
|
1009
1003
|
CompletionItemKind.from = from;
|
|
1010
|
-
const _to = (
|
|
1004
|
+
const _to = ( new Map([
|
|
1011
1005
|
[0 , CompletionItemKind$1.Method],
|
|
1012
1006
|
[1 , CompletionItemKind$1.Function],
|
|
1013
1007
|
[2 , CompletionItemKind$1.Constructor],
|
|
@@ -1035,14 +1029,14 @@ var CompletionItemKind;
|
|
|
1035
1029
|
[24 , CompletionItemKind$1.TypeParameter],
|
|
1036
1030
|
[25 , CompletionItemKind$1.User],
|
|
1037
1031
|
[26 , CompletionItemKind$1.Issue],
|
|
1038
|
-
]))
|
|
1032
|
+
]));
|
|
1039
1033
|
function to(kind) {
|
|
1040
1034
|
return _to.get(kind) ?? CompletionItemKind$1.Property;
|
|
1041
1035
|
}
|
|
1042
1036
|
CompletionItemKind.to = to;
|
|
1043
|
-
})(CompletionItemKind || (CompletionItemKind = {})))
|
|
1037
|
+
})(CompletionItemKind || (CompletionItemKind = {})));
|
|
1044
1038
|
var CompletionItem;
|
|
1045
|
-
( (
|
|
1039
|
+
( (function(CompletionItem) {
|
|
1046
1040
|
function to(suggestion, converter) {
|
|
1047
1041
|
const result = new CompletionItem$1(suggestion.label);
|
|
1048
1042
|
result.insertText = suggestion.insertText;
|
|
@@ -1069,15 +1063,15 @@ var CompletionItem;
|
|
|
1069
1063
|
result.textEdit = result.range instanceof Range$1 ? new TextEdit$1(result.range, result.insertText) : undefined;
|
|
1070
1064
|
}
|
|
1071
1065
|
if (suggestion.additionalTextEdits && suggestion.additionalTextEdits.length > 0) {
|
|
1072
|
-
result.additionalTextEdits = (
|
|
1066
|
+
result.additionalTextEdits = ( suggestion.additionalTextEdits.map(e => TextEdit.to(e)));
|
|
1073
1067
|
}
|
|
1074
1068
|
result.command = converter && suggestion.command ? converter.fromInternal(suggestion.command) : undefined;
|
|
1075
1069
|
return result;
|
|
1076
1070
|
}
|
|
1077
1071
|
CompletionItem.to = to;
|
|
1078
|
-
})(CompletionItem || (CompletionItem = {})))
|
|
1072
|
+
})(CompletionItem || (CompletionItem = {})));
|
|
1079
1073
|
var ParameterInformation;
|
|
1080
|
-
( (
|
|
1074
|
+
( (function(ParameterInformation) {
|
|
1081
1075
|
function from(info) {
|
|
1082
1076
|
if (typeof info.label !== 'string' && !Array.isArray(info.label)) {
|
|
1083
1077
|
throw new TypeError('Invalid label');
|
|
@@ -1095,14 +1089,14 @@ var ParameterInformation;
|
|
|
1095
1089
|
};
|
|
1096
1090
|
}
|
|
1097
1091
|
ParameterInformation.to = to;
|
|
1098
|
-
})(ParameterInformation || (ParameterInformation = {})))
|
|
1092
|
+
})(ParameterInformation || (ParameterInformation = {})));
|
|
1099
1093
|
var SignatureInformation;
|
|
1100
|
-
( (
|
|
1094
|
+
( (function(SignatureInformation) {
|
|
1101
1095
|
function from(info) {
|
|
1102
1096
|
return {
|
|
1103
1097
|
label: info.label,
|
|
1104
1098
|
documentation: MarkdownString.fromStrict(info.documentation),
|
|
1105
|
-
parameters: Array.isArray(info.parameters) ? (
|
|
1099
|
+
parameters: Array.isArray(info.parameters) ? ( info.parameters.map(ParameterInformation.from)) : [],
|
|
1106
1100
|
activeParameter: info.activeParameter,
|
|
1107
1101
|
};
|
|
1108
1102
|
}
|
|
@@ -1111,19 +1105,19 @@ var SignatureInformation;
|
|
|
1111
1105
|
return {
|
|
1112
1106
|
label: info.label,
|
|
1113
1107
|
documentation: htmlContent.isMarkdownString(info.documentation) ? MarkdownString.to(info.documentation) : info.documentation,
|
|
1114
|
-
parameters: Array.isArray(info.parameters) ? (
|
|
1108
|
+
parameters: Array.isArray(info.parameters) ? ( info.parameters.map(ParameterInformation.to)) : [],
|
|
1115
1109
|
activeParameter: info.activeParameter,
|
|
1116
1110
|
};
|
|
1117
1111
|
}
|
|
1118
1112
|
SignatureInformation.to = to;
|
|
1119
|
-
})(SignatureInformation || (SignatureInformation = {})))
|
|
1113
|
+
})(SignatureInformation || (SignatureInformation = {})));
|
|
1120
1114
|
var SignatureHelp;
|
|
1121
|
-
( (
|
|
1115
|
+
( (function(SignatureHelp) {
|
|
1122
1116
|
function from(help) {
|
|
1123
1117
|
return {
|
|
1124
1118
|
activeSignature: help.activeSignature,
|
|
1125
1119
|
activeParameter: help.activeParameter,
|
|
1126
|
-
signatures: Array.isArray(help.signatures) ? (
|
|
1120
|
+
signatures: Array.isArray(help.signatures) ? ( help.signatures.map(SignatureInformation.from)) : [],
|
|
1127
1121
|
};
|
|
1128
1122
|
}
|
|
1129
1123
|
SignatureHelp.from = from;
|
|
@@ -1131,25 +1125,25 @@ var SignatureHelp;
|
|
|
1131
1125
|
return {
|
|
1132
1126
|
activeSignature: help.activeSignature,
|
|
1133
1127
|
activeParameter: help.activeParameter,
|
|
1134
|
-
signatures: Array.isArray(help.signatures) ? (
|
|
1128
|
+
signatures: Array.isArray(help.signatures) ? ( help.signatures.map(SignatureInformation.to)) : [],
|
|
1135
1129
|
};
|
|
1136
1130
|
}
|
|
1137
1131
|
SignatureHelp.to = to;
|
|
1138
|
-
})(SignatureHelp || (SignatureHelp = {})))
|
|
1132
|
+
})(SignatureHelp || (SignatureHelp = {})));
|
|
1139
1133
|
var InlayHint;
|
|
1140
|
-
( (
|
|
1134
|
+
( (function(InlayHint) {
|
|
1141
1135
|
function to(converter, hint) {
|
|
1142
|
-
const res = new InlayHint$1(Position.to(hint.position), typeof hint.label === 'string' ? hint.label : (
|
|
1143
|
-
res.textEdits = hint.textEdits && (
|
|
1136
|
+
const res = new InlayHint$1(Position.to(hint.position), typeof hint.label === 'string' ? hint.label : ( hint.label.map(InlayHintLabelPart.to.bind(undefined, converter))), hint.kind && InlayHintKind.to(hint.kind));
|
|
1137
|
+
res.textEdits = hint.textEdits && ( hint.textEdits.map(TextEdit.to));
|
|
1144
1138
|
res.tooltip = htmlContent.isMarkdownString(hint.tooltip) ? MarkdownString.to(hint.tooltip) : hint.tooltip;
|
|
1145
1139
|
res.paddingLeft = hint.paddingLeft;
|
|
1146
1140
|
res.paddingRight = hint.paddingRight;
|
|
1147
1141
|
return res;
|
|
1148
1142
|
}
|
|
1149
1143
|
InlayHint.to = to;
|
|
1150
|
-
})(InlayHint || (InlayHint = {})))
|
|
1144
|
+
})(InlayHint || (InlayHint = {})));
|
|
1151
1145
|
var InlayHintLabelPart;
|
|
1152
|
-
( (
|
|
1146
|
+
( (function(InlayHintLabelPart) {
|
|
1153
1147
|
function to(converter, part) {
|
|
1154
1148
|
const result = new InlayHintLabelPart$1(part.label);
|
|
1155
1149
|
result.tooltip = htmlContent.isMarkdownString(part.tooltip)
|
|
@@ -1164,9 +1158,9 @@ var InlayHintLabelPart;
|
|
|
1164
1158
|
return result;
|
|
1165
1159
|
}
|
|
1166
1160
|
InlayHintLabelPart.to = to;
|
|
1167
|
-
})(InlayHintLabelPart || (InlayHintLabelPart = {})))
|
|
1161
|
+
})(InlayHintLabelPart || (InlayHintLabelPart = {})));
|
|
1168
1162
|
var InlayHintKind;
|
|
1169
|
-
( (
|
|
1163
|
+
( (function(InlayHintKind) {
|
|
1170
1164
|
function from(kind) {
|
|
1171
1165
|
return kind;
|
|
1172
1166
|
}
|
|
@@ -1175,9 +1169,9 @@ var InlayHintKind;
|
|
|
1175
1169
|
return kind;
|
|
1176
1170
|
}
|
|
1177
1171
|
InlayHintKind.to = to;
|
|
1178
|
-
})(InlayHintKind || (InlayHintKind = {})))
|
|
1172
|
+
})(InlayHintKind || (InlayHintKind = {})));
|
|
1179
1173
|
var DocumentLink;
|
|
1180
|
-
( (
|
|
1174
|
+
( (function(DocumentLink) {
|
|
1181
1175
|
function from(link) {
|
|
1182
1176
|
return {
|
|
1183
1177
|
range: Range.from(link.range),
|
|
@@ -1190,7 +1184,7 @@ var DocumentLink;
|
|
|
1190
1184
|
let target = undefined;
|
|
1191
1185
|
if (link.url) {
|
|
1192
1186
|
try {
|
|
1193
|
-
target = typeof link.url === 'string' ? (
|
|
1187
|
+
target = typeof link.url === 'string' ? ( URI.parse(link.url, true)) : URI.revive(link.url);
|
|
1194
1188
|
}
|
|
1195
1189
|
catch (err) {
|
|
1196
1190
|
}
|
|
@@ -1198,16 +1192,16 @@ var DocumentLink;
|
|
|
1198
1192
|
return new DocumentLink$1(Range.to(link.range), target);
|
|
1199
1193
|
}
|
|
1200
1194
|
DocumentLink.to = to;
|
|
1201
|
-
})(DocumentLink || (DocumentLink = {})))
|
|
1195
|
+
})(DocumentLink || (DocumentLink = {})));
|
|
1202
1196
|
var ColorPresentation;
|
|
1203
|
-
( (
|
|
1197
|
+
( (function(ColorPresentation) {
|
|
1204
1198
|
function to(colorPresentation) {
|
|
1205
1199
|
const cp = new ColorPresentation$1(colorPresentation.label);
|
|
1206
1200
|
if (colorPresentation.textEdit) {
|
|
1207
1201
|
cp.textEdit = TextEdit.to(colorPresentation.textEdit);
|
|
1208
1202
|
}
|
|
1209
1203
|
if (colorPresentation.additionalTextEdits) {
|
|
1210
|
-
cp.additionalTextEdits = (
|
|
1204
|
+
cp.additionalTextEdits = ( colorPresentation.additionalTextEdits.map(value => TextEdit.to(value)));
|
|
1211
1205
|
}
|
|
1212
1206
|
return cp;
|
|
1213
1207
|
}
|
|
@@ -1216,13 +1210,13 @@ var ColorPresentation;
|
|
|
1216
1210
|
return {
|
|
1217
1211
|
label: colorPresentation.label,
|
|
1218
1212
|
textEdit: colorPresentation.textEdit ? TextEdit.from(colorPresentation.textEdit) : undefined,
|
|
1219
|
-
additionalTextEdits: colorPresentation.additionalTextEdits ? (
|
|
1213
|
+
additionalTextEdits: colorPresentation.additionalTextEdits ? ( colorPresentation.additionalTextEdits.map(value => TextEdit.from(value))) : undefined
|
|
1220
1214
|
};
|
|
1221
1215
|
}
|
|
1222
1216
|
ColorPresentation.from = from;
|
|
1223
|
-
})(ColorPresentation || (ColorPresentation = {})))
|
|
1217
|
+
})(ColorPresentation || (ColorPresentation = {})));
|
|
1224
1218
|
var Color;
|
|
1225
|
-
( (
|
|
1219
|
+
( (function(Color) {
|
|
1226
1220
|
function to(c) {
|
|
1227
1221
|
return new Color$1(c[0], c[1], c[2], c[3]);
|
|
1228
1222
|
}
|
|
@@ -1231,9 +1225,9 @@ var Color;
|
|
|
1231
1225
|
return [color.red, color.green, color.blue, color.alpha];
|
|
1232
1226
|
}
|
|
1233
1227
|
Color.from = from;
|
|
1234
|
-
})(Color || (Color = {})))
|
|
1228
|
+
})(Color || (Color = {})));
|
|
1235
1229
|
var SelectionRange;
|
|
1236
|
-
( (
|
|
1230
|
+
( (function(SelectionRange) {
|
|
1237
1231
|
function from(obj) {
|
|
1238
1232
|
return { range: Range.from(obj.range) };
|
|
1239
1233
|
}
|
|
@@ -1242,9 +1236,9 @@ var SelectionRange;
|
|
|
1242
1236
|
return new SelectionRange$1(Range.to(obj.range));
|
|
1243
1237
|
}
|
|
1244
1238
|
SelectionRange.to = to;
|
|
1245
|
-
})(SelectionRange || (SelectionRange = {})))
|
|
1239
|
+
})(SelectionRange || (SelectionRange = {})));
|
|
1246
1240
|
var TextDocumentSaveReason;
|
|
1247
|
-
( (
|
|
1241
|
+
( (function(TextDocumentSaveReason) {
|
|
1248
1242
|
function to(reason) {
|
|
1249
1243
|
switch (reason) {
|
|
1250
1244
|
case 2 :
|
|
@@ -1257,9 +1251,9 @@ var TextDocumentSaveReason;
|
|
|
1257
1251
|
}
|
|
1258
1252
|
}
|
|
1259
1253
|
TextDocumentSaveReason.to = to;
|
|
1260
|
-
})(TextDocumentSaveReason || (TextDocumentSaveReason = {})))
|
|
1254
|
+
})(TextDocumentSaveReason || (TextDocumentSaveReason = {})));
|
|
1261
1255
|
var TextEditorLineNumbersStyle;
|
|
1262
|
-
( (
|
|
1256
|
+
( (function(TextEditorLineNumbersStyle) {
|
|
1263
1257
|
function from(style) {
|
|
1264
1258
|
switch (style) {
|
|
1265
1259
|
case TextEditorLineNumbersStyle$1.Off:
|
|
@@ -1284,9 +1278,9 @@ var TextEditorLineNumbersStyle;
|
|
|
1284
1278
|
}
|
|
1285
1279
|
}
|
|
1286
1280
|
TextEditorLineNumbersStyle.to = to;
|
|
1287
|
-
})(TextEditorLineNumbersStyle || (TextEditorLineNumbersStyle = {})))
|
|
1281
|
+
})(TextEditorLineNumbersStyle || (TextEditorLineNumbersStyle = {})));
|
|
1288
1282
|
var EndOfLine;
|
|
1289
|
-
( (
|
|
1283
|
+
( (function(EndOfLine) {
|
|
1290
1284
|
function from(eol) {
|
|
1291
1285
|
if (eol === EndOfLine$1.CRLF) {
|
|
1292
1286
|
return 1 ;
|
|
@@ -1307,9 +1301,9 @@ var EndOfLine;
|
|
|
1307
1301
|
return undefined;
|
|
1308
1302
|
}
|
|
1309
1303
|
EndOfLine.to = to;
|
|
1310
|
-
})(EndOfLine || (EndOfLine = {})))
|
|
1304
|
+
})(EndOfLine || (EndOfLine = {})));
|
|
1311
1305
|
var ProgressLocation;
|
|
1312
|
-
( (
|
|
1306
|
+
( (function(ProgressLocation) {
|
|
1313
1307
|
function from(loc) {
|
|
1314
1308
|
if (typeof loc === 'object') {
|
|
1315
1309
|
return loc.viewId;
|
|
@@ -1322,9 +1316,9 @@ var ProgressLocation;
|
|
|
1322
1316
|
throw new Error(`Unknown 'ProgressLocation'`);
|
|
1323
1317
|
}
|
|
1324
1318
|
ProgressLocation.from = from;
|
|
1325
|
-
})(ProgressLocation || (ProgressLocation = {})))
|
|
1319
|
+
})(ProgressLocation || (ProgressLocation = {})));
|
|
1326
1320
|
var FoldingRange;
|
|
1327
|
-
( (
|
|
1321
|
+
( (function(FoldingRange) {
|
|
1328
1322
|
function from(r) {
|
|
1329
1323
|
const range = { start: r.start + 1, end: r.end + 1 };
|
|
1330
1324
|
if (r.kind) {
|
|
@@ -1341,9 +1335,9 @@ var FoldingRange;
|
|
|
1341
1335
|
return range;
|
|
1342
1336
|
}
|
|
1343
1337
|
FoldingRange.to = to;
|
|
1344
|
-
})(FoldingRange || (FoldingRange = {})))
|
|
1338
|
+
})(FoldingRange || (FoldingRange = {})));
|
|
1345
1339
|
var FoldingRangeKind;
|
|
1346
|
-
( (
|
|
1340
|
+
( (function(FoldingRangeKind) {
|
|
1347
1341
|
function from(kind) {
|
|
1348
1342
|
if (kind) {
|
|
1349
1343
|
switch (kind) {
|
|
@@ -1372,9 +1366,9 @@ var FoldingRangeKind;
|
|
|
1372
1366
|
return undefined;
|
|
1373
1367
|
}
|
|
1374
1368
|
FoldingRangeKind.to = to;
|
|
1375
|
-
})(FoldingRangeKind || (FoldingRangeKind = {})))
|
|
1369
|
+
})(FoldingRangeKind || (FoldingRangeKind = {})));
|
|
1376
1370
|
var TextEditorOpenOptions;
|
|
1377
|
-
( (
|
|
1371
|
+
( (function(TextEditorOpenOptions) {
|
|
1378
1372
|
function from(options) {
|
|
1379
1373
|
if (options) {
|
|
1380
1374
|
return {
|
|
@@ -1388,9 +1382,9 @@ var TextEditorOpenOptions;
|
|
|
1388
1382
|
return undefined;
|
|
1389
1383
|
}
|
|
1390
1384
|
TextEditorOpenOptions.from = from;
|
|
1391
|
-
})(TextEditorOpenOptions || (TextEditorOpenOptions = {})))
|
|
1385
|
+
})(TextEditorOpenOptions || (TextEditorOpenOptions = {})));
|
|
1392
1386
|
var GlobPattern;
|
|
1393
|
-
( (
|
|
1387
|
+
( (function(GlobPattern) {
|
|
1394
1388
|
function from(pattern) {
|
|
1395
1389
|
if (pattern instanceof RelativePattern) {
|
|
1396
1390
|
return pattern.toJSON();
|
|
@@ -1425,17 +1419,15 @@ var GlobPattern;
|
|
|
1425
1419
|
return new RelativePattern(URI.revive(pattern.baseUri), pattern.pattern);
|
|
1426
1420
|
}
|
|
1427
1421
|
GlobPattern.to = to;
|
|
1428
|
-
})(GlobPattern || (GlobPattern = {})))
|
|
1422
|
+
})(GlobPattern || (GlobPattern = {})));
|
|
1429
1423
|
var LanguageSelector;
|
|
1430
|
-
( (
|
|
1424
|
+
( (function(LanguageSelector) {
|
|
1431
1425
|
function from(selector) {
|
|
1432
1426
|
if (!selector) {
|
|
1433
1427
|
return undefined;
|
|
1434
1428
|
}
|
|
1435
1429
|
else if (Array.isArray(selector)) {
|
|
1436
|
-
return (
|
|
1437
|
-
(selector.map(from))
|
|
1438
|
-
);
|
|
1430
|
+
return ( selector.map(from));
|
|
1439
1431
|
}
|
|
1440
1432
|
else if (typeof selector === 'string') {
|
|
1441
1433
|
return selector;
|
|
@@ -1452,9 +1444,9 @@ var LanguageSelector;
|
|
|
1452
1444
|
}
|
|
1453
1445
|
}
|
|
1454
1446
|
LanguageSelector.from = from;
|
|
1455
|
-
})(LanguageSelector || (LanguageSelector = {})))
|
|
1447
|
+
})(LanguageSelector || (LanguageSelector = {})));
|
|
1456
1448
|
var MappedEditsContext;
|
|
1457
|
-
( (
|
|
1449
|
+
( (function(MappedEditsContext) {
|
|
1458
1450
|
function is(v) {
|
|
1459
1451
|
return (!!v && typeof v === 'object' &&
|
|
1460
1452
|
'documents' in v &&
|
|
@@ -1468,17 +1460,17 @@ var MappedEditsContext;
|
|
|
1468
1460
|
MappedEditsContext.is = is;
|
|
1469
1461
|
function from(extContext) {
|
|
1470
1462
|
return {
|
|
1471
|
-
documents: (
|
|
1472
|
-
uri: (
|
|
1463
|
+
documents: ( extContext.documents.map((subArray) => ( subArray.map((r) => ({
|
|
1464
|
+
uri: ( URI.from(r.uri)),
|
|
1473
1465
|
version: r.version,
|
|
1474
|
-
ranges: (
|
|
1475
|
-
})))))
|
|
1466
|
+
ranges: ( r.ranges.map((r) => Range.from(r))),
|
|
1467
|
+
}))))),
|
|
1476
1468
|
};
|
|
1477
1469
|
}
|
|
1478
1470
|
MappedEditsContext.from = from;
|
|
1479
|
-
})(MappedEditsContext || (MappedEditsContext = {})))
|
|
1471
|
+
})(MappedEditsContext || (MappedEditsContext = {})));
|
|
1480
1472
|
var NotebookRange;
|
|
1481
|
-
( (
|
|
1473
|
+
( (function(NotebookRange) {
|
|
1482
1474
|
function from(range) {
|
|
1483
1475
|
return { start: range.start, end: range.end };
|
|
1484
1476
|
}
|
|
@@ -1487,9 +1479,9 @@ var NotebookRange;
|
|
|
1487
1479
|
return new NotebookRange$1(range.start, range.end);
|
|
1488
1480
|
}
|
|
1489
1481
|
NotebookRange.to = to;
|
|
1490
|
-
})(NotebookRange || (NotebookRange = {})))
|
|
1482
|
+
})(NotebookRange || (NotebookRange = {})));
|
|
1491
1483
|
var NotebookCellExecutionSummary;
|
|
1492
|
-
( (
|
|
1484
|
+
( (function(NotebookCellExecutionSummary) {
|
|
1493
1485
|
function to(data) {
|
|
1494
1486
|
return {
|
|
1495
1487
|
timing: typeof data.runStartTime === 'number' && typeof data.runEndTime === 'number' ? { startTime: data.runStartTime, endTime: data.runEndTime } : undefined,
|
|
@@ -1507,9 +1499,9 @@ var NotebookCellExecutionSummary;
|
|
|
1507
1499
|
};
|
|
1508
1500
|
}
|
|
1509
1501
|
NotebookCellExecutionSummary.from = from;
|
|
1510
|
-
})(NotebookCellExecutionSummary || (NotebookCellExecutionSummary = {})))
|
|
1502
|
+
})(NotebookCellExecutionSummary || (NotebookCellExecutionSummary = {})));
|
|
1511
1503
|
var NotebookCellExecutionState;
|
|
1512
|
-
( (
|
|
1504
|
+
( (function(NotebookCellExecutionState) {
|
|
1513
1505
|
function to(state) {
|
|
1514
1506
|
if (state === NotebookCellExecutionState$1.Unconfirmed) {
|
|
1515
1507
|
return NotebookCellExecutionState$2.Pending;
|
|
@@ -1525,9 +1517,9 @@ var NotebookCellExecutionState;
|
|
|
1525
1517
|
}
|
|
1526
1518
|
}
|
|
1527
1519
|
NotebookCellExecutionState.to = to;
|
|
1528
|
-
})(NotebookCellExecutionState || (NotebookCellExecutionState = {})))
|
|
1520
|
+
})(NotebookCellExecutionState || (NotebookCellExecutionState = {})));
|
|
1529
1521
|
var NotebookCellKind;
|
|
1530
|
-
( (
|
|
1522
|
+
( (function(NotebookCellKind) {
|
|
1531
1523
|
function from(data) {
|
|
1532
1524
|
switch (data) {
|
|
1533
1525
|
case NotebookCellKind$1.Markup:
|
|
@@ -1548,9 +1540,9 @@ var NotebookCellKind;
|
|
|
1548
1540
|
}
|
|
1549
1541
|
}
|
|
1550
1542
|
NotebookCellKind.to = to;
|
|
1551
|
-
})(NotebookCellKind || (NotebookCellKind = {})))
|
|
1543
|
+
})(NotebookCellKind || (NotebookCellKind = {})));
|
|
1552
1544
|
var NotebookData;
|
|
1553
|
-
( (
|
|
1545
|
+
( (function(NotebookData) {
|
|
1554
1546
|
function from(data) {
|
|
1555
1547
|
const res = {
|
|
1556
1548
|
metadata: data.metadata ?? Object.create(null),
|
|
@@ -1564,16 +1556,16 @@ var NotebookData;
|
|
|
1564
1556
|
}
|
|
1565
1557
|
NotebookData.from = from;
|
|
1566
1558
|
function to(data) {
|
|
1567
|
-
const res = new NotebookData$1((
|
|
1559
|
+
const res = new NotebookData$1(( data.cells.map(NotebookCellData.to)));
|
|
1568
1560
|
if (!isEmptyObject(data.metadata)) {
|
|
1569
1561
|
res.metadata = data.metadata;
|
|
1570
1562
|
}
|
|
1571
1563
|
return res;
|
|
1572
1564
|
}
|
|
1573
1565
|
NotebookData.to = to;
|
|
1574
|
-
})(NotebookData || (NotebookData = {})))
|
|
1566
|
+
})(NotebookData || (NotebookData = {})));
|
|
1575
1567
|
var NotebookCellData;
|
|
1576
|
-
( (
|
|
1568
|
+
( (function(NotebookCellData) {
|
|
1577
1569
|
function from(data) {
|
|
1578
1570
|
return {
|
|
1579
1571
|
cellKind: NotebookCellKind.from(data.kind),
|
|
@@ -1582,17 +1574,17 @@ var NotebookCellData;
|
|
|
1582
1574
|
source: data.value,
|
|
1583
1575
|
metadata: data.metadata,
|
|
1584
1576
|
internalMetadata: NotebookCellExecutionSummary.from(data.executionSummary ?? {}),
|
|
1585
|
-
outputs: data.outputs ? (
|
|
1577
|
+
outputs: data.outputs ? ( data.outputs.map(NotebookCellOutput.from)) : []
|
|
1586
1578
|
};
|
|
1587
1579
|
}
|
|
1588
1580
|
NotebookCellData.from = from;
|
|
1589
1581
|
function to(data) {
|
|
1590
|
-
return new NotebookCellData$1(NotebookCellKind.to(data.cellKind), data.source, data.language, data.mime, data.outputs ? (
|
|
1582
|
+
return new NotebookCellData$1(NotebookCellKind.to(data.cellKind), data.source, data.language, data.mime, data.outputs ? ( data.outputs.map(NotebookCellOutput.to)) : undefined, data.metadata, data.internalMetadata ? NotebookCellExecutionSummary.to(data.internalMetadata) : undefined);
|
|
1591
1583
|
}
|
|
1592
1584
|
NotebookCellData.to = to;
|
|
1593
|
-
})(NotebookCellData || (NotebookCellData = {})))
|
|
1585
|
+
})(NotebookCellData || (NotebookCellData = {})));
|
|
1594
1586
|
var NotebookCellOutputItem;
|
|
1595
|
-
( (
|
|
1587
|
+
( (function(NotebookCellOutputItem) {
|
|
1596
1588
|
function from(item) {
|
|
1597
1589
|
return {
|
|
1598
1590
|
mime: item.mime,
|
|
@@ -1604,25 +1596,25 @@ var NotebookCellOutputItem;
|
|
|
1604
1596
|
return new NotebookCellOutputItem$1(item.valueBytes.buffer, item.mime);
|
|
1605
1597
|
}
|
|
1606
1598
|
NotebookCellOutputItem.to = to;
|
|
1607
|
-
})(NotebookCellOutputItem || (NotebookCellOutputItem = {})))
|
|
1599
|
+
})(NotebookCellOutputItem || (NotebookCellOutputItem = {})));
|
|
1608
1600
|
var NotebookCellOutput;
|
|
1609
|
-
( (
|
|
1601
|
+
( (function(NotebookCellOutput) {
|
|
1610
1602
|
function from(output) {
|
|
1611
1603
|
return {
|
|
1612
1604
|
outputId: output.id,
|
|
1613
|
-
items: (
|
|
1605
|
+
items: ( output.items.map(NotebookCellOutputItem.from)),
|
|
1614
1606
|
metadata: output.metadata
|
|
1615
1607
|
};
|
|
1616
1608
|
}
|
|
1617
1609
|
NotebookCellOutput.from = from;
|
|
1618
1610
|
function to(output) {
|
|
1619
|
-
const items = (
|
|
1611
|
+
const items = ( output.items.map(NotebookCellOutputItem.to));
|
|
1620
1612
|
return new NotebookCellOutput$1(items, output.outputId, output.metadata);
|
|
1621
1613
|
}
|
|
1622
1614
|
NotebookCellOutput.to = to;
|
|
1623
|
-
})(NotebookCellOutput || (NotebookCellOutput = {})))
|
|
1615
|
+
})(NotebookCellOutput || (NotebookCellOutput = {})));
|
|
1624
1616
|
var NotebookExclusiveDocumentPattern;
|
|
1625
|
-
( (
|
|
1617
|
+
( (function(NotebookExclusiveDocumentPattern) {
|
|
1626
1618
|
function from(pattern) {
|
|
1627
1619
|
if (isExclusivePattern(pattern)) {
|
|
1628
1620
|
return {
|
|
@@ -1652,9 +1644,9 @@ var NotebookExclusiveDocumentPattern;
|
|
|
1652
1644
|
}
|
|
1653
1645
|
})(
|
|
1654
1646
|
NotebookExclusiveDocumentPattern || (NotebookExclusiveDocumentPattern = {})
|
|
1655
|
-
))
|
|
1647
|
+
));
|
|
1656
1648
|
var NotebookStatusBarItem;
|
|
1657
|
-
( (
|
|
1649
|
+
( (function(NotebookStatusBarItem) {
|
|
1658
1650
|
function from(item, commandsConverter, disposables) {
|
|
1659
1651
|
const command = typeof item.command === 'string' ? { title: '', command: item.command } : item.command;
|
|
1660
1652
|
return {
|
|
@@ -1667,9 +1659,9 @@ var NotebookStatusBarItem;
|
|
|
1667
1659
|
};
|
|
1668
1660
|
}
|
|
1669
1661
|
NotebookStatusBarItem.from = from;
|
|
1670
|
-
})(NotebookStatusBarItem || (NotebookStatusBarItem = {})))
|
|
1662
|
+
})(NotebookStatusBarItem || (NotebookStatusBarItem = {})));
|
|
1671
1663
|
var NotebookKernelSourceAction;
|
|
1672
|
-
( (
|
|
1664
|
+
( (function(NotebookKernelSourceAction) {
|
|
1673
1665
|
function from(item, commandsConverter, disposables) {
|
|
1674
1666
|
const command = typeof item.command === 'string' ? { title: '', command: item.command } : item.command;
|
|
1675
1667
|
return {
|
|
@@ -1681,9 +1673,9 @@ var NotebookKernelSourceAction;
|
|
|
1681
1673
|
};
|
|
1682
1674
|
}
|
|
1683
1675
|
NotebookKernelSourceAction.from = from;
|
|
1684
|
-
})(NotebookKernelSourceAction || (NotebookKernelSourceAction = {})))
|
|
1676
|
+
})(NotebookKernelSourceAction || (NotebookKernelSourceAction = {})));
|
|
1685
1677
|
var NotebookDocumentContentOptions;
|
|
1686
|
-
( (
|
|
1678
|
+
( (function(NotebookDocumentContentOptions) {
|
|
1687
1679
|
function from(options) {
|
|
1688
1680
|
return {
|
|
1689
1681
|
transientOutputs: options?.transientOutputs ?? false,
|
|
@@ -1693,9 +1685,9 @@ var NotebookDocumentContentOptions;
|
|
|
1693
1685
|
};
|
|
1694
1686
|
}
|
|
1695
1687
|
NotebookDocumentContentOptions.from = from;
|
|
1696
|
-
})(NotebookDocumentContentOptions || (NotebookDocumentContentOptions = {})))
|
|
1688
|
+
})(NotebookDocumentContentOptions || (NotebookDocumentContentOptions = {})));
|
|
1697
1689
|
var NotebookRendererScript;
|
|
1698
|
-
( (
|
|
1690
|
+
( (function(NotebookRendererScript) {
|
|
1699
1691
|
function from(preload) {
|
|
1700
1692
|
return {
|
|
1701
1693
|
uri: preload.uri,
|
|
@@ -1707,9 +1699,9 @@ var NotebookRendererScript;
|
|
|
1707
1699
|
return new NotebookRendererScript$1(URI.revive(preload.uri), preload.provides);
|
|
1708
1700
|
}
|
|
1709
1701
|
NotebookRendererScript.to = to;
|
|
1710
|
-
})(NotebookRendererScript || (NotebookRendererScript = {})))
|
|
1702
|
+
})(NotebookRendererScript || (NotebookRendererScript = {})));
|
|
1711
1703
|
var TestMessage;
|
|
1712
|
-
( (
|
|
1704
|
+
( (function(TestMessage) {
|
|
1713
1705
|
function from(message) {
|
|
1714
1706
|
return {
|
|
1715
1707
|
message: MarkdownString.fromStrict(message.message) || '',
|
|
@@ -1730,22 +1722,22 @@ var TestMessage;
|
|
|
1730
1722
|
return message;
|
|
1731
1723
|
}
|
|
1732
1724
|
TestMessage.to = to;
|
|
1733
|
-
})(TestMessage || (TestMessage = {})))
|
|
1725
|
+
})(TestMessage || (TestMessage = {})));
|
|
1734
1726
|
var TestTag;
|
|
1735
|
-
( (
|
|
1727
|
+
( (function(TestTag) {
|
|
1736
1728
|
TestTag.namespace = namespaceTestTag;
|
|
1737
1729
|
TestTag.denamespace = denamespaceTestTag;
|
|
1738
|
-
})(TestTag || (TestTag = {})))
|
|
1730
|
+
})(TestTag || (TestTag = {})));
|
|
1739
1731
|
var TestItem;
|
|
1740
|
-
( (
|
|
1732
|
+
( (function(TestItem) {
|
|
1741
1733
|
function from(item) {
|
|
1742
1734
|
const ctrlId = getPrivateApiFor(item).controllerId;
|
|
1743
1735
|
return {
|
|
1744
|
-
extId: (
|
|
1736
|
+
extId: ( TestId.fromExtHostTestItem(item, ctrlId).toString()),
|
|
1745
1737
|
label: item.label,
|
|
1746
1738
|
uri: URI.revive(item.uri),
|
|
1747
1739
|
busy: item.busy,
|
|
1748
|
-
tags: (
|
|
1740
|
+
tags: ( item.tags.map(t => TestTag.namespace(ctrlId, t.id))),
|
|
1749
1741
|
range: editorRange.Range.lift(Range.from(item.range)),
|
|
1750
1742
|
description: item.description || null,
|
|
1751
1743
|
sortText: item.sortText || null,
|
|
@@ -1760,10 +1752,10 @@ var TestItem;
|
|
|
1760
1752
|
id: TestId.fromString(item.extId).localId,
|
|
1761
1753
|
label: item.label,
|
|
1762
1754
|
uri: URI.revive(item.uri),
|
|
1763
|
-
tags: ( (
|
|
1755
|
+
tags: ( (item.tags || []).map(t => {
|
|
1764
1756
|
const { tagId } = TestTag.denamespace(t);
|
|
1765
1757
|
return new TestTag$1(tagId);
|
|
1766
|
-
}))
|
|
1758
|
+
})),
|
|
1767
1759
|
children: {
|
|
1768
1760
|
add: () => { },
|
|
1769
1761
|
delete: () => { },
|
|
@@ -1781,8 +1773,8 @@ var TestItem;
|
|
|
1781
1773
|
};
|
|
1782
1774
|
}
|
|
1783
1775
|
TestItem.toPlain = toPlain;
|
|
1784
|
-
})(TestItem || (TestItem = {})))
|
|
1785
|
-
( (
|
|
1776
|
+
})(TestItem || (TestItem = {})));
|
|
1777
|
+
( (function(TestTag) {
|
|
1786
1778
|
function from(tag) {
|
|
1787
1779
|
return { id: tag.id };
|
|
1788
1780
|
}
|
|
@@ -1791,9 +1783,9 @@ var TestItem;
|
|
|
1791
1783
|
return new TestTag$1(tag.id);
|
|
1792
1784
|
}
|
|
1793
1785
|
TestTag.to = to;
|
|
1794
|
-
})(TestTag || (TestTag = {})))
|
|
1786
|
+
})(TestTag || (TestTag = {})));
|
|
1795
1787
|
var TestResults;
|
|
1796
|
-
( (
|
|
1788
|
+
( (function(TestResults) {
|
|
1797
1789
|
const convertTestResultItem = (item, byInternalId) => {
|
|
1798
1790
|
const children = [];
|
|
1799
1791
|
for (const [id, item] of byInternalId) {
|
|
@@ -1805,14 +1797,14 @@ var TestResults;
|
|
|
1805
1797
|
const snapshot = ({
|
|
1806
1798
|
...TestItem.toPlain(item.item),
|
|
1807
1799
|
parent: undefined,
|
|
1808
|
-
taskStates: (
|
|
1800
|
+
taskStates: ( item.tasks.map(t => ({
|
|
1809
1801
|
state: t.state,
|
|
1810
1802
|
duration: t.duration,
|
|
1811
|
-
messages: (
|
|
1803
|
+
messages: ( t.messages
|
|
1812
1804
|
.filter((m) => m.type === 0 )
|
|
1813
|
-
.map(TestMessage.to))
|
|
1814
|
-
})))
|
|
1815
|
-
children: (
|
|
1805
|
+
.map(TestMessage.to)),
|
|
1806
|
+
}))),
|
|
1807
|
+
children: ( children.map(c => convertTestResultItem(c, byInternalId)))
|
|
1816
1808
|
});
|
|
1817
1809
|
for (const child of snapshot.children) {
|
|
1818
1810
|
child.parent = snapshot;
|
|
@@ -1821,25 +1813,25 @@ var TestResults;
|
|
|
1821
1813
|
};
|
|
1822
1814
|
function to(serialized) {
|
|
1823
1815
|
const roots = [];
|
|
1824
|
-
const byInternalId = (
|
|
1816
|
+
const byInternalId = ( new Map());
|
|
1825
1817
|
for (const item of serialized.items) {
|
|
1826
1818
|
byInternalId.set(item.item.extId, item);
|
|
1827
1819
|
const controllerId = TestId.root(item.item.extId);
|
|
1828
|
-
if ((
|
|
1820
|
+
if (( serialized.request.targets.some(
|
|
1829
1821
|
t => t.controllerId === controllerId && t.testIds.includes(item.item.extId)
|
|
1830
|
-
)))
|
|
1822
|
+
))) {
|
|
1831
1823
|
roots.push(item);
|
|
1832
1824
|
}
|
|
1833
1825
|
}
|
|
1834
1826
|
return {
|
|
1835
1827
|
completedAt: serialized.completedAt,
|
|
1836
|
-
results: (
|
|
1828
|
+
results: ( roots.map(r => convertTestResultItem(r, byInternalId))),
|
|
1837
1829
|
};
|
|
1838
1830
|
}
|
|
1839
1831
|
TestResults.to = to;
|
|
1840
|
-
})(TestResults || (TestResults = {})))
|
|
1832
|
+
})(TestResults || (TestResults = {})));
|
|
1841
1833
|
var TestCoverage;
|
|
1842
|
-
( (
|
|
1834
|
+
( (function(TestCoverage) {
|
|
1843
1835
|
function fromCoveredCount(count) {
|
|
1844
1836
|
return { covered: count.covered, total: count.covered };
|
|
1845
1837
|
}
|
|
@@ -1853,9 +1845,9 @@ var TestCoverage;
|
|
|
1853
1845
|
location: fromLocation(coverage.location),
|
|
1854
1846
|
type: 1 ,
|
|
1855
1847
|
branches: coverage.branches.length
|
|
1856
|
-
? (
|
|
1848
|
+
? ( coverage.branches.map(
|
|
1857
1849
|
b => ({ count: b.executionCount, location: b.location && fromLocation(b.location) })
|
|
1858
|
-
))
|
|
1850
|
+
))
|
|
1859
1851
|
: undefined,
|
|
1860
1852
|
};
|
|
1861
1853
|
}
|
|
@@ -1878,9 +1870,9 @@ var TestCoverage;
|
|
|
1878
1870
|
};
|
|
1879
1871
|
}
|
|
1880
1872
|
TestCoverage.fromFile = fromFile;
|
|
1881
|
-
})(TestCoverage || (TestCoverage = {})))
|
|
1873
|
+
})(TestCoverage || (TestCoverage = {})));
|
|
1882
1874
|
var CodeActionTriggerKind;
|
|
1883
|
-
( (
|
|
1875
|
+
( (function(CodeActionTriggerKind) {
|
|
1884
1876
|
function to(value) {
|
|
1885
1877
|
switch (value) {
|
|
1886
1878
|
case 1 :
|
|
@@ -1890,9 +1882,9 @@ var CodeActionTriggerKind;
|
|
|
1890
1882
|
}
|
|
1891
1883
|
}
|
|
1892
1884
|
CodeActionTriggerKind.to = to;
|
|
1893
|
-
})(CodeActionTriggerKind || (CodeActionTriggerKind = {})))
|
|
1885
|
+
})(CodeActionTriggerKind || (CodeActionTriggerKind = {})));
|
|
1894
1886
|
var TypeHierarchyItem;
|
|
1895
|
-
( (
|
|
1887
|
+
( (function(TypeHierarchyItem) {
|
|
1896
1888
|
function to(item) {
|
|
1897
1889
|
const result = new TypeHierarchyItem$1(SymbolKind.to(item.kind), item.name, item.detail || '', URI.revive(item.uri), Range.to(item.range), Range.to(item.selectionRange));
|
|
1898
1890
|
result._sessionId = item._sessionId;
|
|
@@ -1919,9 +1911,9 @@ var TypeHierarchyItem;
|
|
|
1919
1911
|
};
|
|
1920
1912
|
}
|
|
1921
1913
|
TypeHierarchyItem.from = from;
|
|
1922
|
-
})(TypeHierarchyItem || (TypeHierarchyItem = {})))
|
|
1914
|
+
})(TypeHierarchyItem || (TypeHierarchyItem = {})));
|
|
1923
1915
|
var ViewBadge;
|
|
1924
|
-
( (
|
|
1916
|
+
( (function(ViewBadge) {
|
|
1925
1917
|
function from(badge) {
|
|
1926
1918
|
if (!badge) {
|
|
1927
1919
|
return undefined;
|
|
@@ -1932,9 +1924,9 @@ var ViewBadge;
|
|
|
1932
1924
|
};
|
|
1933
1925
|
}
|
|
1934
1926
|
ViewBadge.from = from;
|
|
1935
|
-
})(ViewBadge || (ViewBadge = {})))
|
|
1927
|
+
})(ViewBadge || (ViewBadge = {})));
|
|
1936
1928
|
var DataTransferItem;
|
|
1937
|
-
( (
|
|
1929
|
+
( (function(DataTransferItem) {
|
|
1938
1930
|
function to(mime, item, resolveFileData) {
|
|
1939
1931
|
const file = item.fileData;
|
|
1940
1932
|
if (file) {
|
|
@@ -1967,34 +1959,30 @@ var DataTransferItem;
|
|
|
1967
1959
|
}
|
|
1968
1960
|
DataTransferItem.from = from;
|
|
1969
1961
|
function serializeUriList(stringValue) {
|
|
1970
|
-
return (
|
|
1971
|
-
|
|
1972
|
-
if (part.startsWith('#')) {
|
|
1973
|
-
return part;
|
|
1974
|
-
}
|
|
1975
|
-
try {
|
|
1976
|
-
return (
|
|
1977
|
-
(URI.parse(part))
|
|
1978
|
-
);
|
|
1979
|
-
}
|
|
1980
|
-
catch {
|
|
1981
|
-
}
|
|
1962
|
+
return ( UriList.split(stringValue).map(part => {
|
|
1963
|
+
if (part.startsWith('#')) {
|
|
1982
1964
|
return part;
|
|
1983
|
-
}
|
|
1984
|
-
|
|
1965
|
+
}
|
|
1966
|
+
try {
|
|
1967
|
+
return ( URI.parse(part));
|
|
1968
|
+
}
|
|
1969
|
+
catch {
|
|
1970
|
+
}
|
|
1971
|
+
return part;
|
|
1972
|
+
}));
|
|
1985
1973
|
}
|
|
1986
1974
|
function reviveUriList(parts) {
|
|
1987
|
-
return UriList.create((
|
|
1975
|
+
return UriList.create(( parts.map(part => {
|
|
1988
1976
|
return typeof part === 'string' ? part : URI.revive(part);
|
|
1989
|
-
})))
|
|
1977
|
+
})));
|
|
1990
1978
|
}
|
|
1991
|
-
})(DataTransferItem || (DataTransferItem = {})))
|
|
1979
|
+
})(DataTransferItem || (DataTransferItem = {})));
|
|
1992
1980
|
var DataTransfer;
|
|
1993
|
-
( (
|
|
1981
|
+
( (function(DataTransfer) {
|
|
1994
1982
|
function toDataTransfer(value, resolveFileData) {
|
|
1995
|
-
const init = (
|
|
1983
|
+
const init = ( value.items.map(([type, item]) => {
|
|
1996
1984
|
return [type, DataTransferItem.to(type, item, resolveFileData)];
|
|
1997
|
-
}))
|
|
1985
|
+
}));
|
|
1998
1986
|
return new DataTransfer$1(init);
|
|
1999
1987
|
}
|
|
2000
1988
|
DataTransfer.toDataTransfer = toDataTransfer;
|
|
@@ -2010,9 +1998,9 @@ var DataTransfer;
|
|
|
2010
1998
|
return newDTO;
|
|
2011
1999
|
}
|
|
2012
2000
|
DataTransfer.from = from;
|
|
2013
|
-
})(DataTransfer || (DataTransfer = {})))
|
|
2001
|
+
})(DataTransfer || (DataTransfer = {})));
|
|
2014
2002
|
var ChatReplyFollowup;
|
|
2015
|
-
( (
|
|
2003
|
+
( (function(ChatReplyFollowup) {
|
|
2016
2004
|
function to(followup) {
|
|
2017
2005
|
return {
|
|
2018
2006
|
message: followup.message,
|
|
@@ -2032,9 +2020,9 @@ var ChatReplyFollowup;
|
|
|
2032
2020
|
};
|
|
2033
2021
|
}
|
|
2034
2022
|
ChatReplyFollowup.from = from;
|
|
2035
|
-
})(ChatReplyFollowup || (ChatReplyFollowup = {})))
|
|
2023
|
+
})(ChatReplyFollowup || (ChatReplyFollowup = {})));
|
|
2036
2024
|
var ChatFollowup;
|
|
2037
|
-
( (
|
|
2025
|
+
( (function(ChatFollowup) {
|
|
2038
2026
|
function from(followup) {
|
|
2039
2027
|
if (typeof followup === 'string') {
|
|
2040
2028
|
return { title: followup, message: followup, kind: 'reply' };
|
|
@@ -2053,9 +2041,9 @@ var ChatFollowup;
|
|
|
2053
2041
|
}
|
|
2054
2042
|
}
|
|
2055
2043
|
ChatFollowup.from = from;
|
|
2056
|
-
})(ChatFollowup || (ChatFollowup = {})))
|
|
2044
|
+
})(ChatFollowup || (ChatFollowup = {})));
|
|
2057
2045
|
var ChatMessage;
|
|
2058
|
-
( (
|
|
2046
|
+
( (function(ChatMessage) {
|
|
2059
2047
|
function to(message) {
|
|
2060
2048
|
const res = new ChatMessage$1(ChatMessageRole.to(message.role), message.content);
|
|
2061
2049
|
res.name = message.name;
|
|
@@ -2070,9 +2058,9 @@ var ChatMessage;
|
|
|
2070
2058
|
};
|
|
2071
2059
|
}
|
|
2072
2060
|
ChatMessage.from = from;
|
|
2073
|
-
})(ChatMessage || (ChatMessage = {})))
|
|
2061
|
+
})(ChatMessage || (ChatMessage = {})));
|
|
2074
2062
|
var ChatMessageRole;
|
|
2075
|
-
( (
|
|
2063
|
+
( (function(ChatMessageRole) {
|
|
2076
2064
|
function to(role) {
|
|
2077
2065
|
switch (role) {
|
|
2078
2066
|
case 0 : return ChatMessageRole$1.System;
|
|
@@ -2093,9 +2081,9 @@ var ChatMessageRole;
|
|
|
2093
2081
|
}
|
|
2094
2082
|
}
|
|
2095
2083
|
ChatMessageRole.from = from;
|
|
2096
|
-
})(ChatMessageRole || (ChatMessageRole = {})))
|
|
2084
|
+
})(ChatMessageRole || (ChatMessageRole = {})));
|
|
2097
2085
|
var ChatVariable;
|
|
2098
|
-
( (
|
|
2086
|
+
( (function(ChatVariable) {
|
|
2099
2087
|
function to(variable) {
|
|
2100
2088
|
return {
|
|
2101
2089
|
level: ChatVariableLevel.to(variable.level),
|
|
@@ -2112,9 +2100,9 @@ var ChatVariable;
|
|
|
2112
2100
|
};
|
|
2113
2101
|
}
|
|
2114
2102
|
ChatVariable.from = from;
|
|
2115
|
-
})(ChatVariable || (ChatVariable = {})))
|
|
2103
|
+
})(ChatVariable || (ChatVariable = {})));
|
|
2116
2104
|
var ChatVariableLevel;
|
|
2117
|
-
( (
|
|
2105
|
+
( (function(ChatVariableLevel) {
|
|
2118
2106
|
function to(level) {
|
|
2119
2107
|
switch (level) {
|
|
2120
2108
|
case 'short': return ChatVariableLevel$1.Short;
|
|
@@ -2135,9 +2123,9 @@ var ChatVariableLevel;
|
|
|
2135
2123
|
}
|
|
2136
2124
|
}
|
|
2137
2125
|
ChatVariableLevel.from = from;
|
|
2138
|
-
})(ChatVariableLevel || (ChatVariableLevel = {})))
|
|
2126
|
+
})(ChatVariableLevel || (ChatVariableLevel = {})));
|
|
2139
2127
|
var InteractiveEditorResponseFeedbackKind;
|
|
2140
|
-
( (
|
|
2128
|
+
( (function(InteractiveEditorResponseFeedbackKind) {
|
|
2141
2129
|
function to(kind) {
|
|
2142
2130
|
switch (kind) {
|
|
2143
2131
|
case 1 :
|
|
@@ -2153,9 +2141,9 @@ var InteractiveEditorResponseFeedbackKind;
|
|
|
2153
2141
|
InteractiveEditorResponseFeedbackKind.to = to;
|
|
2154
2142
|
})(
|
|
2155
2143
|
InteractiveEditorResponseFeedbackKind || (InteractiveEditorResponseFeedbackKind = {})
|
|
2156
|
-
))
|
|
2144
|
+
));
|
|
2157
2145
|
var TerminalQuickFix;
|
|
2158
|
-
( (
|
|
2146
|
+
( (function(TerminalQuickFix) {
|
|
2159
2147
|
function from(quickFix, converter, disposables) {
|
|
2160
2148
|
if ('terminalCommand' in quickFix) {
|
|
2161
2149
|
return { terminalCommand: quickFix.terminalCommand };
|
|
@@ -2166,5 +2154,5 @@ var TerminalQuickFix;
|
|
|
2166
2154
|
return converter.toInternal(quickFix, disposables);
|
|
2167
2155
|
}
|
|
2168
2156
|
TerminalQuickFix.from = from;
|
|
2169
|
-
})(TerminalQuickFix || (TerminalQuickFix = {})))
|
|
2157
|
+
})(TerminalQuickFix || (TerminalQuickFix = {})));
|
|
2170
2158
|
export { CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, ChatFollowup, ChatMessage, ChatMessageRole, ChatReplyFollowup, ChatVariable, ChatVariableLevel, CodeActionTriggerKind, Color, ColorPresentation, CompletionContext, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionTriggerKind, DataTransfer, DataTransferItem, DecorationRangeBehavior, DecorationRenderOptions, DefinitionLink, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, DocumentHighlight, DocumentLink, DocumentSelector, DocumentSymbol, EndOfLine, EvaluatableExpression, FoldingRange, FoldingRangeKind, GlobPattern, Hover, InlayHint, InlayHintKind, InlayHintLabelPart, InlineValue, InlineValueContext, InteractiveEditorResponseFeedbackKind, LanguageSelector, MappedEditsContext, MarkdownString, NotebookCellData, NotebookCellExecutionState, NotebookCellExecutionSummary, NotebookCellKind, NotebookCellOutput, NotebookCellOutputItem, NotebookData, NotebookDocumentContentOptions, NotebookExclusiveDocumentPattern, NotebookKernelSourceAction, NotebookRange, NotebookRendererScript, NotebookStatusBarItem, ParameterInformation, Position, ProgressLocation, Range, Selection, SelectionRange, SignatureHelp, SignatureInformation, SymbolKind, SymbolTag, TerminalQuickFix, TestCoverage, TestItem, TestMessage, TestResults, TestTag, TextDocumentSaveReason, TextEdit, TextEditorLineNumbersStyle, TextEditorOpenOptions, ThemableDecorationAttachmentRenderOptions, ThemableDecorationRenderOptions, TokenType, TypeHierarchyItem, ViewBadge, ViewColumn, WorkspaceEdit, WorkspaceSymbol, fromRangeOrRangeWithMessage, isDecorationOptionsArr, location, pathOrURIToURI };
|