monaco-languageserver-types
Advanced tools
Comparing version 0.3.2 to 0.3.3
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor code action to an LSP code action. | ||
*/ | ||
export declare function fromCodeAction(codeAction: monaco.languages.CodeAction): ls.CodeAction; | ||
export declare function fromCodeAction(codeAction: monaco.languages.CodeAction): lsp.CodeAction; | ||
export interface ToCodeActionOptions { | ||
@@ -31,3 +31,3 @@ /** | ||
*/ | ||
export declare function toCodeAction(codeAction: ls.CodeAction, options?: ToCodeActionOptions): monaco.languages.CodeAction; | ||
export declare function toCodeAction(codeAction: lsp.CodeAction, options?: ToCodeActionOptions): monaco.languages.CodeAction; | ||
//# sourceMappingURL=codeAction.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor code action context to an LSP code action context. | ||
*/ | ||
export declare function fromCodeActionContext(codeActionContext: monaco.languages.CodeActionContext): ls.CodeActionContext; | ||
export declare function fromCodeActionContext(codeActionContext: monaco.languages.CodeActionContext): lsp.CodeActionContext; | ||
export interface ToCodeActionContextOptions { | ||
@@ -31,3 +31,3 @@ /** | ||
*/ | ||
export declare function toCodeActionContext(codeActionContext: ls.CodeActionContext, options?: ToCodeActionContextOptions): monaco.languages.CodeActionContext; | ||
export declare function toCodeActionContext(codeActionContext: lsp.CodeActionContext, options?: ToCodeActionContextOptions): monaco.languages.CodeActionContext; | ||
//# sourceMappingURL=codeActionContext.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor code action trigger type to an LSP completion item kind. | ||
*/ | ||
export declare function fromCodeActionTriggerType(type: monaco.languages.CodeActionTriggerType): ls.CodeActionTriggerKind; | ||
export declare function fromCodeActionTriggerType(type: monaco.languages.CodeActionTriggerType): lsp.CodeActionTriggerKind; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP completion item kind to a Monaco editor code action trigger type. | ||
*/ | ||
export declare function toCodeActionTriggerType(kind: ls.CodeActionTriggerKind): monaco.languages.CodeActionTriggerType; | ||
export declare function toCodeActionTriggerType(kind: lsp.CodeActionTriggerKind): monaco.languages.CodeActionTriggerType; | ||
//# sourceMappingURL=codeActionTriggerType.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor code lens to an LSP code lens. | ||
*/ | ||
export declare function fromCodeLens(codeLens: monaco.languages.CodeLens): ls.CodeLens; | ||
export declare function fromCodeLens(codeLens: monaco.languages.CodeLens): lsp.CodeLens; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP code lens to a Monaco editor code lens. | ||
*/ | ||
export declare function toCodeLens(codeLens: ls.CodeLens): monaco.languages.CodeLens; | ||
export declare function toCodeLens(codeLens: lsp.CodeLens): monaco.languages.CodeLens; | ||
//# sourceMappingURL=codeLens.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor color to an LSP color. | ||
*/ | ||
export declare function fromColor(color: monaco.languages.IColor): ls.Color; | ||
export declare function fromColor(color: monaco.languages.IColor): lsp.Color; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP color to a Monaco editor color. | ||
*/ | ||
export declare function toColor(color: ls.Color): monaco.languages.IColor; | ||
export declare function toColor(color: lsp.Color): monaco.languages.IColor; | ||
//# sourceMappingURL=color.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor color information to an LSP color information. | ||
*/ | ||
export declare function fromColorInformation(colorInformation: monaco.languages.IColorInformation): ls.ColorInformation; | ||
export declare function fromColorInformation(colorInformation: monaco.languages.IColorInformation): lsp.ColorInformation; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP color information to a Monaco editor color information. | ||
*/ | ||
export declare function toColorInformation(colorInformation: ls.ColorInformation): monaco.languages.IColorInformation; | ||
export declare function toColorInformation(colorInformation: lsp.ColorInformation): monaco.languages.IColorInformation; | ||
//# sourceMappingURL=colorInformation.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor color presentation to an LSP color presentation. | ||
*/ | ||
export declare function fromColorPresentation(colorPresentation: monaco.languages.IColorPresentation): ls.ColorPresentation; | ||
export declare function fromColorPresentation(colorPresentation: monaco.languages.IColorPresentation): lsp.ColorPresentation; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP color presentation to a Monaco editor color presentation. | ||
*/ | ||
export declare function toColorPresentation(colorPresentation: ls.ColorPresentation): monaco.languages.IColorPresentation; | ||
export declare function toColorPresentation(colorPresentation: lsp.ColorPresentation): monaco.languages.IColorPresentation; | ||
//# sourceMappingURL=colorPresentation.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor command to an LSP command. | ||
*/ | ||
export declare function fromCommand(command: monaco.languages.Command): ls.Command; | ||
export declare function fromCommand(command: monaco.languages.Command): lsp.Command; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP command to a Monaco editor command. | ||
*/ | ||
export declare function toCommand(command: ls.Command): monaco.languages.Command; | ||
export declare function toCommand(command: lsp.Command): monaco.languages.Command; | ||
//# sourceMappingURL=command.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor completion context to an LSP completion context. | ||
*/ | ||
export declare function fromCompletionContext(completionContext: monaco.languages.CompletionContext): ls.CompletionContext; | ||
export declare function fromCompletionContext(completionContext: monaco.languages.CompletionContext): lsp.CompletionContext; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP completion context to a Monaco editor completion context. | ||
*/ | ||
export declare function toCompletionContext(completionContext: ls.CompletionContext): monaco.languages.CompletionContext; | ||
export declare function toCompletionContext(completionContext: lsp.CompletionContext): monaco.languages.CompletionContext; | ||
//# sourceMappingURL=completionContext.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor completion item to an LSP completion item. | ||
*/ | ||
export declare function fromCompletionItem(completionItem: monaco.languages.CompletionItem): ls.CompletionItem; | ||
export declare function fromCompletionItem(completionItem: monaco.languages.CompletionItem): lsp.CompletionItem; | ||
interface ToCompletionItemOptions { | ||
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
itemDefaults?: ls.CompletionList['itemDefaults'] | undefined; | ||
itemDefaults?: lsp.CompletionList['itemDefaults'] | undefined; | ||
/** | ||
@@ -34,4 +34,4 @@ * A fallback range to use in case the completion item doesn’t provide one. | ||
*/ | ||
export declare function toCompletionItem(completionItem: ls.CompletionItem, options: ToCompletionItemOptions): monaco.languages.CompletionItem; | ||
export declare function toCompletionItem(completionItem: lsp.CompletionItem, options: ToCompletionItemOptions): monaco.languages.CompletionItem; | ||
export {}; | ||
//# sourceMappingURL=completionItem.d.ts.map |
@@ -133,3 +133,3 @@ import { fromCommand, toCommand } from './command.js'; | ||
const result = { | ||
insertText: text !== null && text !== void 0 ? text : '', | ||
insertText: text !== null && text !== void 0 ? text : completionItem.label, | ||
kind: completionItem.kind == null | ||
@@ -136,0 +136,0 @@ ? (18) |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor completion item kind to an LSP completion item kind. | ||
*/ | ||
export declare function fromCompletionItemKind(kind: monaco.languages.CompletionItemKind): ls.CompletionItemKind | undefined; | ||
export declare function fromCompletionItemKind(kind: monaco.languages.CompletionItemKind): lsp.CompletionItemKind | undefined; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP completion item kind to a Monaco editor completion item kind. | ||
*/ | ||
export declare function toCompletionItemKind(kind: ls.CompletionItemKind): monaco.languages.CompletionItemKind; | ||
export declare function toCompletionItemKind(kind: lsp.CompletionItemKind): monaco.languages.CompletionItemKind; | ||
//# sourceMappingURL=completionItemKind.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor completion item tag to an LSP completion item tag. | ||
*/ | ||
export declare function fromCompletionItemTag(tag: monaco.languages.CompletionItemTag): ls.CompletionItemTag; | ||
export declare function fromCompletionItemTag(tag: monaco.languages.CompletionItemTag): lsp.CompletionItemTag; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP completion item tag to a Monaco editor completion item tag. | ||
*/ | ||
export declare function toCompletionItemTag(tag: ls.CompletionItemTag): monaco.languages.CompletionItemTag; | ||
export declare function toCompletionItemTag(tag: lsp.CompletionItemTag): monaco.languages.CompletionItemTag; | ||
//# sourceMappingURL=completionItemTag.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor completion list to an LSP completion list. | ||
*/ | ||
export declare function fromCompletionList(completionList: monaco.languages.CompletionList): ls.CompletionList; | ||
export declare function fromCompletionList(completionList: monaco.languages.CompletionList): lsp.CompletionList; | ||
interface ToCompletionListOptions { | ||
@@ -29,4 +29,4 @@ /** | ||
*/ | ||
export declare function toCompletionList(completionList: ls.CompletionList, options: ToCompletionListOptions): monaco.languages.CompletionList; | ||
export declare function toCompletionList(completionList: lsp.CompletionList, options: ToCompletionListOptions): monaco.languages.CompletionList; | ||
export {}; | ||
//# sourceMappingURL=completionList.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor completion trigger kind to an LSP completion trigger kind. | ||
*/ | ||
export declare function fromCompletionTriggerKind(kind: monaco.languages.CompletionTriggerKind): ls.CompletionTriggerKind; | ||
export declare function fromCompletionTriggerKind(kind: monaco.languages.CompletionTriggerKind): lsp.CompletionTriggerKind; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP completion trigger kind to a Monaco editor completion trigger kind. | ||
*/ | ||
export declare function toCompletionTriggerKind(kind: ls.CompletionTriggerKind): monaco.languages.CompletionTriggerKind; | ||
export declare function toCompletionTriggerKind(kind: lsp.CompletionTriggerKind): monaco.languages.CompletionTriggerKind; | ||
//# sourceMappingURL=completionTriggerKind.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor definition to an LSP definition. | ||
*/ | ||
export declare function fromDefinition(definition: monaco.languages.Definition): ls.Definition; | ||
export declare function fromDefinition(definition: monaco.languages.Definition): lsp.Definition; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP definition to a Monaco editor definition. | ||
*/ | ||
export declare function toDefinition(definition: ls.Definition): monaco.languages.Definition; | ||
export declare function toDefinition(definition: lsp.Definition): monaco.languages.Definition; | ||
//# sourceMappingURL=definition.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor document highlight to an LSP document highlight. | ||
*/ | ||
export declare function fromDocumentHighlight(documentHighlight: monaco.languages.DocumentHighlight): ls.DocumentHighlight; | ||
export declare function fromDocumentHighlight(documentHighlight: monaco.languages.DocumentHighlight): lsp.DocumentHighlight; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP document highlight to a Monaco editor document highlight. | ||
*/ | ||
export declare function toDocumentHighlight(documentHighlight: ls.DocumentHighlight): monaco.languages.DocumentHighlight; | ||
export declare function toDocumentHighlight(documentHighlight: lsp.DocumentHighlight): monaco.languages.DocumentHighlight; | ||
//# sourceMappingURL=documentHighlight.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor document highlight kind to an LSP document highlight kind. | ||
*/ | ||
export declare function fromDocumentHighlightKind(kind: monaco.languages.DocumentHighlightKind): ls.DocumentHighlightKind; | ||
export declare function fromDocumentHighlightKind(kind: monaco.languages.DocumentHighlightKind): lsp.DocumentHighlightKind; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP document highlight kind to a Monaco editor document highlight kind. | ||
*/ | ||
export declare function toDocumentHighlightKind(kind: ls.DocumentHighlightKind): monaco.languages.DocumentHighlightKind; | ||
export declare function toDocumentHighlightKind(kind: lsp.DocumentHighlightKind): monaco.languages.DocumentHighlightKind; | ||
//# sourceMappingURL=documentHighlightKind.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor document symbol to an LSP document symbol. | ||
*/ | ||
export declare function fromDocumentSymbol(documentSymbol: monaco.languages.DocumentSymbol): ls.DocumentSymbol; | ||
export declare function fromDocumentSymbol(documentSymbol: monaco.languages.DocumentSymbol): lsp.DocumentSymbol; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP document symbol to a Monaco editor document symbol. | ||
*/ | ||
export declare function toDocumentSymbol(documentSymbol: ls.DocumentSymbol): monaco.languages.DocumentSymbol; | ||
export declare function toDocumentSymbol(documentSymbol: lsp.DocumentSymbol): monaco.languages.DocumentSymbol; | ||
//# sourceMappingURL=documentSymbol.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor folding range to an LSP folding range. | ||
*/ | ||
export declare function fromFoldingRange(foldingRange: monaco.languages.FoldingRange): ls.FoldingRange; | ||
export declare function fromFoldingRange(foldingRange: monaco.languages.FoldingRange): lsp.FoldingRange; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP folding range to a Monaco editor folding range. | ||
*/ | ||
export declare function toFoldingRange(foldingRange: ls.FoldingRange): monaco.languages.FoldingRange; | ||
export declare function toFoldingRange(foldingRange: lsp.FoldingRange): monaco.languages.FoldingRange; | ||
//# sourceMappingURL=foldingRange.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor formatting options to an LSP formatting options. | ||
*/ | ||
export declare function fromFormattingOptions(formattingOptions: monaco.languages.FormattingOptions): ls.FormattingOptions; | ||
export declare function fromFormattingOptions(formattingOptions: monaco.languages.FormattingOptions): lsp.FormattingOptions; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP formatting options to a Monaco editor formatting options. | ||
*/ | ||
export declare function toFormattingOptions(formattingOptions: ls.FormattingOptions): monaco.languages.FormattingOptions; | ||
export declare function toFormattingOptions(formattingOptions: lsp.FormattingOptions): monaco.languages.FormattingOptions; | ||
//# sourceMappingURL=formattingOptions.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor hover to an LSP hover. | ||
*/ | ||
export declare function fromHover(hover: monaco.languages.Hover): ls.Hover; | ||
export declare function fromHover(hover: monaco.languages.Hover): lsp.Hover; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP hover to a Monaco editor hover. | ||
*/ | ||
export declare function toHover(hover: ls.Hover): monaco.languages.Hover; | ||
export declare function toHover(hover: lsp.Hover): monaco.languages.Hover; | ||
//# sourceMappingURL=hover.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor inlay hint to an LSP inlay hint. | ||
*/ | ||
export declare function fromInlayHint(inlayHint: monaco.languages.InlayHint): ls.InlayHint; | ||
export declare function fromInlayHint(inlayHint: monaco.languages.InlayHint): lsp.InlayHint; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP inlay hint to a Monaco editor inlay hint. | ||
*/ | ||
export declare function toInlayHint(inlayHint: ls.InlayHint): monaco.languages.InlayHint; | ||
export declare function toInlayHint(inlayHint: lsp.InlayHint): monaco.languages.InlayHint; | ||
//# sourceMappingURL=inlayHint.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor inlay hint kind to an LSP inlay hint kind. | ||
*/ | ||
export declare function fromInlayHintKind(inlayHintKind: monaco.languages.InlayHintKind): ls.InlayHintKind; | ||
export declare function fromInlayHintKind(inlayHintKind: monaco.languages.InlayHintKind): lsp.InlayHintKind; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP inlay hint kind to a Monaco editor inlay hint kind. | ||
*/ | ||
export declare function toInlayHintKind(inlayHintKind: ls.InlayHintKind): monaco.languages.InlayHintKind; | ||
export declare function toInlayHintKind(inlayHintKind: lsp.InlayHintKind): monaco.languages.InlayHintKind; | ||
//# sourceMappingURL=inlayHintKind.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor inlay hint label part to an LSP inlay hint label part. | ||
*/ | ||
export declare function fromInlayHintLabelPart(inlayHintLabelPart: monaco.languages.InlayHintLabelPart): ls.InlayHintLabelPart; | ||
export declare function fromInlayHintLabelPart(inlayHintLabelPart: monaco.languages.InlayHintLabelPart): lsp.InlayHintLabelPart; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP inlay hint label part to a Monaco editor inlay hint label part. | ||
*/ | ||
export declare function toInlayHintLabelPart(inlayHintLabelPart: ls.InlayHintLabelPart): monaco.languages.InlayHintLabelPart; | ||
export declare function toInlayHintLabelPart(inlayHintLabelPart: lsp.InlayHintLabelPart): monaco.languages.InlayHintLabelPart; | ||
//# sourceMappingURL=inlayHintLabelPart.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor link to an LSP document link. | ||
*/ | ||
export declare function fromLink(link: monaco.languages.ILink): ls.DocumentLink; | ||
export declare function fromLink(link: monaco.languages.ILink): lsp.DocumentLink; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP document link to a Monaco editor link. | ||
*/ | ||
export declare function toLink(documentLink: ls.DocumentLink): monaco.languages.ILink; | ||
export declare function toLink(documentLink: lsp.DocumentLink): monaco.languages.ILink; | ||
//# sourceMappingURL=link.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert Monaco editor linked editing ranges to LSP linked editing ranges. | ||
*/ | ||
export declare function fromLinkedEditingRanges(linkedEditingRanges: monaco.languages.LinkedEditingRanges): ls.LinkedEditingRanges; | ||
export declare function fromLinkedEditingRanges(linkedEditingRanges: monaco.languages.LinkedEditingRanges): lsp.LinkedEditingRanges; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert LSP linked editing ranges to Monaco editor linked editing ranges. | ||
*/ | ||
export declare function toLinkedEditingRanges(linkedEditingRanges: ls.LinkedEditingRanges): monaco.languages.LinkedEditingRanges; | ||
export declare function toLinkedEditingRanges(linkedEditingRanges: lsp.LinkedEditingRanges): monaco.languages.LinkedEditingRanges; | ||
//# sourceMappingURL=linkedEditingRanges.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor location to an LSP location. | ||
*/ | ||
export declare function fromLocation(location: monaco.languages.Location): ls.Location; | ||
export declare function fromLocation(location: monaco.languages.Location): lsp.Location; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP location to a Monaco editor location. | ||
*/ | ||
export declare function toLocation(location: ls.Location): monaco.languages.Location; | ||
export declare function toLocation(location: lsp.Location): monaco.languages.Location; | ||
//# sourceMappingURL=location.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor location link to an LSP location link. | ||
*/ | ||
export declare function fromLocationLink(locationLink: monaco.languages.LocationLink): ls.LocationLink; | ||
export declare function fromLocationLink(locationLink: monaco.languages.LocationLink): lsp.LocationLink; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP location link to a Monaco editor location link. | ||
*/ | ||
export declare function toLocationLink(locationLink: ls.LocationLink): monaco.languages.LocationLink; | ||
export declare function toLocationLink(locationLink: lsp.LocationLink): monaco.languages.LocationLink; | ||
//# sourceMappingURL=locationLink.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor markdown string to an LSP markup content. | ||
*/ | ||
export declare function fromMarkdownString(markdownString: monaco.IMarkdownString): ls.MarkupContent; | ||
export declare function fromMarkdownString(markdownString: monaco.IMarkdownString): lsp.MarkupContent; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP markup content to a Monaco editor markdown string. | ||
*/ | ||
export declare function toMarkdownString(markupContent: ls.MarkupContent): monaco.IMarkdownString; | ||
export declare function toMarkdownString(markupContent: lsp.MarkupContent): monaco.IMarkdownString; | ||
//# sourceMappingURL=markdownString.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor marker data to an LSP diagnostic. | ||
*/ | ||
export declare function fromMarkerData(markerData: monaco.editor.IMarkerData): ls.Diagnostic; | ||
export declare function fromMarkerData(markerData: monaco.editor.IMarkerData): lsp.Diagnostic; | ||
export interface ToMarkerDataOptions { | ||
@@ -31,3 +31,3 @@ /** | ||
*/ | ||
export declare function toMarkerData(diagnostic: ls.Diagnostic, options?: ToMarkerDataOptions): monaco.editor.IMarkerData; | ||
export declare function toMarkerData(diagnostic: lsp.Diagnostic, options?: ToMarkerDataOptions): monaco.editor.IMarkerData; | ||
//# sourceMappingURL=markerData.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor marker severity to an LSP diagnostic severity. | ||
*/ | ||
export declare function fromMarkerSeverity(severity: monaco.MarkerSeverity): ls.DiagnosticSeverity; | ||
export declare function fromMarkerSeverity(severity: monaco.MarkerSeverity): lsp.DiagnosticSeverity; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP diagnostic severity to a Monaco editor marker severity. | ||
*/ | ||
export declare function toMarkerSeverity(severity: ls.DiagnosticSeverity): monaco.MarkerSeverity; | ||
export declare function toMarkerSeverity(severity: lsp.DiagnosticSeverity): monaco.MarkerSeverity; | ||
//# sourceMappingURL=markerSeverity.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor marker tag to an LSP diagnostic tag. | ||
*/ | ||
export declare function fromMarkerTag(tag: monaco.MarkerTag): ls.DiagnosticTag; | ||
export declare function fromMarkerTag(tag: monaco.MarkerTag): lsp.DiagnosticTag; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP diagnostic tag to a Monaco editor marker tag. | ||
*/ | ||
export declare function toMarkerTag(tag: ls.DiagnosticTag): monaco.MarkerTag; | ||
export declare function toMarkerTag(tag: lsp.DiagnosticTag): monaco.MarkerTag; | ||
//# sourceMappingURL=markerTag.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor parameter information to an LSP parameter information. | ||
*/ | ||
export declare function fromParameterInformation(parameterInformation: monaco.languages.ParameterInformation): ls.ParameterInformation; | ||
export declare function fromParameterInformation(parameterInformation: monaco.languages.ParameterInformation): lsp.ParameterInformation; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP parameter information to a Monaco editor parameter information. | ||
*/ | ||
export declare function toParameterInformation(parameterInformation: ls.ParameterInformation): monaco.languages.ParameterInformation; | ||
export declare function toParameterInformation(parameterInformation: lsp.ParameterInformation): monaco.languages.ParameterInformation; | ||
//# sourceMappingURL=parameterInformation.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor position to an LSP range. | ||
*/ | ||
export declare function fromPosition(position: monaco.IPosition): ls.Position; | ||
export declare function fromPosition(position: monaco.IPosition): lsp.Position; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP position to a Monaco editor position. | ||
*/ | ||
export declare function toPosition(position: ls.Position): monaco.IPosition; | ||
export declare function toPosition(position: lsp.Position): monaco.IPosition; | ||
//# sourceMappingURL=position.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor range to an LSP range. | ||
*/ | ||
export declare function fromRange(range: monaco.IRange): ls.Range; | ||
export declare function fromRange(range: monaco.IRange): lsp.Range; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP range to a Monaco editor range. | ||
*/ | ||
export declare function toRange(range: ls.Range): monaco.IRange; | ||
export declare function toRange(range: lsp.Range): monaco.IRange; | ||
//# sourceMappingURL=range.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor related information to an LSP diagnostic related information. | ||
*/ | ||
export declare function fromRelatedInformation(relatedInformation: monaco.editor.IRelatedInformation): ls.DiagnosticRelatedInformation; | ||
export declare function fromRelatedInformation(relatedInformation: monaco.editor.IRelatedInformation): lsp.DiagnosticRelatedInformation; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP diagnostic related information to a Monaco editor related information. | ||
*/ | ||
export declare function toRelatedInformation(relatedInformation: ls.DiagnosticRelatedInformation): monaco.editor.IRelatedInformation; | ||
export declare function toRelatedInformation(relatedInformation: lsp.DiagnosticRelatedInformation): monaco.editor.IRelatedInformation; | ||
//# sourceMappingURL=relatedInformation.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor selection range to an LSP selection range. | ||
*/ | ||
export declare function fromSelectionRange(selectionRange: monaco.languages.SelectionRange): ls.SelectionRange; | ||
export declare function fromSelectionRange(selectionRange: monaco.languages.SelectionRange): lsp.SelectionRange; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP selection range to a Monaco editor selection range. | ||
*/ | ||
export declare function toSelectionRange(selectionRange: ls.SelectionRange): monaco.languages.SelectionRange; | ||
export declare function toSelectionRange(selectionRange: lsp.SelectionRange): monaco.languages.SelectionRange; | ||
//# sourceMappingURL=selectionRange.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert Monaco editor semantic tokens to LSP semantic tokens. | ||
*/ | ||
export declare function fromSemanticTokens(semanticTokens: monaco.languages.SemanticTokens): ls.SemanticTokens; | ||
export declare function fromSemanticTokens(semanticTokens: monaco.languages.SemanticTokens): lsp.SemanticTokens; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert LSP semantic tokens to Monaco editor semantic tokens. | ||
*/ | ||
export declare function toSemanticTokens(semanticTokens: ls.SemanticTokens): monaco.languages.SemanticTokens; | ||
export declare function toSemanticTokens(semanticTokens: lsp.SemanticTokens): monaco.languages.SemanticTokens; | ||
//# sourceMappingURL=semanticTokens.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert Monaco editor semantic tokens to LSP semantic tokens. | ||
*/ | ||
export declare function fromSemanticTokensEdit(semanticTokensEdit: monaco.languages.SemanticTokensEdit): ls.SemanticTokensEdit; | ||
export declare function fromSemanticTokensEdit(semanticTokensEdit: monaco.languages.SemanticTokensEdit): lsp.SemanticTokensEdit; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert LSP semantic tokens to Monaco editor semantic tokens. | ||
*/ | ||
export declare function toSemanticTokensEdit(semanticTokensEdit: ls.SemanticTokensEdit): monaco.languages.SemanticTokensEdit; | ||
export declare function toSemanticTokensEdit(semanticTokensEdit: lsp.SemanticTokensEdit): monaco.languages.SemanticTokensEdit; | ||
//# sourceMappingURL=semanticTokensEdit.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert Monaco editsor semantic tokens edits to an LSP semantic tokens delta. | ||
*/ | ||
export declare function fromSemanticTokensEdits(semanticTokensEdits: monaco.languages.SemanticTokensEdits): ls.SemanticTokensDelta; | ||
export declare function fromSemanticTokensEdits(semanticTokensEdits: monaco.languages.SemanticTokensEdits): lsp.SemanticTokensDelta; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP semantic tokens delta to Monaco editsor semantic tokens edits. | ||
*/ | ||
export declare function toSemanticTokensEdits(semanticTokensDelta: ls.SemanticTokensDelta): monaco.languages.SemanticTokensEdits; | ||
export declare function toSemanticTokensEdits(semanticTokensDelta: lsp.SemanticTokensDelta): monaco.languages.SemanticTokensEdits; | ||
//# sourceMappingURL=semanticTokensEdits.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor signature help to an LSP signature help. | ||
*/ | ||
export declare function fromSignatureHelp(signatureHelp: monaco.languages.SignatureHelp): ls.SignatureHelp; | ||
export declare function fromSignatureHelp(signatureHelp: monaco.languages.SignatureHelp): lsp.SignatureHelp; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP signature help to a Monaco editor signature help. | ||
*/ | ||
export declare function toSignatureHelp(signatureHelp: ls.SignatureHelp): monaco.languages.SignatureHelp; | ||
export declare function toSignatureHelp(signatureHelp: lsp.SignatureHelp): monaco.languages.SignatureHelp; | ||
//# sourceMappingURL=signatureHelp.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor signature help context to an LSP signature help context. | ||
*/ | ||
export declare function fromSignatureHelpContext(signatureHelpContext: monaco.languages.SignatureHelpContext): ls.SignatureHelpContext; | ||
export declare function fromSignatureHelpContext(signatureHelpContext: monaco.languages.SignatureHelpContext): lsp.SignatureHelpContext; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP signature help context to a Monaco editor signature help context. | ||
*/ | ||
export declare function toSignatureHelpContext(signatureHelpContext: ls.SignatureHelpContext): monaco.languages.SignatureHelpContext; | ||
export declare function toSignatureHelpContext(signatureHelpContext: lsp.SignatureHelpContext): monaco.languages.SignatureHelpContext; | ||
//# sourceMappingURL=signatureHelpContext.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor signature help trigger kind to an LSP signature help trigger kind. | ||
*/ | ||
export declare function fromSignatureHelpTriggerKind(signatureHelpTriggerKind: monaco.languages.SignatureHelpTriggerKind): ls.SignatureHelpTriggerKind; | ||
export declare function fromSignatureHelpTriggerKind(signatureHelpTriggerKind: monaco.languages.SignatureHelpTriggerKind): lsp.SignatureHelpTriggerKind; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP signature help trigger kind to a Monaco editor signature help trigger kind. | ||
*/ | ||
export declare function toSignatureHelpTriggerKind(signatureHelpTriggerKind: ls.SignatureHelpTriggerKind): monaco.languages.SignatureHelpTriggerKind; | ||
export declare function toSignatureHelpTriggerKind(signatureHelpTriggerKind: lsp.SignatureHelpTriggerKind): monaco.languages.SignatureHelpTriggerKind; | ||
//# sourceMappingURL=signatureHelpTriggerKind.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor signature information to an LSP signature information. | ||
*/ | ||
export declare function fromSignatureInformation(signatureInformation: monaco.languages.SignatureInformation): ls.SignatureInformation; | ||
export declare function fromSignatureInformation(signatureInformation: monaco.languages.SignatureInformation): lsp.SignatureInformation; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP signature information to a Monaco editor signature information. | ||
*/ | ||
export declare function toSignatureInformation(signatureInformation: ls.SignatureInformation): monaco.languages.SignatureInformation; | ||
export declare function toSignatureInformation(signatureInformation: lsp.SignatureInformation): monaco.languages.SignatureInformation; | ||
//# sourceMappingURL=signatureInformation.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor single edit operation to an LSP text edit. | ||
*/ | ||
export declare function fromSingleEditOperation(singleEditOperation: monaco.editor.ISingleEditOperation): ls.TextEdit; | ||
export declare function fromSingleEditOperation(singleEditOperation: monaco.editor.ISingleEditOperation): lsp.TextEdit; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP text edit to a Monaco editor single edit operation. | ||
*/ | ||
export declare function toSingleEditOperation(textEdit: ls.TextEdit): monaco.editor.ISingleEditOperation; | ||
export declare function toSingleEditOperation(textEdit: lsp.TextEdit): monaco.editor.ISingleEditOperation; | ||
//# sourceMappingURL=singleEditOperation.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor symbol kind to an LSP symbol kind. | ||
*/ | ||
export declare function fromSymbolKind(symbolKind: monaco.languages.SymbolKind): ls.SymbolKind; | ||
export declare function fromSymbolKind(symbolKind: monaco.languages.SymbolKind): lsp.SymbolKind; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP symbol kind to a Monaco editor symbol kind. | ||
*/ | ||
export declare function toSymbolKind(symbolKind: ls.SymbolKind): monaco.languages.SymbolKind; | ||
export declare function toSymbolKind(symbolKind: lsp.SymbolKind): monaco.languages.SymbolKind; | ||
//# sourceMappingURL=symbolKind.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor symbol tag to an LSP symbol tag. | ||
*/ | ||
export declare function fromSymbolTag(symbolTag: monaco.languages.SymbolTag): ls.SymbolTag; | ||
export declare function fromSymbolTag(symbolTag: monaco.languages.SymbolTag): lsp.SymbolTag; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP symbol tag to a Monaco editor symbol tag. | ||
*/ | ||
export declare function toSymbolTag(symbolTag: ls.SymbolTag): monaco.languages.SymbolTag; | ||
export declare function toSymbolTag(symbolTag: lsp.SymbolTag): monaco.languages.SymbolTag; | ||
//# sourceMappingURL=symbolTag.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor text edit to an LSP text edit. | ||
*/ | ||
export declare function fromTextEdit(textEdit: monaco.languages.TextEdit): ls.TextEdit; | ||
export declare function fromTextEdit(textEdit: monaco.languages.TextEdit): lsp.TextEdit; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP text edit to a Monaco editor text edit. | ||
*/ | ||
export declare function toTextEdit(textEdit: ls.TextEdit): monaco.languages.TextEdit; | ||
export declare function toTextEdit(textEdit: lsp.TextEdit): monaco.languages.TextEdit; | ||
//# sourceMappingURL=textEdit.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
/** | ||
@@ -11,3 +11,3 @@ * Convert a Monaco editor workspace edit to an LSP workspace edit. | ||
*/ | ||
export declare function fromWorkspaceEdit(workspaceEdit: monaco.languages.WorkspaceEdit): ls.WorkspaceEdit; | ||
export declare function fromWorkspaceEdit(workspaceEdit: monaco.languages.WorkspaceEdit): lsp.WorkspaceEdit; | ||
/** | ||
@@ -21,3 +21,3 @@ * Convert an LSP workspace edit to a Monaco editor workspace edit. | ||
*/ | ||
export declare function toWorkspaceEdit(workspaceEdit: ls.WorkspaceEdit): monaco.languages.WorkspaceEdit; | ||
export declare function toWorkspaceEdit(workspaceEdit: lsp.WorkspaceEdit): monaco.languages.WorkspaceEdit; | ||
//# sourceMappingURL=workspaceEdit.d.ts.map |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
type WorkspaceFileEdit = ls.CreateFile | ls.DeleteFile | ls.RenameFile; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
type WorkspaceFileEdit = lsp.CreateFile | lsp.DeleteFile | lsp.RenameFile; | ||
/** | ||
@@ -5,0 +5,0 @@ * Convert Monaco editor workspace file edit options to LSP workspace file edit options. |
import type * as monaco from 'monaco-types'; | ||
import type * as ls from 'vscode-languageserver-protocol'; | ||
type LSFileEditOptions = ls.CreateFileOptions & ls.DeleteFileOptions & ls.RenameFileOptions; | ||
import type * as lsp from 'vscode-languageserver-protocol'; | ||
type LSPFileEditOptions = lsp.CreateFileOptions & lsp.DeleteFileOptions & lsp.RenameFileOptions; | ||
/** | ||
@@ -12,3 +12,3 @@ * Convert Monaco editor workspace file edit options to LSP workspace file edit options. | ||
*/ | ||
export declare function fromWorkspaceFileEditOptions(options: monaco.languages.WorkspaceFileEditOptions): LSFileEditOptions; | ||
export declare function fromWorkspaceFileEditOptions(options: monaco.languages.WorkspaceFileEditOptions): LSPFileEditOptions; | ||
/** | ||
@@ -22,4 +22,4 @@ * Convert LSP workspace file edit options to Monaco editor workspace file edit options. | ||
*/ | ||
export declare function toWorkspaceFileEditOptions(options: LSFileEditOptions): monaco.languages.WorkspaceFileEditOptions; | ||
export declare function toWorkspaceFileEditOptions(options: LSPFileEditOptions): monaco.languages.WorkspaceFileEditOptions; | ||
export {}; | ||
//# sourceMappingURL=workspaceFileEditOptions.d.ts.map |
{ | ||
"name": "monaco-languageserver-types", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "Convert between language server types and Monaco editor types", | ||
@@ -39,4 +39,4 @@ "type": "module", | ||
"eslint-config-remcohaszing": "^10.0.0", | ||
"jsdom": "^23.0.0", | ||
"monaco-editor": "^0.44.0", | ||
"jsdom": "^24.0.0", | ||
"monaco-editor": "^0.46.0", | ||
"remark-cli": "^11.0.0", | ||
@@ -43,0 +43,0 @@ "remark-preset-remcohaszing": "^2.0.0", |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -15,4 +15,4 @@ import { fromMarkerData, toMarkerData } from './markerData.js' | ||
*/ | ||
export function fromCodeAction(codeAction: monaco.languages.CodeAction): ls.CodeAction { | ||
const result: ls.CodeAction = { | ||
export function fromCodeAction(codeAction: monaco.languages.CodeAction): lsp.CodeAction { | ||
const result: lsp.CodeAction = { | ||
title: codeAction.title | ||
@@ -64,3 +64,3 @@ } | ||
export function toCodeAction( | ||
codeAction: ls.CodeAction, | ||
codeAction: lsp.CodeAction, | ||
options?: ToCodeActionOptions | ||
@@ -67,0 +67,0 @@ ): monaco.languages.CodeAction { |
import type * as monaco from 'monaco-types' | ||
import { type Writable } from 'type-fest' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -18,4 +18,4 @@ import { fromCodeActionTriggerType } from './codeActionTriggerType.js' | ||
codeActionContext: monaco.languages.CodeActionContext | ||
): ls.CodeActionContext { | ||
const result: ls.CodeActionContext = { | ||
): lsp.CodeActionContext { | ||
const result: lsp.CodeActionContext = { | ||
diagnostics: codeActionContext.markers.map(fromMarkerData), | ||
@@ -52,3 +52,3 @@ triggerKind: fromCodeActionTriggerType(codeActionContext.trigger) | ||
export function toCodeActionContext( | ||
codeActionContext: ls.CodeActionContext, | ||
codeActionContext: lsp.CodeActionContext, | ||
options?: ToCodeActionContextOptions | ||
@@ -55,0 +55,0 @@ ): monaco.languages.CodeActionContext { |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -14,3 +14,3 @@ /** | ||
type: monaco.languages.CodeActionTriggerType | ||
): ls.CodeActionTriggerKind { | ||
): lsp.CodeActionTriggerKind { | ||
return type | ||
@@ -28,5 +28,5 @@ } | ||
export function toCodeActionTriggerType( | ||
kind: ls.CodeActionTriggerKind | ||
kind: lsp.CodeActionTriggerKind | ||
): monaco.languages.CodeActionTriggerType { | ||
return kind | ||
} |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -15,4 +15,4 @@ import { fromCommand, toCommand } from './command.js' | ||
*/ | ||
export function fromCodeLens(codeLens: monaco.languages.CodeLens): ls.CodeLens { | ||
const result: ls.CodeLens = { | ||
export function fromCodeLens(codeLens: monaco.languages.CodeLens): lsp.CodeLens { | ||
const result: lsp.CodeLens = { | ||
range: fromRange(codeLens.range) | ||
@@ -36,3 +36,3 @@ } | ||
*/ | ||
export function toCodeLens(codeLens: ls.CodeLens): monaco.languages.CodeLens { | ||
export function toCodeLens(codeLens: lsp.CodeLens): monaco.languages.CodeLens { | ||
const result: monaco.languages.CodeLens = { | ||
@@ -39,0 +39,0 @@ range: toRange(codeLens.range) |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
export function fromColor(color: monaco.languages.IColor): ls.Color { | ||
export function fromColor(color: monaco.languages.IColor): lsp.Color { | ||
return { | ||
@@ -30,3 +30,3 @@ red: color.red, | ||
*/ | ||
export function toColor(color: ls.Color): monaco.languages.IColor { | ||
export function toColor(color: lsp.Color): monaco.languages.IColor { | ||
return { | ||
@@ -33,0 +33,0 @@ red: color.red, |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -17,3 +17,3 @@ import { fromColor, toColor } from './color.js' | ||
colorInformation: monaco.languages.IColorInformation | ||
): ls.ColorInformation { | ||
): lsp.ColorInformation { | ||
return { | ||
@@ -34,3 +34,3 @@ range: fromRange(colorInformation.range), | ||
export function toColorInformation( | ||
colorInformation: ls.ColorInformation | ||
colorInformation: lsp.ColorInformation | ||
): monaco.languages.IColorInformation { | ||
@@ -37,0 +37,0 @@ return { |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -16,4 +16,4 @@ import { fromTextEdit, toTextEdit } from './textEdit.js' | ||
colorPresentation: monaco.languages.IColorPresentation | ||
): ls.ColorPresentation { | ||
const result: ls.ColorPresentation = { | ||
): lsp.ColorPresentation { | ||
const result: lsp.ColorPresentation = { | ||
label: colorPresentation.label | ||
@@ -42,3 +42,3 @@ } | ||
export function toColorPresentation( | ||
colorPresentation: ls.ColorPresentation | ||
colorPresentation: lsp.ColorPresentation | ||
): monaco.languages.IColorPresentation { | ||
@@ -45,0 +45,0 @@ const result: monaco.languages.IColorPresentation = { |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -12,4 +12,4 @@ /** | ||
*/ | ||
export function fromCommand(command: monaco.languages.Command): ls.Command { | ||
const result: ls.Command = { | ||
export function fromCommand(command: monaco.languages.Command): lsp.Command { | ||
const result: lsp.Command = { | ||
title: command.title, | ||
@@ -34,3 +34,3 @@ command: command.id | ||
*/ | ||
export function toCommand(command: ls.Command): monaco.languages.Command { | ||
export function toCommand(command: lsp.Command): monaco.languages.Command { | ||
const result: monaco.languages.Command = { | ||
@@ -37,0 +37,0 @@ title: command.title, |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -16,4 +16,4 @@ import { fromCompletionTriggerKind, toCompletionTriggerKind } from './completionTriggerKind.js' | ||
completionContext: monaco.languages.CompletionContext | ||
): ls.CompletionContext { | ||
const result: ls.CompletionContext = { | ||
): lsp.CompletionContext { | ||
const result: lsp.CompletionContext = { | ||
triggerKind: fromCompletionTriggerKind(completionContext.triggerKind) | ||
@@ -38,3 +38,3 @@ } | ||
export function toCompletionContext( | ||
completionContext: ls.CompletionContext | ||
completionContext: lsp.CompletionContext | ||
): monaco.languages.CompletionContext { | ||
@@ -41,0 +41,0 @@ const result: monaco.languages.CompletionContext = { |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -24,3 +24,3 @@ import { fromCommand, toCommand } from './command.js' | ||
newText: string | ||
): ls.InsertReplaceEdit | ls.TextEdit { | ||
): lsp.InsertReplaceEdit | lsp.TextEdit { | ||
if ('insert' in edit) { | ||
@@ -50,4 +50,4 @@ return { | ||
completionItem: monaco.languages.CompletionItem | ||
): ls.CompletionItem { | ||
const result: ls.CompletionItem = { | ||
): lsp.CompletionItem { | ||
const result: lsp.CompletionItem = { | ||
kind: fromCompletionItemKind(completionItem.kind), | ||
@@ -89,3 +89,3 @@ label: | ||
) { | ||
result.insertTextFormat = 2 satisfies typeof ls.InsertTextFormat.Snippet | ||
result.insertTextFormat = 2 satisfies typeof lsp.InsertTextFormat.Snippet | ||
} else if ( | ||
@@ -95,3 +95,3 @@ completionItem.insertTextRules === | ||
) { | ||
result.insertTextMode = 2 satisfies typeof ls.InsertTextMode.adjustIndentation | ||
result.insertTextMode = 2 satisfies typeof lsp.InsertTextMode.adjustIndentation | ||
} | ||
@@ -118,3 +118,3 @@ | ||
*/ | ||
itemDefaults?: ls.CompletionList['itemDefaults'] | undefined | ||
itemDefaults?: lsp.CompletionList['itemDefaults'] | undefined | ||
@@ -136,3 +136,3 @@ /** | ||
function toCompletionItemRange( | ||
edit: ls.Range | ls.TextEdit | Omit<ls.InsertReplaceEdit, 'newText'> | ||
edit: lsp.Range | lsp.TextEdit | Omit<lsp.InsertReplaceEdit, 'newText'> | ||
): monaco.languages.CompletionItem['range'] { | ||
@@ -164,3 +164,3 @@ if ('range' in edit) { | ||
export function toCompletionItem( | ||
completionItem: ls.CompletionItem, | ||
completionItem: lsp.CompletionItem, | ||
options: ToCompletionItemOptions | ||
@@ -187,3 +187,3 @@ ): monaco.languages.CompletionItem { | ||
const result: monaco.languages.CompletionItem = { | ||
insertText: text ?? '', | ||
insertText: text ?? completionItem.label, | ||
kind: | ||
@@ -190,0 +190,0 @@ completionItem.kind == null |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -14,77 +14,77 @@ /** | ||
kind: monaco.languages.CompletionItemKind | ||
): ls.CompletionItemKind | undefined { | ||
): lsp.CompletionItemKind | undefined { | ||
if (kind === (18 satisfies monaco.languages.CompletionItemKind.Text)) { | ||
return 1 satisfies typeof ls.CompletionItemKind.Text | ||
return 1 satisfies typeof lsp.CompletionItemKind.Text | ||
} | ||
if (kind === (0 satisfies monaco.languages.CompletionItemKind.Method)) { | ||
return 2 satisfies typeof ls.CompletionItemKind.Method | ||
return 2 satisfies typeof lsp.CompletionItemKind.Method | ||
} | ||
if (kind === (1 satisfies monaco.languages.CompletionItemKind.Function)) { | ||
return 3 satisfies typeof ls.CompletionItemKind.Function | ||
return 3 satisfies typeof lsp.CompletionItemKind.Function | ||
} | ||
if (kind === (2 satisfies monaco.languages.CompletionItemKind.Constructor)) { | ||
return 4 satisfies typeof ls.CompletionItemKind.Constructor | ||
return 4 satisfies typeof lsp.CompletionItemKind.Constructor | ||
} | ||
if (kind === (3 satisfies monaco.languages.CompletionItemKind.Field)) { | ||
return 5 satisfies typeof ls.CompletionItemKind.Field | ||
return 5 satisfies typeof lsp.CompletionItemKind.Field | ||
} | ||
if (kind === (4 satisfies monaco.languages.CompletionItemKind.Variable)) { | ||
return 6 satisfies typeof ls.CompletionItemKind.Variable | ||
return 6 satisfies typeof lsp.CompletionItemKind.Variable | ||
} | ||
if (kind === (5 satisfies monaco.languages.CompletionItemKind.Class)) { | ||
return 7 satisfies typeof ls.CompletionItemKind.Class | ||
return 7 satisfies typeof lsp.CompletionItemKind.Class | ||
} | ||
if (kind === (7 satisfies monaco.languages.CompletionItemKind.Interface)) { | ||
return 8 satisfies typeof ls.CompletionItemKind.Interface | ||
return 8 satisfies typeof lsp.CompletionItemKind.Interface | ||
} | ||
if (kind === (8 satisfies monaco.languages.CompletionItemKind.Module)) { | ||
return 9 satisfies typeof ls.CompletionItemKind.Module | ||
return 9 satisfies typeof lsp.CompletionItemKind.Module | ||
} | ||
if (kind === (9 satisfies monaco.languages.CompletionItemKind.Property)) { | ||
return 10 satisfies typeof ls.CompletionItemKind.Property | ||
return 10 satisfies typeof lsp.CompletionItemKind.Property | ||
} | ||
if (kind === (12 satisfies monaco.languages.CompletionItemKind.Unit)) { | ||
return 11 satisfies typeof ls.CompletionItemKind.Unit | ||
return 11 satisfies typeof lsp.CompletionItemKind.Unit | ||
} | ||
if (kind === (13 satisfies monaco.languages.CompletionItemKind.Value)) { | ||
return 12 satisfies typeof ls.CompletionItemKind.Value | ||
return 12 satisfies typeof lsp.CompletionItemKind.Value | ||
} | ||
if (kind === (15 satisfies monaco.languages.CompletionItemKind.Enum)) { | ||
return 13 satisfies typeof ls.CompletionItemKind.Enum | ||
return 13 satisfies typeof lsp.CompletionItemKind.Enum | ||
} | ||
if (kind === (17 satisfies monaco.languages.CompletionItemKind.Keyword)) { | ||
return 14 satisfies typeof ls.CompletionItemKind.Keyword | ||
return 14 satisfies typeof lsp.CompletionItemKind.Keyword | ||
} | ||
if (kind === (27 satisfies monaco.languages.CompletionItemKind.Snippet)) { | ||
return 15 satisfies typeof ls.CompletionItemKind.Snippet | ||
return 15 satisfies typeof lsp.CompletionItemKind.Snippet | ||
} | ||
if (kind === (19 satisfies monaco.languages.CompletionItemKind.Color)) { | ||
return 16 satisfies typeof ls.CompletionItemKind.Color | ||
return 16 satisfies typeof lsp.CompletionItemKind.Color | ||
} | ||
if (kind === (20 satisfies monaco.languages.CompletionItemKind.File)) { | ||
return 17 satisfies typeof ls.CompletionItemKind.File | ||
return 17 satisfies typeof lsp.CompletionItemKind.File | ||
} | ||
if (kind === (21 satisfies monaco.languages.CompletionItemKind.Reference)) { | ||
return 18 satisfies typeof ls.CompletionItemKind.Reference | ||
return 18 satisfies typeof lsp.CompletionItemKind.Reference | ||
} | ||
if (kind === (23 satisfies monaco.languages.CompletionItemKind.Folder)) { | ||
return 19 satisfies typeof ls.CompletionItemKind.Folder | ||
return 19 satisfies typeof lsp.CompletionItemKind.Folder | ||
} | ||
if (kind === (16 satisfies monaco.languages.CompletionItemKind.EnumMember)) { | ||
return 20 satisfies typeof ls.CompletionItemKind.EnumMember | ||
return 20 satisfies typeof lsp.CompletionItemKind.EnumMember | ||
} | ||
if (kind === (14 satisfies monaco.languages.CompletionItemKind.Constant)) { | ||
return 21 satisfies typeof ls.CompletionItemKind.Constant | ||
return 21 satisfies typeof lsp.CompletionItemKind.Constant | ||
} | ||
if (kind === (6 satisfies monaco.languages.CompletionItemKind.Struct)) { | ||
return 22 satisfies typeof ls.CompletionItemKind.Struct | ||
return 22 satisfies typeof lsp.CompletionItemKind.Struct | ||
} | ||
if (kind === (10 satisfies monaco.languages.CompletionItemKind.Event)) { | ||
return 23 satisfies typeof ls.CompletionItemKind.Event | ||
return 23 satisfies typeof lsp.CompletionItemKind.Event | ||
} | ||
if (kind === (11 satisfies monaco.languages.CompletionItemKind.Operator)) { | ||
return 24 satisfies typeof ls.CompletionItemKind.Operator | ||
return 24 satisfies typeof lsp.CompletionItemKind.Operator | ||
} | ||
if (kind === (24 satisfies monaco.languages.CompletionItemKind.TypeParameter)) { | ||
return 25 satisfies typeof ls.CompletionItemKind.TypeParameter | ||
return 25 satisfies typeof lsp.CompletionItemKind.TypeParameter | ||
} | ||
@@ -102,74 +102,74 @@ } | ||
export function toCompletionItemKind( | ||
kind: ls.CompletionItemKind | ||
kind: lsp.CompletionItemKind | ||
): monaco.languages.CompletionItemKind { | ||
if (kind === (1 satisfies typeof ls.CompletionItemKind.Text)) { | ||
if (kind === (1 satisfies typeof lsp.CompletionItemKind.Text)) { | ||
return 18 satisfies monaco.languages.CompletionItemKind.Text | ||
} | ||
if (kind === (2 satisfies typeof ls.CompletionItemKind.Method)) { | ||
if (kind === (2 satisfies typeof lsp.CompletionItemKind.Method)) { | ||
return 0 satisfies monaco.languages.CompletionItemKind.Method | ||
} | ||
if (kind === (3 satisfies typeof ls.CompletionItemKind.Function)) { | ||
if (kind === (3 satisfies typeof lsp.CompletionItemKind.Function)) { | ||
return 1 satisfies monaco.languages.CompletionItemKind.Function | ||
} | ||
if (kind === (4 satisfies typeof ls.CompletionItemKind.Constructor)) { | ||
if (kind === (4 satisfies typeof lsp.CompletionItemKind.Constructor)) { | ||
return 2 satisfies monaco.languages.CompletionItemKind.Constructor | ||
} | ||
if (kind === (5 satisfies typeof ls.CompletionItemKind.Field)) { | ||
if (kind === (5 satisfies typeof lsp.CompletionItemKind.Field)) { | ||
return 3 satisfies monaco.languages.CompletionItemKind.Field | ||
} | ||
if (kind === (6 satisfies typeof ls.CompletionItemKind.Variable)) { | ||
if (kind === (6 satisfies typeof lsp.CompletionItemKind.Variable)) { | ||
return 4 satisfies monaco.languages.CompletionItemKind.Variable | ||
} | ||
if (kind === (7 satisfies typeof ls.CompletionItemKind.Class)) { | ||
if (kind === (7 satisfies typeof lsp.CompletionItemKind.Class)) { | ||
return 5 satisfies monaco.languages.CompletionItemKind.Class | ||
} | ||
if (kind === (8 satisfies typeof ls.CompletionItemKind.Interface)) { | ||
if (kind === (8 satisfies typeof lsp.CompletionItemKind.Interface)) { | ||
return 7 satisfies monaco.languages.CompletionItemKind.Interface | ||
} | ||
if (kind === (9 satisfies typeof ls.CompletionItemKind.Module)) { | ||
if (kind === (9 satisfies typeof lsp.CompletionItemKind.Module)) { | ||
return 8 satisfies monaco.languages.CompletionItemKind.Module | ||
} | ||
if (kind === (10 satisfies typeof ls.CompletionItemKind.Property)) { | ||
if (kind === (10 satisfies typeof lsp.CompletionItemKind.Property)) { | ||
return 9 satisfies monaco.languages.CompletionItemKind.Property | ||
} | ||
if (kind === (11 satisfies typeof ls.CompletionItemKind.Unit)) { | ||
if (kind === (11 satisfies typeof lsp.CompletionItemKind.Unit)) { | ||
return 12 satisfies monaco.languages.CompletionItemKind.Unit | ||
} | ||
if (kind === (12 satisfies typeof ls.CompletionItemKind.Value)) { | ||
if (kind === (12 satisfies typeof lsp.CompletionItemKind.Value)) { | ||
return 13 satisfies monaco.languages.CompletionItemKind.Value | ||
} | ||
if (kind === (13 satisfies typeof ls.CompletionItemKind.Enum)) { | ||
if (kind === (13 satisfies typeof lsp.CompletionItemKind.Enum)) { | ||
return 15 satisfies monaco.languages.CompletionItemKind.Enum | ||
} | ||
if (kind === (14 satisfies typeof ls.CompletionItemKind.Keyword)) { | ||
if (kind === (14 satisfies typeof lsp.CompletionItemKind.Keyword)) { | ||
return 17 satisfies monaco.languages.CompletionItemKind.Keyword | ||
} | ||
if (kind === (15 satisfies typeof ls.CompletionItemKind.Snippet)) { | ||
if (kind === (15 satisfies typeof lsp.CompletionItemKind.Snippet)) { | ||
return 27 satisfies monaco.languages.CompletionItemKind.Snippet | ||
} | ||
if (kind === (16 satisfies typeof ls.CompletionItemKind.Color)) { | ||
if (kind === (16 satisfies typeof lsp.CompletionItemKind.Color)) { | ||
return 19 satisfies monaco.languages.CompletionItemKind.Color | ||
} | ||
if (kind === (17 satisfies typeof ls.CompletionItemKind.File)) { | ||
if (kind === (17 satisfies typeof lsp.CompletionItemKind.File)) { | ||
return 20 satisfies monaco.languages.CompletionItemKind.File | ||
} | ||
if (kind === (18 satisfies typeof ls.CompletionItemKind.Reference)) { | ||
if (kind === (18 satisfies typeof lsp.CompletionItemKind.Reference)) { | ||
return 21 satisfies monaco.languages.CompletionItemKind.Reference | ||
} | ||
if (kind === (19 satisfies typeof ls.CompletionItemKind.Folder)) { | ||
if (kind === (19 satisfies typeof lsp.CompletionItemKind.Folder)) { | ||
return 23 satisfies monaco.languages.CompletionItemKind.Folder | ||
} | ||
if (kind === (20 satisfies typeof ls.CompletionItemKind.EnumMember)) { | ||
if (kind === (20 satisfies typeof lsp.CompletionItemKind.EnumMember)) { | ||
return 16 satisfies monaco.languages.CompletionItemKind.EnumMember | ||
} | ||
if (kind === (21 satisfies typeof ls.CompletionItemKind.Constant)) { | ||
if (kind === (21 satisfies typeof lsp.CompletionItemKind.Constant)) { | ||
return 14 satisfies monaco.languages.CompletionItemKind.Constant | ||
} | ||
if (kind === (22 satisfies typeof ls.CompletionItemKind.Struct)) { | ||
if (kind === (22 satisfies typeof lsp.CompletionItemKind.Struct)) { | ||
return 6 satisfies monaco.languages.CompletionItemKind.Struct | ||
} | ||
if (kind === (23 satisfies typeof ls.CompletionItemKind.Event)) { | ||
if (kind === (23 satisfies typeof lsp.CompletionItemKind.Event)) { | ||
return 10 satisfies monaco.languages.CompletionItemKind.Event | ||
} | ||
if (kind === (24 satisfies typeof ls.CompletionItemKind.Operator)) { | ||
if (kind === (24 satisfies typeof lsp.CompletionItemKind.Operator)) { | ||
return 11 satisfies monaco.languages.CompletionItemKind.Operator | ||
@@ -176,0 +176,0 @@ } |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -14,3 +14,3 @@ /** | ||
tag: monaco.languages.CompletionItemTag | ||
): ls.CompletionItemTag { | ||
): lsp.CompletionItemTag { | ||
return tag | ||
@@ -27,4 +27,6 @@ } | ||
*/ | ||
export function toCompletionItemTag(tag: ls.CompletionItemTag): monaco.languages.CompletionItemTag { | ||
export function toCompletionItemTag( | ||
tag: lsp.CompletionItemTag | ||
): monaco.languages.CompletionItemTag { | ||
return tag | ||
} |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -16,3 +16,3 @@ import { fromCompletionItem, toCompletionItem } from './completionItem.js' | ||
completionList: monaco.languages.CompletionList | ||
): ls.CompletionList { | ||
): lsp.CompletionList { | ||
return { | ||
@@ -42,3 +42,3 @@ isIncomplete: Boolean(completionList.incomplete), | ||
export function toCompletionList( | ||
completionList: ls.CompletionList, | ||
completionList: lsp.CompletionList, | ||
options: ToCompletionListOptions | ||
@@ -45,0 +45,0 @@ ): monaco.languages.CompletionList { |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -14,8 +14,8 @@ /** | ||
kind: monaco.languages.CompletionTriggerKind | ||
): ls.CompletionTriggerKind { | ||
): lsp.CompletionTriggerKind { | ||
if (kind === (0 satisfies monaco.languages.CompletionTriggerKind.Invoke)) { | ||
return 1 satisfies typeof ls.CompletionTriggerKind.Invoked | ||
return 1 satisfies typeof lsp.CompletionTriggerKind.Invoked | ||
} | ||
if (kind === (1 satisfies monaco.languages.CompletionTriggerKind.TriggerCharacter)) { | ||
return 2 satisfies typeof ls.CompletionTriggerKind.TriggerCharacter | ||
return 2 satisfies typeof lsp.CompletionTriggerKind.TriggerCharacter | ||
} | ||
@@ -36,8 +36,8 @@ | ||
export function toCompletionTriggerKind( | ||
kind: ls.CompletionTriggerKind | ||
kind: lsp.CompletionTriggerKind | ||
): monaco.languages.CompletionTriggerKind { | ||
if (kind === (1 satisfies typeof ls.CompletionTriggerKind.Invoked)) { | ||
if (kind === (1 satisfies typeof lsp.CompletionTriggerKind.Invoked)) { | ||
return 0 satisfies monaco.languages.CompletionTriggerKind.Invoke | ||
} | ||
if (kind === (2 satisfies typeof ls.CompletionTriggerKind.TriggerCharacter)) { | ||
if (kind === (2 satisfies typeof lsp.CompletionTriggerKind.TriggerCharacter)) { | ||
return 1 satisfies monaco.languages.CompletionTriggerKind.TriggerCharacter | ||
@@ -44,0 +44,0 @@ } |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -14,3 +14,3 @@ import { fromLocation, toLocation } from './location.js' | ||
*/ | ||
export function fromDefinition(definition: monaco.languages.Definition): ls.Definition { | ||
export function fromDefinition(definition: monaco.languages.Definition): lsp.Definition { | ||
if (Array.isArray(definition)) { | ||
@@ -31,3 +31,3 @@ return definition.map(fromLocation) | ||
*/ | ||
export function toDefinition(definition: ls.Definition): monaco.languages.Definition { | ||
export function toDefinition(definition: lsp.Definition): monaco.languages.Definition { | ||
if (Array.isArray(definition)) { | ||
@@ -34,0 +34,0 @@ return definition.map(toLocation) |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -17,4 +17,4 @@ import { fromDocumentHighlightKind, toDocumentHighlightKind } from './documentHighlightKind.js' | ||
documentHighlight: monaco.languages.DocumentHighlight | ||
): ls.DocumentHighlight { | ||
const result: ls.DocumentHighlight = { | ||
): lsp.DocumentHighlight { | ||
const result: lsp.DocumentHighlight = { | ||
range: fromRange(documentHighlight.range) | ||
@@ -39,3 +39,3 @@ } | ||
export function toDocumentHighlight( | ||
documentHighlight: ls.DocumentHighlight | ||
documentHighlight: lsp.DocumentHighlight | ||
): monaco.languages.DocumentHighlight { | ||
@@ -42,0 +42,0 @@ const result: monaco.languages.DocumentHighlight = { |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -14,8 +14,8 @@ /** | ||
kind: monaco.languages.DocumentHighlightKind | ||
): ls.DocumentHighlightKind { | ||
): lsp.DocumentHighlightKind { | ||
if (kind === (1 satisfies monaco.languages.DocumentHighlightKind.Read)) { | ||
return 2 satisfies typeof ls.DocumentHighlightKind.Read | ||
return 2 satisfies typeof lsp.DocumentHighlightKind.Read | ||
} | ||
if (kind === (2 satisfies monaco.languages.DocumentHighlightKind.Write)) { | ||
return 3 satisfies typeof ls.DocumentHighlightKind.Write | ||
return 3 satisfies typeof lsp.DocumentHighlightKind.Write | ||
} | ||
@@ -34,8 +34,8 @@ return 1 | ||
export function toDocumentHighlightKind( | ||
kind: ls.DocumentHighlightKind | ||
kind: lsp.DocumentHighlightKind | ||
): monaco.languages.DocumentHighlightKind { | ||
if (kind === (2 satisfies typeof ls.DocumentHighlightKind.Read)) { | ||
if (kind === (2 satisfies typeof lsp.DocumentHighlightKind.Read)) { | ||
return 1 satisfies monaco.languages.DocumentHighlightKind.Read | ||
} | ||
if (kind === (3 satisfies typeof ls.DocumentHighlightKind.Write)) { | ||
if (kind === (3 satisfies typeof lsp.DocumentHighlightKind.Write)) { | ||
return 2 satisfies monaco.languages.DocumentHighlightKind.Write | ||
@@ -42,0 +42,0 @@ } |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -18,4 +18,4 @@ import { fromRange, toRange } from './range.js' | ||
documentSymbol: monaco.languages.DocumentSymbol | ||
): ls.DocumentSymbol { | ||
const result: ls.DocumentSymbol = { | ||
): lsp.DocumentSymbol { | ||
const result: lsp.DocumentSymbol = { | ||
detail: documentSymbol.detail, | ||
@@ -45,3 +45,3 @@ kind: fromSymbolKind(documentSymbol.kind), | ||
export function toDocumentSymbol( | ||
documentSymbol: ls.DocumentSymbol | ||
documentSymbol: lsp.DocumentSymbol | ||
): monaco.languages.DocumentSymbol { | ||
@@ -48,0 +48,0 @@ const result: monaco.languages.DocumentSymbol = { |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -12,4 +12,4 @@ /** | ||
*/ | ||
export function fromFoldingRange(foldingRange: monaco.languages.FoldingRange): ls.FoldingRange { | ||
const result: ls.FoldingRange = { | ||
export function fromFoldingRange(foldingRange: monaco.languages.FoldingRange): lsp.FoldingRange { | ||
const result: lsp.FoldingRange = { | ||
startLine: foldingRange.start - 1, | ||
@@ -34,3 +34,3 @@ endLine: foldingRange.end - 1 | ||
*/ | ||
export function toFoldingRange(foldingRange: ls.FoldingRange): monaco.languages.FoldingRange { | ||
export function toFoldingRange(foldingRange: lsp.FoldingRange): monaco.languages.FoldingRange { | ||
const result: monaco.languages.FoldingRange = { | ||
@@ -37,0 +37,0 @@ start: foldingRange.startLine + 1, |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -14,3 +14,3 @@ /** | ||
formattingOptions: monaco.languages.FormattingOptions | ||
): ls.FormattingOptions { | ||
): lsp.FormattingOptions { | ||
return { | ||
@@ -31,3 +31,3 @@ insertSpaces: formattingOptions.insertSpaces, | ||
export function toFormattingOptions( | ||
formattingOptions: ls.FormattingOptions | ||
formattingOptions: lsp.FormattingOptions | ||
): monaco.languages.FormattingOptions { | ||
@@ -34,0 +34,0 @@ return { |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -15,4 +15,4 @@ import { fromMarkdownString, toMarkdownString } from './markdownString.js' | ||
*/ | ||
export function fromHover(hover: monaco.languages.Hover): ls.Hover { | ||
const result: ls.Hover = { | ||
export function fromHover(hover: monaco.languages.Hover): lsp.Hover { | ||
const result: lsp.Hover = { | ||
contents: fromMarkdownString(hover.contents[0]) | ||
@@ -36,3 +36,3 @@ } | ||
*/ | ||
function getDeprecatedMarkupValue(value: ls.MarkedString): monaco.IMarkdownString { | ||
function getDeprecatedMarkupValue(value: lsp.MarkedString): monaco.IMarkdownString { | ||
if (typeof value === 'string') { | ||
@@ -54,3 +54,3 @@ return { value } | ||
function toHoverContents( | ||
contents: ls.MarkedString | ls.MarkedString[] | ls.MarkupContent | ||
contents: lsp.MarkedString | lsp.MarkedString[] | lsp.MarkupContent | ||
): monaco.IMarkdownString[] { | ||
@@ -76,3 +76,3 @@ if (typeof contents === 'string' || 'language' in contents) { | ||
*/ | ||
export function toHover(hover: ls.Hover): monaco.languages.Hover { | ||
export function toHover(hover: lsp.Hover): monaco.languages.Hover { | ||
const result: monaco.languages.Hover = { | ||
@@ -79,0 +79,0 @@ contents: toHoverContents(hover.contents) |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -18,4 +18,4 @@ import { fromInlayHintKind, toInlayHintKind } from './inlayHintKind.js' | ||
*/ | ||
export function fromInlayHint(inlayHint: monaco.languages.InlayHint): ls.InlayHint { | ||
const result: ls.InlayHint = { | ||
export function fromInlayHint(inlayHint: monaco.languages.InlayHint): lsp.InlayHint { | ||
const result: lsp.InlayHint = { | ||
label: | ||
@@ -61,3 +61,3 @@ typeof inlayHint.label === 'string' | ||
*/ | ||
export function toInlayHint(inlayHint: ls.InlayHint): monaco.languages.InlayHint { | ||
export function toInlayHint(inlayHint: lsp.InlayHint): monaco.languages.InlayHint { | ||
const result: monaco.languages.InlayHint = { | ||
@@ -64,0 +64,0 @@ label: |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -12,3 +12,5 @@ /** | ||
*/ | ||
export function fromInlayHintKind(inlayHintKind: monaco.languages.InlayHintKind): ls.InlayHintKind { | ||
export function fromInlayHintKind( | ||
inlayHintKind: monaco.languages.InlayHintKind | ||
): lsp.InlayHintKind { | ||
return inlayHintKind | ||
@@ -25,4 +27,4 @@ } | ||
*/ | ||
export function toInlayHintKind(inlayHintKind: ls.InlayHintKind): monaco.languages.InlayHintKind { | ||
export function toInlayHintKind(inlayHintKind: lsp.InlayHintKind): monaco.languages.InlayHintKind { | ||
return inlayHintKind | ||
} |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -18,4 +18,4 @@ import { fromCommand, toCommand } from './command.js' | ||
inlayHintLabelPart: monaco.languages.InlayHintLabelPart | ||
): ls.InlayHintLabelPart { | ||
const result: ls.InlayHintLabelPart = { | ||
): lsp.InlayHintLabelPart { | ||
const result: lsp.InlayHintLabelPart = { | ||
value: inlayHintLabelPart.label | ||
@@ -50,3 +50,3 @@ } | ||
export function toInlayHintLabelPart( | ||
inlayHintLabelPart: ls.InlayHintLabelPart | ||
inlayHintLabelPart: lsp.InlayHintLabelPart | ||
): monaco.languages.InlayHintLabelPart { | ||
@@ -53,0 +53,0 @@ const result: monaco.languages.InlayHintLabelPart = { |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
import { URI } from 'vscode-uri' | ||
@@ -15,4 +15,4 @@ | ||
*/ | ||
export function fromLink(link: monaco.languages.ILink): ls.DocumentLink { | ||
const result: ls.DocumentLink = { | ||
export function fromLink(link: monaco.languages.ILink): lsp.DocumentLink { | ||
const result: lsp.DocumentLink = { | ||
range: fromRange(link.range) | ||
@@ -40,3 +40,3 @@ } | ||
*/ | ||
export function toLink(documentLink: ls.DocumentLink): monaco.languages.ILink { | ||
export function toLink(documentLink: lsp.DocumentLink): monaco.languages.ILink { | ||
const result: monaco.languages.ILink = { | ||
@@ -43,0 +43,0 @@ range: toRange(documentLink.range) |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -16,4 +16,4 @@ import { fromRange, toRange } from './range.js' | ||
linkedEditingRanges: monaco.languages.LinkedEditingRanges | ||
): ls.LinkedEditingRanges { | ||
const result: ls.LinkedEditingRanges = { | ||
): lsp.LinkedEditingRanges { | ||
const result: lsp.LinkedEditingRanges = { | ||
ranges: linkedEditingRanges.ranges.map(fromRange) | ||
@@ -38,3 +38,3 @@ } | ||
export function toLinkedEditingRanges( | ||
linkedEditingRanges: ls.LinkedEditingRanges | ||
linkedEditingRanges: lsp.LinkedEditingRanges | ||
): monaco.languages.LinkedEditingRanges { | ||
@@ -41,0 +41,0 @@ const result: monaco.languages.LinkedEditingRanges = { |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
import { URI } from 'vscode-uri' | ||
@@ -15,3 +15,3 @@ | ||
*/ | ||
export function fromLocation(location: monaco.languages.Location): ls.Location { | ||
export function fromLocation(location: monaco.languages.Location): lsp.Location { | ||
return { | ||
@@ -31,3 +31,3 @@ range: fromRange(location.range), | ||
*/ | ||
export function toLocation(location: ls.Location): monaco.languages.Location { | ||
export function toLocation(location: lsp.Location): monaco.languages.Location { | ||
return { | ||
@@ -34,0 +34,0 @@ range: toRange(location.range), |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
import { URI } from 'vscode-uri' | ||
@@ -15,4 +15,4 @@ | ||
*/ | ||
export function fromLocationLink(locationLink: monaco.languages.LocationLink): ls.LocationLink { | ||
const result: ls.LocationLink = { | ||
export function fromLocationLink(locationLink: monaco.languages.LocationLink): lsp.LocationLink { | ||
const result: lsp.LocationLink = { | ||
targetRange: fromRange(locationLink.range), | ||
@@ -40,3 +40,3 @@ targetSelectionRange: locationLink.targetSelectionRange | ||
*/ | ||
export function toLocationLink(locationLink: ls.LocationLink): monaco.languages.LocationLink { | ||
export function toLocationLink(locationLink: lsp.LocationLink): monaco.languages.LocationLink { | ||
const result: monaco.languages.LocationLink = { | ||
@@ -43,0 +43,0 @@ range: toRange(locationLink.targetRange), |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
export function fromMarkdownString(markdownString: monaco.IMarkdownString): ls.MarkupContent { | ||
export function fromMarkdownString(markdownString: monaco.IMarkdownString): lsp.MarkupContent { | ||
return { | ||
@@ -28,3 +28,3 @@ kind: 'markdown', | ||
*/ | ||
export function toMarkdownString(markupContent: ls.MarkupContent): monaco.IMarkdownString { | ||
export function toMarkdownString(markupContent: lsp.MarkupContent): monaco.IMarkdownString { | ||
return { | ||
@@ -31,0 +31,0 @@ value: markupContent.value |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
import { URI } from 'vscode-uri' | ||
@@ -18,4 +18,4 @@ | ||
*/ | ||
export function fromMarkerData(markerData: monaco.editor.IMarkerData): ls.Diagnostic { | ||
const diagnostic: ls.Diagnostic = { | ||
export function fromMarkerData(markerData: monaco.editor.IMarkerData): lsp.Diagnostic { | ||
const diagnostic: lsp.Diagnostic = { | ||
message: markerData.message, | ||
@@ -68,3 +68,3 @@ range: fromRange(markerData), | ||
export function toMarkerData( | ||
diagnostic: ls.Diagnostic, | ||
diagnostic: lsp.Diagnostic, | ||
options?: ToMarkerDataOptions | ||
@@ -71,0 +71,0 @@ ): monaco.editor.IMarkerData { |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -12,14 +12,14 @@ /** | ||
*/ | ||
export function fromMarkerSeverity(severity: monaco.MarkerSeverity): ls.DiagnosticSeverity { | ||
export function fromMarkerSeverity(severity: monaco.MarkerSeverity): lsp.DiagnosticSeverity { | ||
if (severity === (8 satisfies monaco.MarkerSeverity.Error)) { | ||
return 1 satisfies typeof ls.DiagnosticSeverity.Error | ||
return 1 satisfies typeof lsp.DiagnosticSeverity.Error | ||
} | ||
if (severity === (4 satisfies monaco.MarkerSeverity.Warning)) { | ||
return 2 satisfies typeof ls.DiagnosticSeverity.Warning | ||
return 2 satisfies typeof lsp.DiagnosticSeverity.Warning | ||
} | ||
if (severity === (2 satisfies monaco.MarkerSeverity.Info)) { | ||
return 3 satisfies typeof ls.DiagnosticSeverity.Information | ||
return 3 satisfies typeof lsp.DiagnosticSeverity.Information | ||
} | ||
// Severity === MarkerSeverity.Hint | ||
return 4 satisfies typeof ls.DiagnosticSeverity.Hint | ||
return 4 satisfies typeof lsp.DiagnosticSeverity.Hint | ||
} | ||
@@ -35,10 +35,10 @@ | ||
*/ | ||
export function toMarkerSeverity(severity: ls.DiagnosticSeverity): monaco.MarkerSeverity { | ||
if (severity === (1 satisfies typeof ls.DiagnosticSeverity.Error)) { | ||
export function toMarkerSeverity(severity: lsp.DiagnosticSeverity): monaco.MarkerSeverity { | ||
if (severity === (1 satisfies typeof lsp.DiagnosticSeverity.Error)) { | ||
return 8 satisfies monaco.MarkerSeverity.Error | ||
} | ||
if (severity === (2 satisfies typeof ls.DiagnosticSeverity.Warning)) { | ||
if (severity === (2 satisfies typeof lsp.DiagnosticSeverity.Warning)) { | ||
return 4 satisfies monaco.MarkerSeverity.Warning | ||
} | ||
if (severity === (3 satisfies typeof ls.DiagnosticSeverity.Information)) { | ||
if (severity === (3 satisfies typeof lsp.DiagnosticSeverity.Information)) { | ||
return 2 satisfies monaco.MarkerSeverity.Info | ||
@@ -45,0 +45,0 @@ } |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
export function fromMarkerTag(tag: monaco.MarkerTag): ls.DiagnosticTag { | ||
export function fromMarkerTag(tag: monaco.MarkerTag): lsp.DiagnosticTag { | ||
return tag | ||
@@ -25,4 +25,4 @@ } | ||
*/ | ||
export function toMarkerTag(tag: ls.DiagnosticTag): monaco.MarkerTag { | ||
export function toMarkerTag(tag: lsp.DiagnosticTag): monaco.MarkerTag { | ||
return tag | ||
} |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -16,4 +16,4 @@ import { fromMarkdownString, toMarkdownString } from './markdownString.js' | ||
parameterInformation: monaco.languages.ParameterInformation | ||
): ls.ParameterInformation { | ||
const result: ls.ParameterInformation = { | ||
): lsp.ParameterInformation { | ||
const result: lsp.ParameterInformation = { | ||
label: parameterInformation.label | ||
@@ -40,3 +40,3 @@ } | ||
export function toParameterInformation( | ||
parameterInformation: ls.ParameterInformation | ||
parameterInformation: lsp.ParameterInformation | ||
): monaco.languages.ParameterInformation { | ||
@@ -43,0 +43,0 @@ const result: monaco.languages.ParameterInformation = { |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
export function fromPosition(position: monaco.IPosition): ls.Position { | ||
export function fromPosition(position: monaco.IPosition): lsp.Position { | ||
return { character: position.column - 1, line: position.lineNumber - 1 } | ||
@@ -25,4 +25,4 @@ } | ||
*/ | ||
export function toPosition(position: ls.Position): monaco.IPosition { | ||
export function toPosition(position: lsp.Position): monaco.IPosition { | ||
return { lineNumber: position.line + 1, column: position.character + 1 } | ||
} |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
export function fromRange(range: monaco.IRange): ls.Range { | ||
export function fromRange(range: monaco.IRange): lsp.Range { | ||
return { | ||
@@ -28,3 +28,3 @@ start: { line: range.startLineNumber - 1, character: range.startColumn - 1 }, | ||
*/ | ||
export function toRange(range: ls.Range): monaco.IRange { | ||
export function toRange(range: lsp.Range): monaco.IRange { | ||
return { | ||
@@ -31,0 +31,0 @@ startLineNumber: range.start.line + 1, |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
import { URI } from 'vscode-uri' | ||
@@ -17,3 +17,3 @@ | ||
relatedInformation: monaco.editor.IRelatedInformation | ||
): ls.DiagnosticRelatedInformation { | ||
): lsp.DiagnosticRelatedInformation { | ||
return { | ||
@@ -37,3 +37,3 @@ location: { | ||
export function toRelatedInformation( | ||
relatedInformation: ls.DiagnosticRelatedInformation | ||
relatedInformation: lsp.DiagnosticRelatedInformation | ||
): monaco.editor.IRelatedInformation { | ||
@@ -40,0 +40,0 @@ return { |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -16,3 +16,3 @@ import { fromRange, toRange } from './range.js' | ||
selectionRange: monaco.languages.SelectionRange | ||
): ls.SelectionRange { | ||
): lsp.SelectionRange { | ||
return { | ||
@@ -32,3 +32,3 @@ range: fromRange(selectionRange.range) | ||
export function toSelectionRange( | ||
selectionRange: ls.SelectionRange | ||
selectionRange: lsp.SelectionRange | ||
): monaco.languages.SelectionRange { | ||
@@ -35,0 +35,0 @@ return { |
import type * as monaco from 'monaco-types' | ||
import { type Writable } from 'type-fest' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -15,4 +15,4 @@ /** | ||
semanticTokens: monaco.languages.SemanticTokens | ||
): ls.SemanticTokens { | ||
const result: ls.SemanticTokens = { | ||
): lsp.SemanticTokens { | ||
const result: lsp.SemanticTokens = { | ||
data: [...semanticTokens.data] | ||
@@ -37,3 +37,3 @@ } | ||
export function toSemanticTokens( | ||
semanticTokens: ls.SemanticTokens | ||
semanticTokens: lsp.SemanticTokens | ||
): monaco.languages.SemanticTokens { | ||
@@ -40,0 +40,0 @@ const result: Writable<monaco.languages.SemanticTokens> = { |
import type * as monaco from 'monaco-types' | ||
import { type Writable } from 'type-fest' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -15,4 +15,4 @@ /** | ||
semanticTokensEdit: monaco.languages.SemanticTokensEdit | ||
): ls.SemanticTokensEdit { | ||
const result: ls.SemanticTokensEdit = { | ||
): lsp.SemanticTokensEdit { | ||
const result: lsp.SemanticTokensEdit = { | ||
deleteCount: semanticTokensEdit.deleteCount, | ||
@@ -38,3 +38,3 @@ start: semanticTokensEdit.start | ||
export function toSemanticTokensEdit( | ||
semanticTokensEdit: ls.SemanticTokensEdit | ||
semanticTokensEdit: lsp.SemanticTokensEdit | ||
): monaco.languages.SemanticTokensEdit { | ||
@@ -41,0 +41,0 @@ const result: Writable<monaco.languages.SemanticTokensEdit> = { |
import type * as monaco from 'monaco-types' | ||
import { type Writable } from 'type-fest' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -17,4 +17,4 @@ import { fromSemanticTokensEdit, toSemanticTokensEdit } from './semanticTokensEdit.js' | ||
semanticTokensEdits: monaco.languages.SemanticTokensEdits | ||
): ls.SemanticTokensDelta { | ||
const result: Writable<ls.SemanticTokensDelta> = { | ||
): lsp.SemanticTokensDelta { | ||
const result: Writable<lsp.SemanticTokensDelta> = { | ||
edits: semanticTokensEdits.edits.map(fromSemanticTokensEdit) | ||
@@ -39,3 +39,3 @@ } | ||
export function toSemanticTokensEdits( | ||
semanticTokensDelta: ls.SemanticTokensDelta | ||
semanticTokensDelta: lsp.SemanticTokensDelta | ||
): monaco.languages.SemanticTokensEdits { | ||
@@ -42,0 +42,0 @@ const result: Writable<monaco.languages.SemanticTokensEdits> = { |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -14,3 +14,5 @@ import { fromSignatureInformation, toSignatureInformation } from './signatureInformation.js' | ||
*/ | ||
export function fromSignatureHelp(signatureHelp: monaco.languages.SignatureHelp): ls.SignatureHelp { | ||
export function fromSignatureHelp( | ||
signatureHelp: monaco.languages.SignatureHelp | ||
): lsp.SignatureHelp { | ||
return { | ||
@@ -31,3 +33,3 @@ activeParameter: signatureHelp.activeParameter, | ||
*/ | ||
export function toSignatureHelp(signatureHelp: ls.SignatureHelp): monaco.languages.SignatureHelp { | ||
export function toSignatureHelp(signatureHelp: lsp.SignatureHelp): monaco.languages.SignatureHelp { | ||
return { | ||
@@ -34,0 +36,0 @@ activeParameter: signatureHelp.activeParameter ?? 0, |
import type * as monaco from 'monaco-types' | ||
import { type Writable } from 'type-fest' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -18,4 +18,4 @@ import { fromSignatureHelp, toSignatureHelp } from './signatureHelp.js' | ||
signatureHelpContext: monaco.languages.SignatureHelpContext | ||
): ls.SignatureHelpContext { | ||
const result: ls.SignatureHelpContext = { | ||
): lsp.SignatureHelpContext { | ||
const result: lsp.SignatureHelpContext = { | ||
isRetrigger: signatureHelpContext.isRetrigger, | ||
@@ -45,3 +45,3 @@ triggerKind: fromSignatureHelpTriggerKind(signatureHelpContext.triggerKind) | ||
export function toSignatureHelpContext( | ||
signatureHelpContext: ls.SignatureHelpContext | ||
signatureHelpContext: lsp.SignatureHelpContext | ||
): monaco.languages.SignatureHelpContext { | ||
@@ -48,0 +48,0 @@ const result: Writable<monaco.languages.SignatureHelpContext> = { |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -14,3 +14,3 @@ /** | ||
signatureHelpTriggerKind: monaco.languages.SignatureHelpTriggerKind | ||
): ls.SignatureHelpTriggerKind { | ||
): lsp.SignatureHelpTriggerKind { | ||
return signatureHelpTriggerKind | ||
@@ -28,5 +28,5 @@ } | ||
export function toSignatureHelpTriggerKind( | ||
signatureHelpTriggerKind: ls.SignatureHelpTriggerKind | ||
signatureHelpTriggerKind: lsp.SignatureHelpTriggerKind | ||
): monaco.languages.SignatureHelpTriggerKind { | ||
return signatureHelpTriggerKind | ||
} |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -17,4 +17,4 @@ import { fromMarkdownString, toMarkdownString } from './markdownString.js' | ||
signatureInformation: monaco.languages.SignatureInformation | ||
): ls.SignatureInformation { | ||
const result: ls.SignatureInformation = { | ||
): lsp.SignatureInformation { | ||
const result: lsp.SignatureInformation = { | ||
label: signatureInformation.label, | ||
@@ -46,3 +46,3 @@ parameters: signatureInformation.parameters.map(fromParameterInformation) | ||
export function toSignatureInformation( | ||
signatureInformation: ls.SignatureInformation | ||
signatureInformation: lsp.SignatureInformation | ||
): monaco.languages.SignatureInformation { | ||
@@ -49,0 +49,0 @@ const result: monaco.languages.SignatureInformation = { |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -16,3 +16,3 @@ import { fromRange, toRange } from './range.js' | ||
singleEditOperation: monaco.editor.ISingleEditOperation | ||
): ls.TextEdit { | ||
): lsp.TextEdit { | ||
return { | ||
@@ -32,3 +32,3 @@ newText: singleEditOperation.text ?? '', | ||
*/ | ||
export function toSingleEditOperation(textEdit: ls.TextEdit): monaco.editor.ISingleEditOperation { | ||
export function toSingleEditOperation(textEdit: lsp.TextEdit): monaco.editor.ISingleEditOperation { | ||
return { | ||
@@ -35,0 +35,0 @@ range: toRange(textEdit.range), |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -12,80 +12,80 @@ /** | ||
*/ | ||
export function fromSymbolKind(symbolKind: monaco.languages.SymbolKind): ls.SymbolKind { | ||
export function fromSymbolKind(symbolKind: monaco.languages.SymbolKind): lsp.SymbolKind { | ||
if (symbolKind === (0 satisfies monaco.languages.SymbolKind.File)) { | ||
return 1 satisfies typeof ls.SymbolKind.File | ||
return 1 satisfies typeof lsp.SymbolKind.File | ||
} | ||
if (symbolKind === (1 satisfies monaco.languages.SymbolKind.Module)) { | ||
return 2 satisfies typeof ls.SymbolKind.Module | ||
return 2 satisfies typeof lsp.SymbolKind.Module | ||
} | ||
if (symbolKind === (2 satisfies monaco.languages.SymbolKind.Namespace)) { | ||
return 3 satisfies typeof ls.SymbolKind.Namespace | ||
return 3 satisfies typeof lsp.SymbolKind.Namespace | ||
} | ||
if (symbolKind === (3 satisfies monaco.languages.SymbolKind.Package)) { | ||
return 4 satisfies typeof ls.SymbolKind.Package | ||
return 4 satisfies typeof lsp.SymbolKind.Package | ||
} | ||
if (symbolKind === (4 satisfies monaco.languages.SymbolKind.Class)) { | ||
return 5 satisfies typeof ls.SymbolKind.Class | ||
return 5 satisfies typeof lsp.SymbolKind.Class | ||
} | ||
if (symbolKind === (5 satisfies monaco.languages.SymbolKind.Method)) { | ||
return 6 satisfies typeof ls.SymbolKind.Method | ||
return 6 satisfies typeof lsp.SymbolKind.Method | ||
} | ||
if (symbolKind === (6 satisfies monaco.languages.SymbolKind.Property)) { | ||
return 7 satisfies typeof ls.SymbolKind.Property | ||
return 7 satisfies typeof lsp.SymbolKind.Property | ||
} | ||
if (symbolKind === (7 satisfies monaco.languages.SymbolKind.Field)) { | ||
return 8 satisfies typeof ls.SymbolKind.Field | ||
return 8 satisfies typeof lsp.SymbolKind.Field | ||
} | ||
if (symbolKind === (8 satisfies monaco.languages.SymbolKind.Constructor)) { | ||
return 9 satisfies typeof ls.SymbolKind.Constructor | ||
return 9 satisfies typeof lsp.SymbolKind.Constructor | ||
} | ||
if (symbolKind === (9 satisfies monaco.languages.SymbolKind.Enum)) { | ||
return 10 satisfies typeof ls.SymbolKind.Enum | ||
return 10 satisfies typeof lsp.SymbolKind.Enum | ||
} | ||
if (symbolKind === (10 satisfies monaco.languages.SymbolKind.Interface)) { | ||
return 11 satisfies typeof ls.SymbolKind.Interface | ||
return 11 satisfies typeof lsp.SymbolKind.Interface | ||
} | ||
if (symbolKind === (11 satisfies monaco.languages.SymbolKind.Function)) { | ||
return 12 satisfies typeof ls.SymbolKind.Function | ||
return 12 satisfies typeof lsp.SymbolKind.Function | ||
} | ||
if (symbolKind === (12 satisfies monaco.languages.SymbolKind.Variable)) { | ||
return 13 satisfies typeof ls.SymbolKind.Variable | ||
return 13 satisfies typeof lsp.SymbolKind.Variable | ||
} | ||
if (symbolKind === (13 satisfies monaco.languages.SymbolKind.Constant)) { | ||
return 14 satisfies typeof ls.SymbolKind.Constant | ||
return 14 satisfies typeof lsp.SymbolKind.Constant | ||
} | ||
if (symbolKind === (14 satisfies monaco.languages.SymbolKind.String)) { | ||
return 15 satisfies typeof ls.SymbolKind.String | ||
return 15 satisfies typeof lsp.SymbolKind.String | ||
} | ||
if (symbolKind === (15 satisfies monaco.languages.SymbolKind.Number)) { | ||
return 16 satisfies typeof ls.SymbolKind.Number | ||
return 16 satisfies typeof lsp.SymbolKind.Number | ||
} | ||
if (symbolKind === (16 satisfies monaco.languages.SymbolKind.Boolean)) { | ||
return 17 satisfies typeof ls.SymbolKind.Boolean | ||
return 17 satisfies typeof lsp.SymbolKind.Boolean | ||
} | ||
if (symbolKind === (17 satisfies monaco.languages.SymbolKind.Array)) { | ||
return 18 satisfies typeof ls.SymbolKind.Array | ||
return 18 satisfies typeof lsp.SymbolKind.Array | ||
} | ||
if (symbolKind === (18 satisfies monaco.languages.SymbolKind.Object)) { | ||
return 19 satisfies typeof ls.SymbolKind.Object | ||
return 19 satisfies typeof lsp.SymbolKind.Object | ||
} | ||
if (symbolKind === (19 satisfies monaco.languages.SymbolKind.Key)) { | ||
return 20 satisfies typeof ls.SymbolKind.Key | ||
return 20 satisfies typeof lsp.SymbolKind.Key | ||
} | ||
if (symbolKind === (20 satisfies monaco.languages.SymbolKind.Null)) { | ||
return 21 satisfies typeof ls.SymbolKind.Null | ||
return 21 satisfies typeof lsp.SymbolKind.Null | ||
} | ||
if (symbolKind === (21 satisfies monaco.languages.SymbolKind.EnumMember)) { | ||
return 22 satisfies typeof ls.SymbolKind.EnumMember | ||
return 22 satisfies typeof lsp.SymbolKind.EnumMember | ||
} | ||
if (symbolKind === (22 satisfies monaco.languages.SymbolKind.Struct)) { | ||
return 23 satisfies typeof ls.SymbolKind.Struct | ||
return 23 satisfies typeof lsp.SymbolKind.Struct | ||
} | ||
if (symbolKind === (23 satisfies monaco.languages.SymbolKind.Event)) { | ||
return 24 satisfies typeof ls.SymbolKind.Event | ||
return 24 satisfies typeof lsp.SymbolKind.Event | ||
} | ||
if (symbolKind === (24 satisfies monaco.languages.SymbolKind.Operator)) { | ||
return 25 satisfies typeof ls.SymbolKind.Operator | ||
return 25 satisfies typeof lsp.SymbolKind.Operator | ||
} | ||
// SymbolKind === SymbolKind.TypeParameter | ||
return 26 satisfies typeof ls.SymbolKind.TypeParameter | ||
return 26 satisfies typeof lsp.SymbolKind.TypeParameter | ||
} | ||
@@ -101,76 +101,76 @@ | ||
*/ | ||
export function toSymbolKind(symbolKind: ls.SymbolKind): monaco.languages.SymbolKind { | ||
if (symbolKind === (1 satisfies typeof ls.SymbolKind.File)) { | ||
export function toSymbolKind(symbolKind: lsp.SymbolKind): monaco.languages.SymbolKind { | ||
if (symbolKind === (1 satisfies typeof lsp.SymbolKind.File)) { | ||
return 0 satisfies monaco.languages.SymbolKind.File | ||
} | ||
if (symbolKind === (2 satisfies typeof ls.SymbolKind.Module)) { | ||
if (symbolKind === (2 satisfies typeof lsp.SymbolKind.Module)) { | ||
return 1 satisfies monaco.languages.SymbolKind.Module | ||
} | ||
if (symbolKind === (3 satisfies typeof ls.SymbolKind.Namespace)) { | ||
if (symbolKind === (3 satisfies typeof lsp.SymbolKind.Namespace)) { | ||
return 2 satisfies monaco.languages.SymbolKind.Namespace | ||
} | ||
if (symbolKind === (4 satisfies typeof ls.SymbolKind.Package)) { | ||
if (symbolKind === (4 satisfies typeof lsp.SymbolKind.Package)) { | ||
return 3 satisfies monaco.languages.SymbolKind.Package | ||
} | ||
if (symbolKind === (5 satisfies typeof ls.SymbolKind.Class)) { | ||
if (symbolKind === (5 satisfies typeof lsp.SymbolKind.Class)) { | ||
return 4 satisfies monaco.languages.SymbolKind.Class | ||
} | ||
if (symbolKind === (6 satisfies typeof ls.SymbolKind.Method)) { | ||
if (symbolKind === (6 satisfies typeof lsp.SymbolKind.Method)) { | ||
return 5 satisfies monaco.languages.SymbolKind.Method | ||
} | ||
if (symbolKind === (7 satisfies typeof ls.SymbolKind.Property)) { | ||
if (symbolKind === (7 satisfies typeof lsp.SymbolKind.Property)) { | ||
return 6 satisfies monaco.languages.SymbolKind.Property | ||
} | ||
if (symbolKind === (8 satisfies typeof ls.SymbolKind.Field)) { | ||
if (symbolKind === (8 satisfies typeof lsp.SymbolKind.Field)) { | ||
return 7 satisfies monaco.languages.SymbolKind.Field | ||
} | ||
if (symbolKind === (9 satisfies typeof ls.SymbolKind.Constructor)) { | ||
if (symbolKind === (9 satisfies typeof lsp.SymbolKind.Constructor)) { | ||
return 8 satisfies monaco.languages.SymbolKind.Constructor | ||
} | ||
if (symbolKind === (10 satisfies typeof ls.SymbolKind.Enum)) { | ||
if (symbolKind === (10 satisfies typeof lsp.SymbolKind.Enum)) { | ||
return 9 satisfies monaco.languages.SymbolKind.Enum | ||
} | ||
if (symbolKind === (11 satisfies typeof ls.SymbolKind.Interface)) { | ||
if (symbolKind === (11 satisfies typeof lsp.SymbolKind.Interface)) { | ||
return 10 satisfies monaco.languages.SymbolKind.Interface | ||
} | ||
if (symbolKind === (12 satisfies typeof ls.SymbolKind.Function)) { | ||
if (symbolKind === (12 satisfies typeof lsp.SymbolKind.Function)) { | ||
return 11 satisfies monaco.languages.SymbolKind.Function | ||
} | ||
if (symbolKind === (13 satisfies typeof ls.SymbolKind.Variable)) { | ||
if (symbolKind === (13 satisfies typeof lsp.SymbolKind.Variable)) { | ||
return 12 satisfies monaco.languages.SymbolKind.Variable | ||
} | ||
if (symbolKind === (14 satisfies typeof ls.SymbolKind.Constant)) { | ||
if (symbolKind === (14 satisfies typeof lsp.SymbolKind.Constant)) { | ||
return 13 satisfies monaco.languages.SymbolKind.Constant | ||
} | ||
if (symbolKind === (15 satisfies typeof ls.SymbolKind.String)) { | ||
if (symbolKind === (15 satisfies typeof lsp.SymbolKind.String)) { | ||
return 14 satisfies monaco.languages.SymbolKind.String | ||
} | ||
if (symbolKind === (16 satisfies typeof ls.SymbolKind.Number)) { | ||
if (symbolKind === (16 satisfies typeof lsp.SymbolKind.Number)) { | ||
return 15 satisfies monaco.languages.SymbolKind.Number | ||
} | ||
if (symbolKind === (17 satisfies typeof ls.SymbolKind.Boolean)) { | ||
if (symbolKind === (17 satisfies typeof lsp.SymbolKind.Boolean)) { | ||
return 16 satisfies monaco.languages.SymbolKind.Boolean | ||
} | ||
if (symbolKind === (18 satisfies typeof ls.SymbolKind.Array)) { | ||
if (symbolKind === (18 satisfies typeof lsp.SymbolKind.Array)) { | ||
return 17 satisfies monaco.languages.SymbolKind.Array | ||
} | ||
if (symbolKind === (19 satisfies typeof ls.SymbolKind.Object)) { | ||
if (symbolKind === (19 satisfies typeof lsp.SymbolKind.Object)) { | ||
return 18 satisfies monaco.languages.SymbolKind.Object | ||
} | ||
if (symbolKind === (20 satisfies typeof ls.SymbolKind.Key)) { | ||
if (symbolKind === (20 satisfies typeof lsp.SymbolKind.Key)) { | ||
return 19 satisfies monaco.languages.SymbolKind.Key | ||
} | ||
if (symbolKind === (21 satisfies typeof ls.SymbolKind.Null)) { | ||
if (symbolKind === (21 satisfies typeof lsp.SymbolKind.Null)) { | ||
return 20 satisfies monaco.languages.SymbolKind.Null | ||
} | ||
if (symbolKind === (22 satisfies typeof ls.SymbolKind.EnumMember)) { | ||
if (symbolKind === (22 satisfies typeof lsp.SymbolKind.EnumMember)) { | ||
return 21 satisfies monaco.languages.SymbolKind.EnumMember | ||
} | ||
if (symbolKind === (23 satisfies typeof ls.SymbolKind.Struct)) { | ||
if (symbolKind === (23 satisfies typeof lsp.SymbolKind.Struct)) { | ||
return 22 satisfies monaco.languages.SymbolKind.Struct | ||
} | ||
if (symbolKind === (24 satisfies typeof ls.SymbolKind.Event)) { | ||
if (symbolKind === (24 satisfies typeof lsp.SymbolKind.Event)) { | ||
return 23 satisfies monaco.languages.SymbolKind.Event | ||
} | ||
if (symbolKind === (25 satisfies typeof ls.SymbolKind.Operator)) { | ||
if (symbolKind === (25 satisfies typeof lsp.SymbolKind.Operator)) { | ||
return 24 satisfies monaco.languages.SymbolKind.Operator | ||
@@ -177,0 +177,0 @@ } |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
export function fromSymbolTag(symbolTag: monaco.languages.SymbolTag): ls.SymbolTag { | ||
export function fromSymbolTag(symbolTag: monaco.languages.SymbolTag): lsp.SymbolTag { | ||
return symbolTag | ||
@@ -25,4 +25,4 @@ } | ||
*/ | ||
export function toSymbolTag(symbolTag: ls.SymbolTag): monaco.languages.SymbolTag { | ||
export function toSymbolTag(symbolTag: lsp.SymbolTag): monaco.languages.SymbolTag { | ||
return symbolTag | ||
} |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
@@ -14,3 +14,3 @@ import { fromRange, toRange } from './range.js' | ||
*/ | ||
export function fromTextEdit(textEdit: monaco.languages.TextEdit): ls.TextEdit { | ||
export function fromTextEdit(textEdit: monaco.languages.TextEdit): lsp.TextEdit { | ||
return { | ||
@@ -30,3 +30,3 @@ range: fromRange(textEdit.range), | ||
*/ | ||
export function toTextEdit(textEdit: ls.TextEdit): monaco.languages.TextEdit { | ||
export function toTextEdit(textEdit: lsp.TextEdit): monaco.languages.TextEdit { | ||
return { | ||
@@ -33,0 +33,0 @@ range: toRange(textEdit.range), |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
import { URI } from 'vscode-uri' | ||
@@ -16,7 +16,13 @@ | ||
*/ | ||
export function fromWorkspaceEdit(workspaceEdit: monaco.languages.WorkspaceEdit): ls.WorkspaceEdit { | ||
const changes: Record<string, ls.TextEdit[]> = {} | ||
const documentChanges: (ls.CreateFile | ls.DeleteFile | ls.RenameFile | ls.TextDocumentEdit)[] = | ||
[] | ||
const textDocumentMap = new Map<string, Map<number, ls.TextEdit[]>>() | ||
export function fromWorkspaceEdit( | ||
workspaceEdit: monaco.languages.WorkspaceEdit | ||
): lsp.WorkspaceEdit { | ||
const changes: Record<string, lsp.TextEdit[]> = {} | ||
const documentChanges: ( | ||
| lsp.CreateFile | ||
| lsp.DeleteFile | ||
| lsp.RenameFile | ||
| lsp.TextDocumentEdit | ||
)[] = [] | ||
const textDocumentMap = new Map<string, Map<number, lsp.TextEdit[]>>() | ||
@@ -70,3 +76,3 @@ for (const edit of workspaceEdit.edits) { | ||
function toWorkspaceTextEdit( | ||
textEdit: ls.TextEdit, | ||
textEdit: lsp.TextEdit, | ||
uri: string, | ||
@@ -90,3 +96,3 @@ versionId?: number | ||
*/ | ||
export function toWorkspaceEdit(workspaceEdit: ls.WorkspaceEdit): monaco.languages.WorkspaceEdit { | ||
export function toWorkspaceEdit(workspaceEdit: lsp.WorkspaceEdit): monaco.languages.WorkspaceEdit { | ||
const edits: monaco.languages.WorkspaceEdit['edits'] = [] | ||
@@ -93,0 +99,0 @@ |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
import { URI } from 'vscode-uri' | ||
@@ -10,3 +10,3 @@ | ||
type WorkspaceFileEdit = ls.CreateFile | ls.DeleteFile | ls.RenameFile | ||
type WorkspaceFileEdit = lsp.CreateFile | lsp.DeleteFile | lsp.RenameFile | ||
@@ -13,0 +13,0 @@ /** |
import type * as monaco from 'monaco-types' | ||
import type * as ls from 'vscode-languageserver-protocol' | ||
import type * as lsp from 'vscode-languageserver-protocol' | ||
type LSFileEditOptions = ls.CreateFileOptions & ls.DeleteFileOptions & ls.RenameFileOptions | ||
type LSPFileEditOptions = lsp.CreateFileOptions & lsp.DeleteFileOptions & lsp.RenameFileOptions | ||
@@ -16,4 +16,4 @@ /** | ||
options: monaco.languages.WorkspaceFileEditOptions | ||
): LSFileEditOptions { | ||
const result: LSFileEditOptions = {} | ||
): LSPFileEditOptions { | ||
const result: LSPFileEditOptions = {} | ||
@@ -45,3 +45,3 @@ if (options.ignoreIfExists != null) { | ||
export function toWorkspaceFileEditOptions( | ||
options: LSFileEditOptions | ||
options: LSPFileEditOptions | ||
): monaco.languages.WorkspaceFileEditOptions { | ||
@@ -48,0 +48,0 @@ const result: monaco.languages.WorkspaceFileEditOptions = {} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
302960
6304