@marko/language-server 0.12.7 → 0.12.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +768 -113
- package/dist/index.js.map +3 -3
- package/dist/index.mjs +765 -104
- package/dist/index.mjs.map +3 -3
- package/dist/service/marko/complete/AttrValue.d.ts +4 -0
- package/dist/service/marko/document-links/extract.d.ts +8 -0
- package/dist/service/marko/document-links/index.d.ts +2 -0
- package/dist/service/marko/util/is-document-link-attr.d.ts +5 -0
- package/dist/service/stylesheet/extract.d.ts +1 -1
- package/dist/service/stylesheet/index.d.ts +2 -2
- package/dist/service/types.d.ts +9 -1
- package/dist/utils/file-system.d.ts +9 -0
- package/dist/utils/resolve-url.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Plugin } from "../types";
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const StyleSheetService: Partial<Plugin>;
|
|
3
|
+
export { StyleSheetService as default };
|
package/dist/service/types.d.ts
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
import type { CancellationToken, CompletionItem, CompletionList, CompletionParams, DefinitionParams, Diagnostic, DocumentFormattingParams, Hover, HoverParams, Location, LocationLink, TextEdit } from "vscode-languageserver";
|
|
1
|
+
import type { CancellationToken, CodeAction, CodeActionParams, ColorInformation, ColorPresentation, ColorPresentationParams, Command, CompletionItem, CompletionList, CompletionParams, DefinitionParams, Diagnostic, DocumentColorParams, DocumentFormattingParams, DocumentHighlight, DocumentHighlightParams, DocumentLink, DocumentLinkParams, Hover, HoverParams, InitializeParams, Location, LocationLink, ReferenceParams, RenameParams, TextEdit, WorkspaceEdit } from "vscode-languageserver";
|
|
2
2
|
import type { TextDocument } from "vscode-languageserver-textdocument";
|
|
3
3
|
export declare type Result<V> = Promise<V | void> | V | void;
|
|
4
4
|
declare type Handler<P, R> = (doc: TextDocument, params: P extends null ? CancellationToken : P, token: P extends null ? never : CancellationToken) => Result<R>;
|
|
5
5
|
export declare type Plugin = {
|
|
6
|
+
initialize: (params: InitializeParams) => Promise<void> | void;
|
|
6
7
|
doComplete: Handler<CompletionParams, CompletionItem[] | CompletionList>;
|
|
7
8
|
doValidate: (doc: TextDocument) => Result<Diagnostic[]>;
|
|
8
9
|
doHover: Handler<HoverParams, Hover>;
|
|
10
|
+
doRename: Handler<RenameParams, WorkspaceEdit>;
|
|
11
|
+
doCodeActions: Handler<CodeActionParams, (Command | CodeAction)[]>;
|
|
9
12
|
findDefinition: Handler<DefinitionParams, Location | LocationLink | (Location | LocationLink)[]>;
|
|
13
|
+
findReferences: Handler<ReferenceParams, Location[]>;
|
|
14
|
+
findDocumentLinks: Handler<DocumentLinkParams, DocumentLink[]>;
|
|
15
|
+
findDocumentHighlights: Handler<DocumentHighlightParams, DocumentHighlight[]>;
|
|
16
|
+
findDocumentColors: Handler<DocumentColorParams, ColorInformation[]>;
|
|
17
|
+
getColorPresentations: Handler<ColorPresentationParams, ColorPresentation[]>;
|
|
10
18
|
format: Handler<DocumentFormattingParams, TextEdit[]>;
|
|
11
19
|
};
|
|
12
20
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type FileStat, FileType } from "vscode-css-languageservice";
|
|
2
|
+
export { FileStat, FileType };
|
|
3
|
+
declare const _default: {
|
|
4
|
+
stat: typeof stat;
|
|
5
|
+
readDirectory: typeof readDirectory;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
declare function stat(fileName: string): Promise<FileStat>;
|
|
9
|
+
declare function readDirectory(dir: string): Promise<[string, FileType][]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function resolveUrl(to: string, base: string): string | undefined;
|