-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextension.json
More file actions
193 lines (187 loc) · 6.98 KB
/
extension.json
File metadata and controls
193 lines (187 loc) · 6.98 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
{
"identifier": "com.zwopple.typescript-lsp",
"name": "TypeScript-LSP",
"organization": "Zwopple Limited",
"description": "A TypeScript LSP extension for Nova code editor.",
"version": "1.0",
"categories": [
"completions",
"formatters",
"issues",
"languages",
"sidebars"
],
"license": "MIT",
"repository": "https://github.com/zwopple/TypeScript-LSP.novaextension",
"bugs": "https://github.com/zwopple/TypeScript-LSP.novaextension/issues",
"main": "main.js",
"min_runtime": "10.0",
"activationEvents": [
"onLanguage:typescript",
"onLanguage:tsx",
"onLanguage:javascript",
"onLanguage:jsx",
"onWorkspaceContains:tsconfig.json"
],
"entitlements": {
"process": true,
"filesystem": "readonly"
},
"config": [
{
"title": "Config",
"type": "section",
"children": [
{
"key": "com.zwopple.typescript-lsp.path",
"title": "Path",
"description": "(optional) Path to custom `typescript-language-server` executable.",
"type": "string",
},
{
"key": "com.zwopple.typescript-lsp.config.isEnabledOnJavaScript",
"title": "Use with JavaScript",
"type": "boolean",
"default": true
},
{
"key": "com.zwopple.typescript-lsp.config.organizeImportsOnSave",
"title": "Organize imports on save",
"type": "boolean",
"default": false
},
{
"key": "com.zwopple.typescript-lsp.config.formatOnSave",
"title": "Format on save",
"type": "boolean",
"default": false
}
]
},
{
"title": "Language Server",
"type": "section",
"children": [
{
"key": "com.zwopple.typescript-lsp.languageServer.disableSuggestions",
"title": "Disable Suggestions",
"type": "boolean",
"default": false
},
{
"key": "com.zwopple.typescript-lsp.languageServer.quotePreference",
"title": "Quote Preference",
"type": "enum",
"values": [
["auto", "Automatic"],
["double", "Double (\")"],
["single", "Single (')"]
],
"default": "auto"
},
{
"key": "com.zwopple.typescript-lsp.languageServer.includeCompletionsForModuleExports",
"title": "Include completions for module exports",
"description": "If enabled, TypeScript will search through all external modules' exports and add them to the completions list. This affects lone identifier completions but not completions on the right hand side of `obj.`.",
"type": "boolean",
"default": false
},
{
"key": "com.zwopple.typescript-lsp.languageServer.includeCompletionsForImportStatements",
"title": "Include completions for import statements",
"description": "Enables auto-import-style completions on partially-typed import statements. E.g., allows `import write|` to be completed to `import { writeFile } from \"fs\"`.",
"type": "boolean",
"default": true
},
{
"key": "com.zwopple.typescript-lsp.languageServer.includeCompletionsWithSnippetText",
"title": "Include completions for import statements",
"description": "Allows completions to be formatted with snippet text, indicated by `CompletionItem[\"isSnippet\"]`.",
"type": "boolean",
"default": true
},
{
"key": "com.zwopple.typescript-lsp.languageServer.includeCompletionsWithInsertText",
"title": "Include completions for import statements",
"description": "If enabled, the completion list will include completions with invalid identifier names. For those entries, The `insertText` and `replacementSpan` properties will be set to change from `.x` property access to `[\"x\"]`.",
"type": "boolean",
"default": true
},
{
"key": "com.zwopple.typescript-lsp.languageServer.includeAutomaticOptionalChainCompletions",
"title": "Include completions for import statements",
"description": "Unless this option is `false`, or `includeCompletionsWithInsertText` is not enabled, member completion lists triggered with `.` will include entries on potentially-null and potentially-undefined values, with insertion text to replace preceding `.` tokens with `?.`",
"type": "boolean",
"default": true
},
{
"key": "com.zwopple.typescript-lsp.languageServer.importModuleSpecifierPreference",
"title": "Import module specifier",
"description": "Preferred path ending for auto imports.",
"type": "enum",
"values": [
["shortest", "Shortest"],
["project-relative", "Project-relative"],
["relative", "Relative"],
["non-relative", "Non-relative"]
],
"default": "shortest"
},
{
"key": "com.zwopple.typescript-lsp.languageServer.importModuleSpecifierEnding",
"title": "Import module specifier",
"description": "Determines whether we import `foo/index.ts` as \"foo\", \"foo/index\", or \"foo/index.js\"",
"type": "enum",
"values": [
["auto", "Automatic"],
["minimal", "Minimal"],
["index", "Index"],
["js", ".js"]
],
"default": "auto"
},
{
"key": "com.zwopple.typescript-lsp.languageServer.lazyConfiguredProjectsFromExternalProject",
"title": "Lazy configured projects from external projects",
"type": "boolean"
},
{
"key": "com.zwopple.typescript-lsp.languageServer.providePrefixAndSuffixTextForRename",
"title": "Provide prefix and suffix text for rename",
"type": "boolean"
},
{
"key": "com.zwopple.typescript-lsp.languageServer.provideRefactorNotApplicableReason",
"title": "Provide refactor not applicable reason",
"type": "boolean"
},
{
"key": "com.zwopple.typescript-lsp.languageServer.allowRenameOfImportPath",
"title": "Allow rename of import path",
"type": "boolean"
},
{
"key": "com.zwopple.typescript-lsp.languageServer.includePackageJsonAutoImports",
"title": "Allow rename of import path",
"type": "enum",
"values": [
["auto", "Automatic"],
["on", "On"],
["off", "Off"]
],
"default": "auto"
},
{
"key": "com.zwopple.typescript-lsp.languageServer.displayPartsForJSDoc",
"title": "Display parts for JSDoc",
"type": "boolean"
},
{
"key": "com.zwopple.typescript-lsp.languageServer.generateReturnInDocTemplate",
"title": "Generate return in documentation templates",
"type": "boolean"
}
]
}
]
}