@mrclrchtr/supi-lsp 1.11.2 → 1.12.0
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/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/package.json +1 -1
- package/node_modules/@mrclrchtr/supi-code-runtime/package.json +2 -2
- package/node_modules/@mrclrchtr/supi-core/package.json +1 -1
- package/node_modules/vscode-languageserver-protocol/README.md +3 -3
- package/node_modules/vscode-languageserver-protocol/eslint.config.js +13 -0
- package/node_modules/vscode-languageserver-protocol/lib/browser/main.js +1 -2
- package/node_modules/vscode-languageserver-protocol/lib/common/api.d.ts +1 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/api.js +1 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/connection.d.ts +13 -13
- package/node_modules/vscode-languageserver-protocol/lib/common/connection.js +1 -2
- package/node_modules/vscode-languageserver-protocol/lib/common/messages.d.ts +7 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/messages.js +38 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.d.ts +5 -2
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +3 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.d.ts +5 -3
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +3 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.d.ts +2 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +1 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.d.ts +735 -361
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.d.ts +3 -2
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +1 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.d.ts +12 -3
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +37 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.d.ts +8 -2
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +6 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.d.ts +34 -25
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +4 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.d.ts +3 -2
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +1 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.d.ts +15 -8
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +3 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.d.ts +3 -7
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +1 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.d.ts +7 -6
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +2 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +97 -9
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.d.ts +3 -2
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +1 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.d.ts +3 -2
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +1 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.d.ts +91 -63
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +34 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.d.ts +2 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +1 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.d.ts +3 -2
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +1 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.d.ts +44 -26
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +4 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.d.ts +4 -3
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +1 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.textDocumentContent.d.ts +93 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.textDocumentContent.js +33 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.d.ts +3 -2
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +2 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.d.ts +3 -2
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +1 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.d.ts +3 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +2 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +9 -10
- package/node_modules/vscode-languageserver-protocol/lib/node/main.d.ts +0 -1
- package/node_modules/vscode-languageserver-protocol/lib/node/main.js +1 -2
- package/node_modules/vscode-languageserver-protocol/metaModel.schema.json +84 -3
- package/node_modules/vscode-languageserver-protocol/package.json +21 -12
- package/node_modules/vscode-languageserver-types/README.md +1 -1
- package/node_modules/vscode-languageserver-types/eslint.config.js +13 -0
- package/node_modules/vscode-languageserver-types/lib/esm/main.d.ts +483 -107
- package/node_modules/vscode-languageserver-types/lib/esm/main.js +255 -62
- package/node_modules/vscode-languageserver-types/lib/umd/main.d.ts +483 -107
- package/node_modules/vscode-languageserver-types/lib/umd/main.js +201 -8
- package/node_modules/vscode-languageserver-types/package.json +9 -8
- package/package.json +3 -3
- package/src/config/types.ts +3 -0
- package/src/diagnostics/diagnostic-context.ts +2 -1
- package/src/diagnostics/diagnostic-display.ts +2 -1
- package/src/diagnostics/diagnostics.ts +2 -1
- package/src/diagnostics/stale-diagnostics.ts +3 -1
- package/src/diagnostics/suppression-diagnostics.ts +3 -1
- package/src/format.ts +30 -3
- package/src/ui/ui.ts +3 -1
- package/node_modules/vscode-languageserver-protocol/browser.d.ts +0 -6
- package/node_modules/vscode-languageserver-protocol/browser.js +0 -7
- package/node_modules/vscode-languageserver-protocol/node.cmd +0 -5
- package/node_modules/vscode-languageserver-protocol/node.d.ts +0 -6
- package/node_modules/vscode-languageserver-protocol/node.js +0 -7
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/License.txt +0 -11
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/README.md +0 -69
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.d.ts +0 -6
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.js +0 -7
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.d.ts +0 -17
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -76
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.d.ts +0 -12
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -156
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.d.ts +0 -14
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.js +0 -81
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.d.ts +0 -32
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -96
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.d.ts +0 -358
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -1212
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.d.ts +0 -9
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -16
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/encoding.d.ts +0 -52
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/encoding.js +0 -70
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.d.ts +0 -39
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.js +0 -128
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.d.ts +0 -7
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.js +0 -35
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.d.ts +0 -53
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -398
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.d.ts +0 -18
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -152
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.d.ts +0 -77
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -197
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.d.ts +0 -60
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -115
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.d.ts +0 -369
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -306
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.d.ts +0 -74
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -23
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.d.ts +0 -10
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -68
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +0 -15
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -76
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/node/main.d.ts +0 -63
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/node/main.js +0 -257
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/node/ril.d.ts +0 -13
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/node/ril.js +0 -161
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/node.cmd +0 -5
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/node.d.ts +0 -6
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/node.js +0 -7
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/package.json +0 -45
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/thirdpartynotices.txt +0 -16
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/typings/thenable.d.ts +0 -5
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* ------------------------------------------------------------------------------------------ */
|
|
14
14
|
'use strict';
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.TextDocument = exports.EOL = exports.WorkspaceFolder = exports.InlineCompletionContext = exports.SelectedCompletionInfo = exports.InlineCompletionTriggerKind = exports.InlineCompletionList = exports.InlineCompletionItem = exports.StringValue = exports.InlayHint = exports.InlayHintLabelPart = exports.InlayHintKind = exports.InlineValueContext = exports.InlineValueEvaluatableExpression = exports.InlineValueVariableLookup = exports.InlineValueText = exports.SemanticTokens = exports.SemanticTokenModifiers = exports.SemanticTokenTypes = exports.SelectionRange = exports.DocumentLink = exports.FormattingOptions = exports.CodeLens = exports.CodeAction = exports.CodeActionContext = exports.CodeActionTriggerKind = exports.CodeActionKind = exports.DocumentSymbol = exports.WorkspaceSymbol = exports.SymbolInformation = exports.SymbolTag = exports.SymbolKind = exports.DocumentHighlight = exports.DocumentHighlightKind = exports.SignatureInformation = exports.ParameterInformation = exports.Hover = exports.MarkedString = exports.CompletionList = exports.CompletionItem = exports.CompletionItemLabelDetails = exports.InsertTextMode = exports.InsertReplaceEdit = exports.CompletionItemTag = exports.InsertTextFormat = exports.CompletionItemKind = exports.MarkupContent = exports.MarkupKind = exports.TextDocumentItem = exports.OptionalVersionedTextDocumentIdentifier = exports.VersionedTextDocumentIdentifier = exports.TextDocumentIdentifier = exports.WorkspaceChange = exports.WorkspaceEdit = exports.DeleteFile = exports.RenameFile = exports.CreateFile = exports.TextDocumentEdit = exports.AnnotatedTextEdit = exports.ChangeAnnotationIdentifier = exports.ChangeAnnotation = exports.TextEdit = exports.Command = exports.Diagnostic = exports.CodeDescription = exports.DiagnosticTag = exports.DiagnosticSeverity = exports.DiagnosticRelatedInformation = exports.FoldingRange = exports.FoldingRangeKind = exports.ColorPresentation = exports.ColorInformation = exports.Color = exports.LocationLink = exports.Location = exports.Range = exports.Position = exports.uinteger = exports.integer = exports.URI = exports.DocumentUri = void 0;
|
|
16
|
+
exports.TextDocument = exports.EOL = exports.WorkspaceFolder = exports.InlineCompletionContext = exports.SelectedCompletionInfo = exports.InlineCompletionTriggerKind = exports.InlineCompletionList = exports.InlineCompletionItem = exports.StringValue = exports.InlayHint = exports.InlayHintLabelPart = exports.InlayHintKind = exports.InlineValueContext = exports.InlineValueEvaluatableExpression = exports.InlineValueVariableLookup = exports.InlineValueText = exports.SemanticTokens = exports.SemanticTokenModifiers = exports.SemanticTokenTypes = exports.SelectionRange = exports.DocumentLink = exports.FormattingOptions = exports.CodeLens = exports.CodeAction = exports.CodeActionTag = exports.CodeActionContext = exports.CodeActionTriggerKind = exports.CodeActionKind = exports.DocumentSymbol = exports.WorkspaceSymbol = exports.SymbolInformation = exports.SymbolTag = exports.SymbolKind = exports.DocumentHighlight = exports.DocumentHighlightKind = exports.SignatureInformation = exports.ParameterInformation = exports.Hover = exports.MarkedString = exports.CompletionList = exports.CompletionItem = exports.CompletionItemLabelDetails = exports.ApplyKind = exports.InsertTextMode = exports.InsertReplaceEdit = exports.CompletionItemTag = exports.InsertTextFormat = exports.CompletionItemKind = exports.MarkupContent = exports.MarkupKind = exports.TextDocumentItem = exports.LanguageKind = exports.OptionalVersionedTextDocumentIdentifier = exports.VersionedTextDocumentIdentifier = exports.TextDocumentIdentifier = exports.WorkspaceChange = exports.SnippetTextEdit = exports.WorkspaceEdit = exports.DeleteFile = exports.RenameFile = exports.CreateFile = exports.TextDocumentEdit = exports.AnnotatedTextEdit = exports.ChangeAnnotationIdentifier = exports.ChangeAnnotation = exports.TextEdit = exports.Command = exports.Diagnostic = exports.CodeDescription = exports.DiagnosticTag = exports.DiagnosticSeverity = exports.DiagnosticRelatedInformation = exports.FoldingRange = exports.FoldingRangeKind = exports.ColorPresentation = exports.ColorInformation = exports.Color = exports.LocationLink = exports.Location = exports.Range = exports.Position = exports.uinteger = exports.integer = exports.URI = exports.DocumentUri = void 0;
|
|
17
17
|
var DocumentUri;
|
|
18
18
|
(function (DocumentUri) {
|
|
19
19
|
function is(value) {
|
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
var candidate = value;
|
|
413
413
|
return Is.defined(candidate)
|
|
414
414
|
&& Range.is(candidate.range)
|
|
415
|
-
&& Is.string(candidate.message)
|
|
415
|
+
&& (Is.string(candidate.message) || MarkupContent.is(candidate.message))
|
|
416
416
|
&& (Is.number(candidate.severity) || Is.undefined(candidate.severity))
|
|
417
417
|
&& (Is.integer(candidate.code) || Is.string(candidate.code) || Is.undefined(candidate.code))
|
|
418
418
|
&& (Is.undefined(candidate.codeDescription) || (Is.string((_a = candidate.codeDescription) === null || _a === void 0 ? void 0 : _a.href)))
|
|
@@ -420,6 +420,37 @@
|
|
|
420
420
|
&& (Is.undefined(candidate.relatedInformation) || Is.typedArray(candidate.relatedInformation, DiagnosticRelatedInformation.is));
|
|
421
421
|
}
|
|
422
422
|
Diagnostic.is = is;
|
|
423
|
+
/**
|
|
424
|
+
* Checks whether the given diagnostic's message conforms to the 3.17.0
|
|
425
|
+
* version of the protocol where the message is a string.
|
|
426
|
+
*
|
|
427
|
+
* @param value the diagnostic
|
|
428
|
+
* @returns true if the diagnostic's message is a string, false otherwise.
|
|
429
|
+
*/
|
|
430
|
+
function is3_17(value) {
|
|
431
|
+
return Is.string(value.message);
|
|
432
|
+
}
|
|
433
|
+
Diagnostic.is3_17 = is3_17;
|
|
434
|
+
/**
|
|
435
|
+
* Gets the message string of a diagnostic. If the message is already a
|
|
436
|
+
* string, it is returned as is. If the message is a MarkupContent,
|
|
437
|
+
* the value of the MarkupContent is returned. Otherwise an error is thrown.
|
|
438
|
+
*
|
|
439
|
+
* @param diagnostic the diagnostic to get the message string from.
|
|
440
|
+
* @returns the message string of the given diagnostic.
|
|
441
|
+
*/
|
|
442
|
+
function getMessageString(diagnostic) {
|
|
443
|
+
if (Is.string(diagnostic.message)) {
|
|
444
|
+
return diagnostic.message;
|
|
445
|
+
}
|
|
446
|
+
else if (MarkupContent.is(diagnostic.message)) {
|
|
447
|
+
return diagnostic.message.value;
|
|
448
|
+
}
|
|
449
|
+
else {
|
|
450
|
+
throw new Error("Unknown message type ".concat(typeof diagnostic.message));
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
Diagnostic.getMessageString = getMessageString;
|
|
423
454
|
})(Diagnostic || (exports.Diagnostic = Diagnostic = {}));
|
|
424
455
|
/**
|
|
425
456
|
* The Command namespace provides helper functions to work with
|
|
@@ -447,7 +478,7 @@
|
|
|
447
478
|
*/
|
|
448
479
|
function is(value) {
|
|
449
480
|
var candidate = value;
|
|
450
|
-
return Is.defined(candidate) && Is.string(candidate.title) && Is.string(candidate.command);
|
|
481
|
+
return Is.defined(candidate) && Is.string(candidate.title) && (candidate.tooltip === undefined || Is.string(candidate.tooltip)) && Is.string(candidate.command);
|
|
451
482
|
}
|
|
452
483
|
Command.is = is;
|
|
453
484
|
})(Command || (exports.Command = Command = {}));
|
|
@@ -749,6 +780,18 @@
|
|
|
749
780
|
};
|
|
750
781
|
return TextEditChangeImpl;
|
|
751
782
|
}());
|
|
783
|
+
var SnippetTextEdit;
|
|
784
|
+
(function (SnippetTextEdit) {
|
|
785
|
+
function is(value) {
|
|
786
|
+
var candidate = value;
|
|
787
|
+
return Is.objectLiteral(candidate)
|
|
788
|
+
&& Range.is(candidate.range)
|
|
789
|
+
&& StringValue.isSnippet(candidate.snippet)
|
|
790
|
+
&& (candidate.annotationId === undefined ||
|
|
791
|
+
(ChangeAnnotation.is(candidate.annotationId) || ChangeAnnotationIdentifier.is(candidate.annotationId)));
|
|
792
|
+
}
|
|
793
|
+
SnippetTextEdit.is = is;
|
|
794
|
+
})(SnippetTextEdit || (exports.SnippetTextEdit = SnippetTextEdit = {}));
|
|
752
795
|
/**
|
|
753
796
|
* A helper class
|
|
754
797
|
*/
|
|
@@ -1042,6 +1085,84 @@
|
|
|
1042
1085
|
}
|
|
1043
1086
|
OptionalVersionedTextDocumentIdentifier.is = is;
|
|
1044
1087
|
})(OptionalVersionedTextDocumentIdentifier || (exports.OptionalVersionedTextDocumentIdentifier = OptionalVersionedTextDocumentIdentifier = {}));
|
|
1088
|
+
/**
|
|
1089
|
+
* Predefined Language kinds
|
|
1090
|
+
* @since 3.18.0
|
|
1091
|
+
*/
|
|
1092
|
+
var LanguageKind;
|
|
1093
|
+
(function (LanguageKind) {
|
|
1094
|
+
LanguageKind.ABAP = 'abap';
|
|
1095
|
+
LanguageKind.WindowsBat = 'bat';
|
|
1096
|
+
LanguageKind.BibTeX = 'bibtex';
|
|
1097
|
+
LanguageKind.Clojure = 'clojure';
|
|
1098
|
+
LanguageKind.Coffeescript = 'coffeescript';
|
|
1099
|
+
LanguageKind.C = 'c';
|
|
1100
|
+
LanguageKind.CPP = 'cpp';
|
|
1101
|
+
LanguageKind.CSharp = 'csharp';
|
|
1102
|
+
LanguageKind.CSS = 'css';
|
|
1103
|
+
/**
|
|
1104
|
+
* @since 3.18.0
|
|
1105
|
+
*/
|
|
1106
|
+
LanguageKind.D = 'd';
|
|
1107
|
+
/**
|
|
1108
|
+
* @since 3.18.0
|
|
1109
|
+
*/
|
|
1110
|
+
LanguageKind.Delphi = 'pascal';
|
|
1111
|
+
LanguageKind.Diff = 'diff';
|
|
1112
|
+
LanguageKind.Dart = 'dart';
|
|
1113
|
+
LanguageKind.Dockerfile = 'dockerfile';
|
|
1114
|
+
LanguageKind.Elixir = 'elixir';
|
|
1115
|
+
LanguageKind.Erlang = 'erlang';
|
|
1116
|
+
LanguageKind.FSharp = 'fsharp';
|
|
1117
|
+
LanguageKind.GitCommit = 'git-commit';
|
|
1118
|
+
LanguageKind.GitRebase = 'git-rebase';
|
|
1119
|
+
LanguageKind.Go = 'go';
|
|
1120
|
+
LanguageKind.Groovy = 'groovy';
|
|
1121
|
+
LanguageKind.Handlebars = 'handlebars';
|
|
1122
|
+
LanguageKind.Haskell = 'haskell';
|
|
1123
|
+
LanguageKind.HTML = 'html';
|
|
1124
|
+
LanguageKind.Ini = 'ini';
|
|
1125
|
+
LanguageKind.Java = 'java';
|
|
1126
|
+
LanguageKind.JavaScript = 'javascript';
|
|
1127
|
+
LanguageKind.JavaScriptReact = 'javascriptreact';
|
|
1128
|
+
LanguageKind.JSON = 'json';
|
|
1129
|
+
LanguageKind.LaTeX = 'latex';
|
|
1130
|
+
LanguageKind.Less = 'less';
|
|
1131
|
+
LanguageKind.Lua = 'lua';
|
|
1132
|
+
LanguageKind.Makefile = 'makefile';
|
|
1133
|
+
LanguageKind.Markdown = 'markdown';
|
|
1134
|
+
LanguageKind.ObjectiveC = 'objective-c';
|
|
1135
|
+
LanguageKind.ObjectiveCPP = 'objective-cpp';
|
|
1136
|
+
/**
|
|
1137
|
+
* @since 3.18.0
|
|
1138
|
+
*/
|
|
1139
|
+
LanguageKind.Pascal = 'pascal';
|
|
1140
|
+
LanguageKind.Perl = 'perl';
|
|
1141
|
+
LanguageKind.Perl6 = 'perl6';
|
|
1142
|
+
LanguageKind.PHP = 'php';
|
|
1143
|
+
LanguageKind.Plaintext = 'plaintext';
|
|
1144
|
+
LanguageKind.Powershell = 'powershell';
|
|
1145
|
+
LanguageKind.Pug = 'jade';
|
|
1146
|
+
LanguageKind.Python = 'python';
|
|
1147
|
+
LanguageKind.R = 'r';
|
|
1148
|
+
LanguageKind.Razor = 'razor';
|
|
1149
|
+
LanguageKind.Ruby = 'ruby';
|
|
1150
|
+
LanguageKind.Rust = 'rust';
|
|
1151
|
+
LanguageKind.SCSS = 'scss';
|
|
1152
|
+
LanguageKind.SASS = 'sass';
|
|
1153
|
+
LanguageKind.Scala = 'scala';
|
|
1154
|
+
LanguageKind.ShaderLab = 'shaderlab';
|
|
1155
|
+
LanguageKind.ShellScript = 'shellscript';
|
|
1156
|
+
LanguageKind.SQL = 'sql';
|
|
1157
|
+
LanguageKind.Swift = 'swift';
|
|
1158
|
+
LanguageKind.TypeScript = 'typescript';
|
|
1159
|
+
LanguageKind.TypeScriptReact = 'typescriptreact';
|
|
1160
|
+
LanguageKind.TeX = 'tex';
|
|
1161
|
+
LanguageKind.VisualBasic = 'vb';
|
|
1162
|
+
LanguageKind.XML = 'xml';
|
|
1163
|
+
LanguageKind.XSL = 'xsl';
|
|
1164
|
+
LanguageKind.YAML = 'yaml';
|
|
1165
|
+
})(LanguageKind || (exports.LanguageKind = LanguageKind = {}));
|
|
1045
1166
|
/**
|
|
1046
1167
|
* The TextDocumentItem namespace provides helper functions to work with
|
|
1047
1168
|
* {@link TextDocumentItem} literals.
|
|
@@ -1221,6 +1342,27 @@
|
|
|
1221
1342
|
*/
|
|
1222
1343
|
InsertTextMode.adjustIndentation = 2;
|
|
1223
1344
|
})(InsertTextMode || (exports.InsertTextMode = InsertTextMode = {}));
|
|
1345
|
+
/**
|
|
1346
|
+
* Defines how values from a set of defaults and an individual item will be
|
|
1347
|
+
* merged.
|
|
1348
|
+
*
|
|
1349
|
+
* @since 3.18.0
|
|
1350
|
+
*/
|
|
1351
|
+
var ApplyKind;
|
|
1352
|
+
(function (ApplyKind) {
|
|
1353
|
+
/**
|
|
1354
|
+
* The value from the individual item (if provided and not `null`) will be
|
|
1355
|
+
* used instead of the default.
|
|
1356
|
+
*/
|
|
1357
|
+
ApplyKind.Replace = 1;
|
|
1358
|
+
/**
|
|
1359
|
+
* The value from the item will be merged with the default.
|
|
1360
|
+
*
|
|
1361
|
+
* The specific rules for mergeing values are defined against each field
|
|
1362
|
+
* that supports merging.
|
|
1363
|
+
*/
|
|
1364
|
+
ApplyKind.Merge = 2;
|
|
1365
|
+
})(ApplyKind || (exports.ApplyKind = ApplyKind = {}));
|
|
1224
1366
|
var CompletionItemLabelDetails;
|
|
1225
1367
|
(function (CompletionItemLabelDetails) {
|
|
1226
1368
|
function is(value) {
|
|
@@ -1542,6 +1684,19 @@
|
|
|
1542
1684
|
* - ...
|
|
1543
1685
|
*/
|
|
1544
1686
|
CodeActionKind.RefactorInline = 'refactor.inline';
|
|
1687
|
+
/**
|
|
1688
|
+
* Base kind for refactoring move actions: `refactor.move`
|
|
1689
|
+
*
|
|
1690
|
+
* Example move actions:
|
|
1691
|
+
*
|
|
1692
|
+
* - Move a function to a new file
|
|
1693
|
+
* - Move a property between classes
|
|
1694
|
+
* - Move method to base class
|
|
1695
|
+
* - ...
|
|
1696
|
+
*
|
|
1697
|
+
* @since 3.18.0
|
|
1698
|
+
*/
|
|
1699
|
+
CodeActionKind.RefactorMove = 'refactor.move';
|
|
1545
1700
|
/**
|
|
1546
1701
|
* Base kind for refactoring rewrite actions: 'refactor.rewrite'
|
|
1547
1702
|
*
|
|
@@ -1574,6 +1729,13 @@
|
|
|
1574
1729
|
* @since 3.15.0
|
|
1575
1730
|
*/
|
|
1576
1731
|
CodeActionKind.SourceFixAll = 'source.fixAll';
|
|
1732
|
+
/**
|
|
1733
|
+
* Base kind for all code actions applying to the entire notebook's scope. CodeActionKinds using
|
|
1734
|
+
* this should always begin with `notebook.`
|
|
1735
|
+
*
|
|
1736
|
+
* @since 3.18.0
|
|
1737
|
+
*/
|
|
1738
|
+
CodeActionKind.Notebook = 'notebook';
|
|
1577
1739
|
})(CodeActionKind || (exports.CodeActionKind = CodeActionKind = {}));
|
|
1578
1740
|
/**
|
|
1579
1741
|
* The reason why code actions were requested.
|
|
@@ -1625,6 +1787,25 @@
|
|
|
1625
1787
|
}
|
|
1626
1788
|
CodeActionContext.is = is;
|
|
1627
1789
|
})(CodeActionContext || (exports.CodeActionContext = CodeActionContext = {}));
|
|
1790
|
+
/**
|
|
1791
|
+
* Code action tags are extra annotations that tweak the behavior of a code action.
|
|
1792
|
+
*
|
|
1793
|
+
* @since 3.18.0 - proposed
|
|
1794
|
+
*/
|
|
1795
|
+
var CodeActionTag;
|
|
1796
|
+
(function (CodeActionTag) {
|
|
1797
|
+
/**
|
|
1798
|
+
* Marks the code action as LLM-generated.
|
|
1799
|
+
*/
|
|
1800
|
+
CodeActionTag.LLMGenerated = 1;
|
|
1801
|
+
/**
|
|
1802
|
+
* Checks whether the given literal conforms to the {@link CodeActionTag} interface.
|
|
1803
|
+
*/
|
|
1804
|
+
function is(value) {
|
|
1805
|
+
return Is.defined(value) && value === CodeActionTag.LLMGenerated;
|
|
1806
|
+
}
|
|
1807
|
+
CodeActionTag.is = is;
|
|
1808
|
+
})(CodeActionTag || (exports.CodeActionTag = CodeActionTag = {}));
|
|
1628
1809
|
var CodeAction;
|
|
1629
1810
|
(function (CodeAction) {
|
|
1630
1811
|
function create(title, kindOrCommandOrEdit, kind) {
|
|
@@ -1654,7 +1835,8 @@
|
|
|
1654
1835
|
(candidate.edit !== undefined || candidate.command !== undefined) &&
|
|
1655
1836
|
(candidate.command === undefined || Command.is(candidate.command)) &&
|
|
1656
1837
|
(candidate.isPreferred === undefined || Is.boolean(candidate.isPreferred)) &&
|
|
1657
|
-
(candidate.edit === undefined || WorkspaceEdit.is(candidate.edit))
|
|
1838
|
+
(candidate.edit === undefined || WorkspaceEdit.is(candidate.edit)) &&
|
|
1839
|
+
(candidate.tags === undefined || Is.typedArray(candidate.tags, CodeActionTag.is));
|
|
1658
1840
|
}
|
|
1659
1841
|
CodeAction.is = is;
|
|
1660
1842
|
})(CodeAction || (exports.CodeAction = CodeAction = {}));
|
|
@@ -1788,6 +1970,10 @@
|
|
|
1788
1970
|
* @since 3.17.0
|
|
1789
1971
|
*/
|
|
1790
1972
|
SemanticTokenTypes["decorator"] = "decorator";
|
|
1973
|
+
/**
|
|
1974
|
+
* @since 3.18.0
|
|
1975
|
+
*/
|
|
1976
|
+
SemanticTokenTypes["label"] = "label";
|
|
1791
1977
|
})(SemanticTokenTypes || (exports.SemanticTokenTypes = SemanticTokenTypes = {}));
|
|
1792
1978
|
/**
|
|
1793
1979
|
* A set of predefined token modifiers. This set is not fixed
|
|
@@ -1842,7 +2028,8 @@
|
|
|
1842
2028
|
InlineValueText.is = is;
|
|
1843
2029
|
})(InlineValueText || (exports.InlineValueText = InlineValueText = {}));
|
|
1844
2030
|
/**
|
|
1845
|
-
* The InlineValueVariableLookup namespace provides functions to
|
|
2031
|
+
* The InlineValueVariableLookup namespace provides functions to
|
|
2032
|
+
* deal with InlineValueVariableLookups.
|
|
1846
2033
|
*
|
|
1847
2034
|
* @since 3.17.0
|
|
1848
2035
|
*/
|
|
@@ -1970,6 +2157,13 @@
|
|
|
1970
2157
|
return { kind: 'snippet', value: value };
|
|
1971
2158
|
}
|
|
1972
2159
|
StringValue.createSnippet = createSnippet;
|
|
2160
|
+
function isSnippet(value) {
|
|
2161
|
+
var candidate = value;
|
|
2162
|
+
return Is.objectLiteral(candidate)
|
|
2163
|
+
&& candidate.kind === 'snippet'
|
|
2164
|
+
&& Is.string(candidate.value);
|
|
2165
|
+
}
|
|
2166
|
+
StringValue.isSnippet = isSnippet;
|
|
1973
2167
|
})(StringValue || (exports.StringValue = StringValue = {}));
|
|
1974
2168
|
var InlineCompletionItem;
|
|
1975
2169
|
(function (InlineCompletionItem) {
|
|
@@ -1989,18 +2183,17 @@
|
|
|
1989
2183
|
* Describes how an {@link InlineCompletionItemProvider inline completion provider} was triggered.
|
|
1990
2184
|
*
|
|
1991
2185
|
* @since 3.18.0
|
|
1992
|
-
* @proposed
|
|
1993
2186
|
*/
|
|
1994
2187
|
var InlineCompletionTriggerKind;
|
|
1995
2188
|
(function (InlineCompletionTriggerKind) {
|
|
1996
2189
|
/**
|
|
1997
2190
|
* Completion was triggered explicitly by a user gesture.
|
|
1998
2191
|
*/
|
|
1999
|
-
InlineCompletionTriggerKind.Invoked =
|
|
2192
|
+
InlineCompletionTriggerKind.Invoked = 1;
|
|
2000
2193
|
/**
|
|
2001
2194
|
* Completion was triggered automatically while editing.
|
|
2002
2195
|
*/
|
|
2003
|
-
InlineCompletionTriggerKind.Automatic =
|
|
2196
|
+
InlineCompletionTriggerKind.Automatic = 2;
|
|
2004
2197
|
})(InlineCompletionTriggerKind || (exports.InlineCompletionTriggerKind = InlineCompletionTriggerKind = {}));
|
|
2005
2198
|
var SelectedCompletionInfo;
|
|
2006
2199
|
(function (SelectedCompletionInfo) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vscode-languageserver-types",
|
|
3
3
|
"description": "Types used by the Language server for node",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.18.0",
|
|
5
5
|
"author": "Microsoft Corporation",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"exports": {
|
|
18
18
|
".": {
|
|
19
19
|
"browser": "./lib/esm/main.js",
|
|
20
|
+
"module": "./lib/esm/main.js",
|
|
20
21
|
"import": "./lib/esm/main.js",
|
|
21
22
|
"default": "./lib/umd/main.js"
|
|
22
23
|
}
|
|
@@ -24,14 +25,14 @@
|
|
|
24
25
|
"scripts": {
|
|
25
26
|
"prepublishOnly": "echo \"⛔ Can only publish from a secure pipeline ⛔\" && node ../build/npm/fail",
|
|
26
27
|
"prepack": "npm run all:publish",
|
|
27
|
-
"compile": "
|
|
28
|
-
"clean": "
|
|
29
|
-
"watch": "
|
|
30
|
-
"lint": "
|
|
31
|
-
"test": "
|
|
28
|
+
"compile": "tsc -b ./tsconfig.json",
|
|
29
|
+
"clean": "rimraf lib",
|
|
30
|
+
"watch": "tsc -b ./tsconfig.watch.json -w",
|
|
31
|
+
"lint": "eslint src",
|
|
32
|
+
"test": "mocha",
|
|
32
33
|
"all": "npm run clean && npm run compile && npm run lint && npm run test",
|
|
33
|
-
"compile:esm": "
|
|
34
|
-
"compile:umd": "
|
|
34
|
+
"compile:esm": "tsc -b ./tsconfig.esm.publish.json && node ../build/bin/fix-esm",
|
|
35
|
+
"compile:umd": "tsc -b ./tsconfig.umd.publish.json",
|
|
35
36
|
"all:publish": "git clean -xfd . && npm install && npm run compile:esm && npm run compile:umd && npm run lint && npm run test",
|
|
36
37
|
"preversion": "npm test"
|
|
37
38
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrclrchtr/supi-lsp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"description": "SuPi LSP extension — Language Server Protocol integration for pi",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"vscode-jsonrpc": "^9.0.0",
|
|
27
27
|
"vscode-languageserver-protocol": "^3.17.5",
|
|
28
28
|
"vscode-languageserver-types": "^3.17.5",
|
|
29
|
-
"@mrclrchtr/supi-code-runtime": "1.
|
|
30
|
-
"@mrclrchtr/supi-core": "1.
|
|
29
|
+
"@mrclrchtr/supi-code-runtime": "1.12.0",
|
|
30
|
+
"@mrclrchtr/supi-core": "1.12.0"
|
|
31
31
|
},
|
|
32
32
|
"bundledDependencies": [
|
|
33
33
|
"@mrclrchtr/supi-code-runtime",
|
package/src/config/types.ts
CHANGED
|
@@ -21,6 +21,7 @@ export {
|
|
|
21
21
|
} from "vscode-languageserver-protocol";
|
|
22
22
|
// ── Core data types from vscode-languageserver-types ─────────────────
|
|
23
23
|
export {
|
|
24
|
+
AnnotatedTextEdit,
|
|
24
25
|
CodeAction,
|
|
25
26
|
type CodeActionContext,
|
|
26
27
|
Command,
|
|
@@ -35,6 +36,8 @@ export {
|
|
|
35
36
|
MarkupContent,
|
|
36
37
|
Position,
|
|
37
38
|
Range,
|
|
39
|
+
SnippetTextEdit,
|
|
40
|
+
type StringValue,
|
|
38
41
|
SymbolInformation,
|
|
39
42
|
SymbolKind,
|
|
40
43
|
TextDocumentEdit,
|
|
@@ -66,7 +66,8 @@ function appendDetailLines(lines: string[], details?: Diagnostic[]): void {
|
|
|
66
66
|
const line = d.range.start.line + 1;
|
|
67
67
|
const char = d.range.start.character + 1;
|
|
68
68
|
const source = d.source ? ` ${d.source}` : "";
|
|
69
|
-
|
|
69
|
+
const msg = typeof d.message === "string" ? d.message : d.message.value;
|
|
70
|
+
lines.push(` L${line} C${char}${source}: ${msg}`);
|
|
70
71
|
}
|
|
71
72
|
if (details.length > MAX_DETAIL_LINES_PER_FILE) {
|
|
72
73
|
const extra = details.length - MAX_DETAIL_LINES_PER_FILE;
|
|
@@ -58,7 +58,8 @@ function buildDisplayDetailLines(
|
|
|
58
58
|
for (const d of entry.diagnostics.slice(0, 3)) {
|
|
59
59
|
const line = d.range.start.line + 1;
|
|
60
60
|
const source = d.source ? ` ${d.source}` : "";
|
|
61
|
-
|
|
61
|
+
const msg = typeof d.message === "string" ? d.message : d.message.value;
|
|
62
|
+
lines.push(` ${entry.file} L${line}${source}: ${msg}`);
|
|
62
63
|
}
|
|
63
64
|
if (entry.diagnostics.length > 3) {
|
|
64
65
|
lines.push(` +${entry.diagnostics.length - 3} more`);
|
|
@@ -46,7 +46,8 @@ export function formatDiagnostic(diag: Diagnostic): string {
|
|
|
46
46
|
const col = diag.range.start.character + 1;
|
|
47
47
|
const source = diag.source ? ` [${diag.source}]` : "";
|
|
48
48
|
const code = diag.code !== undefined ? ` (${diag.code})` : "";
|
|
49
|
-
|
|
49
|
+
const msg = typeof diag.message === "string" ? diag.message : diag.message.value;
|
|
50
|
+
return `${icon} ${sev}${source}${code} (${line}:${col}): ${msg}`;
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
/**
|
|
@@ -43,5 +43,7 @@ export function isLikelyStaleDiagnostic(diagnostic: Diagnostic): boolean {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
const message =
|
|
47
|
+
typeof diagnostic.message === "string" ? diagnostic.message : diagnostic.message.value;
|
|
48
|
+
return MODULE_RESOLUTION_MESSAGE.test(message);
|
|
47
49
|
}
|
|
@@ -4,7 +4,9 @@ const SUPPRESSION_WARNING_SEVERITY = 2;
|
|
|
4
4
|
|
|
5
5
|
/** Detect diagnostics that represent stale suppression comments. */
|
|
6
6
|
export function isStaleSuppressionDiagnostic(diagnostic: Diagnostic): boolean {
|
|
7
|
-
const
|
|
7
|
+
const rawMessage =
|
|
8
|
+
typeof diagnostic.message === "string" ? diagnostic.message : diagnostic.message.value;
|
|
9
|
+
const message = rawMessage.toLowerCase();
|
|
8
10
|
|
|
9
11
|
if (message.includes("unused '@ts-expect-error' directive")) {
|
|
10
12
|
return true;
|
package/src/format.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as path from "node:path";
|
|
4
4
|
import type {
|
|
5
|
+
AnnotatedTextEdit,
|
|
5
6
|
CodeAction,
|
|
6
7
|
DocumentSymbol,
|
|
7
8
|
Hover,
|
|
@@ -9,7 +10,9 @@ import type {
|
|
|
9
10
|
LocationLink,
|
|
10
11
|
MarkedString,
|
|
11
12
|
MarkupContent,
|
|
13
|
+
SnippetTextEdit,
|
|
12
14
|
SymbolInformation,
|
|
15
|
+
TextEdit,
|
|
13
16
|
WorkspaceEdit,
|
|
14
17
|
WorkspaceSymbol,
|
|
15
18
|
} from "./config/types.ts";
|
|
@@ -179,9 +182,27 @@ export function formatSymbolInformation(symbols: SymbolInformation[], cwd: strin
|
|
|
179
182
|
|
|
180
183
|
// ── Workspace Edits ───────────────────────────────────────────────────
|
|
181
184
|
|
|
185
|
+
interface DisplayEdit {
|
|
186
|
+
range: { start: { line: number } };
|
|
187
|
+
newText: string;
|
|
188
|
+
}
|
|
189
|
+
|
|
182
190
|
interface EditEntry {
|
|
183
191
|
file: string;
|
|
184
|
-
edits:
|
|
192
|
+
edits: DisplayEdit[];
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Normalize a TextEdit/AnnotatedTextEdit/SnippetTextEdit to a display-friendly form.
|
|
197
|
+
*
|
|
198
|
+
* @since 3.18.0 — vscode-languageserver-types widened TextDocumentEdit.edits to include
|
|
199
|
+
* SnippetTextEdit (guarded by `workspace.workspaceEdit.snippetEditSupport` client capability).
|
|
200
|
+
*/
|
|
201
|
+
function editToDisplay(edit: TextEdit | AnnotatedTextEdit | SnippetTextEdit): DisplayEdit {
|
|
202
|
+
if ("snippet" in edit) {
|
|
203
|
+
return { range: edit.range, newText: edit.snippet.value };
|
|
204
|
+
}
|
|
205
|
+
return { range: edit.range, newText: edit.newText };
|
|
185
206
|
}
|
|
186
207
|
|
|
187
208
|
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: pre-existing — not introduced by this change
|
|
@@ -196,7 +217,10 @@ function partitionWorkspaceEdit(
|
|
|
196
217
|
for (const [uri, edits] of Object.entries(edit.changes)) {
|
|
197
218
|
const filePath = uriToFile(uri);
|
|
198
219
|
if (isProjectSource(filePath, cwd)) {
|
|
199
|
-
projectChanges.push({
|
|
220
|
+
projectChanges.push({
|
|
221
|
+
file: relPath(filePath, cwd),
|
|
222
|
+
edits: edits.map(editToDisplay),
|
|
223
|
+
});
|
|
200
224
|
} else {
|
|
201
225
|
externalCount++;
|
|
202
226
|
}
|
|
@@ -208,7 +232,10 @@ function partitionWorkspaceEdit(
|
|
|
208
232
|
if (!("textDocument" in dc)) continue;
|
|
209
233
|
const filePath = uriToFile(dc.textDocument.uri);
|
|
210
234
|
if (isProjectSource(filePath, cwd)) {
|
|
211
|
-
projectChanges.push({
|
|
235
|
+
projectChanges.push({
|
|
236
|
+
file: relPath(filePath, cwd),
|
|
237
|
+
edits: dc.edits.map(editToDisplay),
|
|
238
|
+
});
|
|
212
239
|
} else {
|
|
213
240
|
externalCount++;
|
|
214
241
|
}
|
package/src/ui/ui.ts
CHANGED
|
@@ -282,6 +282,7 @@ function buildOverlayServerLines(
|
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
+
// biome-ignore lint/complexity/noExcessiveCognitiveComplexity: pre-existing — v3.18.0 MarkupContent extraction pushes it over
|
|
285
286
|
function buildOverlayDiagnosticLines(
|
|
286
287
|
theme: ExtensionContext["ui"]["theme"],
|
|
287
288
|
diagnostics: OutstandingDiagnosticSummaryEntry[],
|
|
@@ -307,7 +308,8 @@ function buildOverlayDiagnosticLines(
|
|
|
307
308
|
const line = diag.range.start.line + 1;
|
|
308
309
|
const col = diag.range.start.character + 1;
|
|
309
310
|
const sevColor = diag.severity === DiagnosticSeverity.Error ? "error" : "warning";
|
|
310
|
-
const
|
|
311
|
+
const messageText = typeof diag.message === "string" ? diag.message : diag.message.value;
|
|
312
|
+
const message = truncate(messageText, maxMessageLen);
|
|
311
313
|
lines.push(` ${theme.fg(sevColor, "└")} ${line}:${col} ${theme.fg("dim", message)}`);
|
|
312
314
|
}
|
|
313
315
|
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/* --------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
* ----------------------------------------------------------------------------------------- */
|
|
5
|
-
|
|
6
|
-
export * from './lib/browser/main';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/* --------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
* ----------------------------------------------------------------------------------------- */
|
|
5
|
-
'use strict';
|
|
6
|
-
|
|
7
|
-
module.exports = require('./lib/browser/main');
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/* --------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
* ----------------------------------------------------------------------------------------- */
|
|
5
|
-
|
|
6
|
-
export * from './lib/node/main';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/* --------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
* ----------------------------------------------------------------------------------------- */
|
|
5
|
-
'use strict';
|
|
6
|
-
|
|
7
|
-
module.exports = require('./lib/node/main');
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Copyright (c) Microsoft Corporation
|
|
2
|
-
|
|
3
|
-
All rights reserved.
|
|
4
|
-
|
|
5
|
-
MIT License
|
|
6
|
-
|
|
7
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
8
|
-
|
|
9
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
10
|
-
|
|
11
|
-
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|