volar-service-typescript 0.0.21 → 0.0.22
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/{out/index.js → index.js} +27 -27
- package/lib/protocol.d.ts +2 -0
- package/lib/protocol.js +3 -0
- package/lib/utils/previewer.d.ts +13 -0
- package/lib/utils/snippetForFunctionCall.d.ts +9 -0
- package/package.json +4 -4
- package/out/utils/previewer.d.ts +0 -14
- package/out/utils/snippetForFunctionCall.d.ts +0 -9
- /package/{out/index.d.ts → index.d.ts} +0 -0
- /package/{out → lib}/configs/getFormatCodeSettings.d.ts +0 -0
- /package/{out → lib}/configs/getFormatCodeSettings.js +0 -0
- /package/{out → lib}/configs/getUserPreferences.d.ts +0 -0
- /package/{out → lib}/configs/getUserPreferences.js +0 -0
- /package/{out → lib}/features/callHierarchy.d.ts +0 -0
- /package/{out → lib}/features/callHierarchy.js +0 -0
- /package/{out → lib}/features/codeAction.d.ts +0 -0
- /package/{out → lib}/features/codeAction.js +0 -0
- /package/{out → lib}/features/codeActionResolve.d.ts +0 -0
- /package/{out → lib}/features/codeActionResolve.js +0 -0
- /package/{out → lib}/features/completions/basic.d.ts +0 -0
- /package/{out → lib}/features/completions/basic.js +0 -0
- /package/{out → lib}/features/completions/directiveComment.d.ts +0 -0
- /package/{out → lib}/features/completions/directiveComment.js +0 -0
- /package/{out → lib}/features/completions/jsDoc.d.ts +0 -0
- /package/{out → lib}/features/completions/jsDoc.js +0 -0
- /package/{out → lib}/features/completions/resolve.d.ts +0 -0
- /package/{out → lib}/features/completions/resolve.js +0 -0
- /package/{out → lib}/features/definition.d.ts +0 -0
- /package/{out → lib}/features/definition.js +0 -0
- /package/{out → lib}/features/diagnostics.d.ts +0 -0
- /package/{out → lib}/features/diagnostics.js +0 -0
- /package/{out → lib}/features/documentHighlight.d.ts +0 -0
- /package/{out → lib}/features/documentHighlight.js +0 -0
- /package/{out → lib}/features/documentSymbol.d.ts +0 -0
- /package/{out → lib}/features/documentSymbol.js +0 -0
- /package/{out → lib}/features/fileReferences.d.ts +0 -0
- /package/{out → lib}/features/fileReferences.js +0 -0
- /package/{out → lib}/features/fileRename.d.ts +0 -0
- /package/{out → lib}/features/fileRename.js +0 -0
- /package/{out → lib}/features/foldingRanges.d.ts +0 -0
- /package/{out → lib}/features/foldingRanges.js +0 -0
- /package/{out → lib}/features/formatting.d.ts +0 -0
- /package/{out → lib}/features/formatting.js +0 -0
- /package/{out → lib}/features/hover.d.ts +0 -0
- /package/{out → lib}/features/hover.js +0 -0
- /package/{out → lib}/features/implementation.d.ts +0 -0
- /package/{out → lib}/features/implementation.js +0 -0
- /package/{out → lib}/features/inlayHints.d.ts +0 -0
- /package/{out → lib}/features/inlayHints.js +0 -0
- /package/{out → lib}/features/prepareRename.d.ts +0 -0
- /package/{out → lib}/features/prepareRename.js +0 -0
- /package/{out → lib}/features/references.d.ts +0 -0
- /package/{out → lib}/features/references.js +0 -0
- /package/{out → lib}/features/rename.d.ts +0 -0
- /package/{out → lib}/features/rename.js +0 -0
- /package/{out → lib}/features/selectionRanges.d.ts +0 -0
- /package/{out → lib}/features/selectionRanges.js +0 -0
- /package/{out → lib}/features/semanticTokens.d.ts +0 -0
- /package/{out → lib}/features/semanticTokens.js +0 -0
- /package/{out → lib}/features/signatureHelp.d.ts +0 -0
- /package/{out → lib}/features/signatureHelp.js +0 -0
- /package/{out → lib}/features/typeDefinition.d.ts +0 -0
- /package/{out → lib}/features/typeDefinition.js +0 -0
- /package/{out → lib}/features/workspaceSymbol.d.ts +0 -0
- /package/{out → lib}/features/workspaceSymbol.js +0 -0
- /package/{out → lib}/protocol.const.d.ts +0 -0
- /package/{out → lib}/protocol.const.js +0 -0
- /package/{out → lib}/shared.d.ts +0 -0
- /package/{out → lib}/shared.js +0 -0
- /package/{out → lib}/types.d.ts +0 -0
- /package/{out → lib}/types.js +0 -0
- /package/{out → lib}/utils/errorCodes.d.ts +0 -0
- /package/{out → lib}/utils/errorCodes.js +0 -0
- /package/{out → lib}/utils/fixNames.d.ts +0 -0
- /package/{out → lib}/utils/fixNames.js +0 -0
- /package/{out → lib}/utils/modifiers.d.ts +0 -0
- /package/{out → lib}/utils/modifiers.js +0 -0
- /package/{out → lib}/utils/previewer.js +0 -0
- /package/{out → lib}/utils/snippetForFunctionCall.js +0 -0
- /package/{out → lib}/utils/transforms.d.ts +0 -0
- /package/{out → lib}/utils/transforms.js +0 -0
- /package/{out → lib}/utils/typeConverters.d.ts +0 -0
- /package/{out → lib}/utils/typeConverters.js +0 -0
|
@@ -17,35 +17,35 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
exports.create = void 0;
|
|
18
18
|
const semver = require("semver");
|
|
19
19
|
const vscode_languageserver_textdocument_1 = require("vscode-languageserver-textdocument");
|
|
20
|
-
const shared_1 = require("./shared");
|
|
20
|
+
const shared_1 = require("./lib/shared");
|
|
21
21
|
const typescript_1 = require("@volar/typescript");
|
|
22
22
|
const tsFaster = require("typescript-auto-import-cache");
|
|
23
|
-
const _callHierarchy = require("./features/callHierarchy");
|
|
24
|
-
const codeActions = require("./features/codeAction");
|
|
25
|
-
const codeActionResolve = require("./features/codeActionResolve");
|
|
26
|
-
const completions = require("./features/completions/basic");
|
|
27
|
-
const directiveCommentCompletions = require("./features/completions/directiveComment");
|
|
28
|
-
const jsDocCompletions = require("./features/completions/jsDoc");
|
|
29
|
-
const completionResolve = require("./features/completions/resolve");
|
|
30
|
-
const definitions = require("./features/definition");
|
|
31
|
-
const diagnostics = require("./features/diagnostics");
|
|
32
|
-
const documentHighlight = require("./features/documentHighlight");
|
|
33
|
-
const documentSymbol = require("./features/documentSymbol");
|
|
34
|
-
const fileReferences = require("./features/fileReferences");
|
|
35
|
-
const fileRename = require("./features/fileRename");
|
|
36
|
-
const foldingRanges = require("./features/foldingRanges");
|
|
37
|
-
const formatting = require("./features/formatting");
|
|
38
|
-
const hover = require("./features/hover");
|
|
39
|
-
const implementation = require("./features/implementation");
|
|
40
|
-
const inlayHints = require("./features/inlayHints");
|
|
41
|
-
const prepareRename = require("./features/prepareRename");
|
|
42
|
-
const references = require("./features/references");
|
|
43
|
-
const rename = require("./features/rename");
|
|
44
|
-
const selectionRanges = require("./features/selectionRanges");
|
|
45
|
-
const semanticTokens = require("./features/semanticTokens");
|
|
46
|
-
const signatureHelp = require("./features/signatureHelp");
|
|
47
|
-
const typeDefinitions = require("./features/typeDefinition");
|
|
48
|
-
const workspaceSymbols = require("./features/workspaceSymbol");
|
|
23
|
+
const _callHierarchy = require("./lib/features/callHierarchy");
|
|
24
|
+
const codeActions = require("./lib/features/codeAction");
|
|
25
|
+
const codeActionResolve = require("./lib/features/codeActionResolve");
|
|
26
|
+
const completions = require("./lib/features/completions/basic");
|
|
27
|
+
const directiveCommentCompletions = require("./lib/features/completions/directiveComment");
|
|
28
|
+
const jsDocCompletions = require("./lib/features/completions/jsDoc");
|
|
29
|
+
const completionResolve = require("./lib/features/completions/resolve");
|
|
30
|
+
const definitions = require("./lib/features/definition");
|
|
31
|
+
const diagnostics = require("./lib/features/diagnostics");
|
|
32
|
+
const documentHighlight = require("./lib/features/documentHighlight");
|
|
33
|
+
const documentSymbol = require("./lib/features/documentSymbol");
|
|
34
|
+
const fileReferences = require("./lib/features/fileReferences");
|
|
35
|
+
const fileRename = require("./lib/features/fileRename");
|
|
36
|
+
const foldingRanges = require("./lib/features/foldingRanges");
|
|
37
|
+
const formatting = require("./lib/features/formatting");
|
|
38
|
+
const hover = require("./lib/features/hover");
|
|
39
|
+
const implementation = require("./lib/features/implementation");
|
|
40
|
+
const inlayHints = require("./lib/features/inlayHints");
|
|
41
|
+
const prepareRename = require("./lib/features/prepareRename");
|
|
42
|
+
const references = require("./lib/features/references");
|
|
43
|
+
const rename = require("./lib/features/rename");
|
|
44
|
+
const selectionRanges = require("./lib/features/selectionRanges");
|
|
45
|
+
const semanticTokens = require("./lib/features/semanticTokens");
|
|
46
|
+
const signatureHelp = require("./lib/features/signatureHelp");
|
|
47
|
+
const typeDefinitions = require("./lib/features/typeDefinition");
|
|
48
|
+
const workspaceSymbols = require("./lib/features/workspaceSymbol");
|
|
49
49
|
__exportStar(require("@volar/typescript"), exports);
|
|
50
50
|
;
|
|
51
51
|
function create(ts) {
|
package/lib/protocol.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as ts from 'typescript/lib/tsserverlibrary';
|
|
2
|
+
import type { SharedContext } from '../types';
|
|
3
|
+
export interface IFilePathToResourceConverter {
|
|
4
|
+
/**
|
|
5
|
+
* Convert a typescript filepath to a VS Code resource.
|
|
6
|
+
*/
|
|
7
|
+
toResource(filepath: string): string;
|
|
8
|
+
}
|
|
9
|
+
export declare function plainWithLinks(parts: readonly ts.server.protocol.SymbolDisplayPart[] | string, filePathConverter: IFilePathToResourceConverter, ctx: SharedContext): string;
|
|
10
|
+
export declare function tagsMarkdownPreview(tags: readonly ts.JSDocTagInfo[], filePathConverter: IFilePathToResourceConverter, ctx: SharedContext): string;
|
|
11
|
+
export declare function markdownDocumentation(documentation: ts.server.protocol.SymbolDisplayPart[] | string | undefined, tags: ts.JSDocTagInfo[] | undefined, filePathConverter: IFilePathToResourceConverter, ctx: SharedContext): string;
|
|
12
|
+
export declare function addMarkdownDocumentation(out: string, documentation: ts.server.protocol.SymbolDisplayPart[] | string | undefined, tags: ts.JSDocTagInfo[] | undefined, converter: IFilePathToResourceConverter, ctx: SharedContext): string;
|
|
13
|
+
//# sourceMappingURL=previewer.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as ts from 'typescript/lib/tsserverlibrary';
|
|
2
|
+
export declare function snippetForFunctionCall(item: {
|
|
3
|
+
insertText?: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}, displayParts: ReadonlyArray<ts.server.protocol.SymbolDisplayPart>): {
|
|
6
|
+
snippet: string;
|
|
7
|
+
parameterCount: number;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=snippetForFunctionCall.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "volar-service-typescript",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"description": "Integrate TypeScript into Volar",
|
|
5
5
|
"homepage": "https://github.com/volarjs/services/tree/master/packages/typescript",
|
|
6
6
|
"bugs": "https://github.com/volarjs/services/issues",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"main": "out/index.js",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"files": [
|
|
14
|
-
"
|
|
15
|
-
"
|
|
14
|
+
"**/*.js",
|
|
15
|
+
"**/*.d.ts"
|
|
16
16
|
],
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"optional": true
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "6fb3db40aff2f3dbce116fc24b49c186ff5c0e5e"
|
|
50
50
|
}
|
package/out/utils/previewer.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type * as ts from 'typescript/lib/tsserverlibrary';
|
|
2
|
-
import type * as Proto from '../protocol';
|
|
3
|
-
import type { SharedContext } from '../types';
|
|
4
|
-
export interface IFilePathToResourceConverter {
|
|
5
|
-
/**
|
|
6
|
-
* Convert a typescript filepath to a VS Code resource.
|
|
7
|
-
*/
|
|
8
|
-
toResource(filepath: string): string;
|
|
9
|
-
}
|
|
10
|
-
export declare function plainWithLinks(parts: readonly Proto.SymbolDisplayPart[] | string, filePathConverter: IFilePathToResourceConverter, ctx: SharedContext): string;
|
|
11
|
-
export declare function tagsMarkdownPreview(tags: readonly ts.JSDocTagInfo[], filePathConverter: IFilePathToResourceConverter, ctx: SharedContext): string;
|
|
12
|
-
export declare function markdownDocumentation(documentation: Proto.SymbolDisplayPart[] | string | undefined, tags: ts.JSDocTagInfo[] | undefined, filePathConverter: IFilePathToResourceConverter, ctx: SharedContext): string;
|
|
13
|
-
export declare function addMarkdownDocumentation(out: string, documentation: Proto.SymbolDisplayPart[] | string | undefined, tags: ts.JSDocTagInfo[] | undefined, converter: IFilePathToResourceConverter, ctx: SharedContext): string;
|
|
14
|
-
//# sourceMappingURL=previewer.d.ts.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type * as Proto from '../protocol';
|
|
2
|
-
export declare function snippetForFunctionCall(item: {
|
|
3
|
-
insertText?: string;
|
|
4
|
-
label: string;
|
|
5
|
-
}, displayParts: ReadonlyArray<Proto.SymbolDisplayPart>): {
|
|
6
|
-
snippet: string;
|
|
7
|
-
parameterCount: number;
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=snippetForFunctionCall.d.ts.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{out → lib}/shared.d.ts
RENAMED
|
File without changes
|
/package/{out → lib}/shared.js
RENAMED
|
File without changes
|
/package/{out → lib}/types.d.ts
RENAMED
|
File without changes
|
/package/{out → lib}/types.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|