/
types.ts
84 lines (82 loc) · 2.63 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import type * as Requests from './requests';
export declare let __requests: typeof Requests; // keep this code for jsdoc link
export interface ServerInitializationOptions {
typescript: {
/**
* Path to tsserverlibrary.js / tsserver.js / typescript.js
* @example
* '/usr/local/lib/node_modules/typescript/lib/tsserverlibrary.js' // use global typescript install
* 'typescript/lib/tsserverlibrary.js' // if `typescript` exist in `@volar/vue-lannguage-server` itself node_modules directory
* '../../../typescript/lib/tsserverlibrary.js' // relative path to @volar/vue-language-server/out/index.js
*/
serverPath: string
/**
* Path to lib/xxx/diagnosticMessages.generated.json
* @example
* '/usr/local/lib/node_modules/typescript/lib/ja/diagnosticMessages.generated.json' // use global typescript install
* 'typescript/lib/ja/diagnosticMessages.generated.json' // if `typescript` exist in `@volar/vue-lannguage-server` itself node_modules directory
* '../../../typescript/lib/ja/diagnosticMessages.generated.json' // relative path to @volar/vue-language-server/out/index.js
*/
localizedPath?: string
}
/**
* typescript, html, css... language service will be create in server if this option is not null
*/
languageFeatures?: {
references?: boolean
implementation?: boolean
definition?: boolean
typeDefinition?: boolean
callHierarchy?: boolean
hover?: boolean
rename?: boolean
renameFileRefactoring?: boolean
signatureHelp?: boolean
completion?: {
defaultTagNameCase: 'both' | 'kebabCase' | 'pascalCase',
defaultAttrNameCase: 'kebabCase' | 'camelCase',
/**
* {@link __requests.GetDocumentNameCasesRequest}
*/
getDocumentNameCasesRequest?: boolean,
/**
* {@link __requests.GetDocumentSelectionRequest}
* */
getDocumentSelectionRequest?: boolean,
}
documentHighlight?: boolean
documentLink?: boolean
workspaceSymbol?: boolean
codeLens?: boolean | {
/**
* {@link __requests.ShowReferencesNotification}
* */
showReferencesNotification?: boolean,
}
semanticTokens?: boolean
codeAction?: boolean
diagnostics?: boolean | {
/**
* {@link __requests.GetDocumentVersionRequest}
* */
getDocumentVersionRequest: boolean,
}
schemaRequestService?: boolean | {
/**
* {@link __requests.GetDocumentContentRequest}
* */
getDocumentContentRequest?: boolean,
}
}
/**
* html language service will be create in server if this option is not null
*/
documentFeatures?: {
selectionRange?: boolean
foldingRange?: boolean
linkedEditingRange?: boolean
documentSymbol?: boolean
documentColor?: boolean
documentFormatting?: boolean,
}
}