-
Notifications
You must be signed in to change notification settings - Fork 8
/
LSP-volar.sublime-settings
282 lines (282 loc) · 14.3 KB
/
LSP-volar.sublime-settings
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
{
"initializationOptions": {
// List any additional file extensions that should be processed as Vue files.
"additionalExtensions": [],
// Path to volar.config.js.
"configFilePath": "./volar.config.js",
// Diagnostic update model. (1 - Push, 2 - Pull)
"diagnosticModel": 2,
// Enable this option if you want to get complete CompletionList in language client.
// (Disable for better performance)
"fullCompletionList": false,
// Maximum file size for Vue Server to load. (default: 20MB)
"maxFileSize": 20971520,
// Defines which auto-complete popup trigger characters that Volar defines are allowed.
// By default all Volar trigger characters are disabled as ST does a better job.
"ignoreTriggerCharacters": [],
"json.customBlockSchemaUrls": {},
// Reverse priority for tsconfig pickup.
"reverseConfigFilePriority": false,
// Specify the `typescript.tsdk` to tsserverlibrary.js.
// If not specified LSP-volar will use the typescript from the workspace if it exist,
// else the typescript bundled with LSP-volar will be used.
// "typescript.tsdk": "/path/to/tsserverlibrary.js",
},
"settings": {
// Preferred tag name case.
// possible values:
// - "autoKebab": Auto Detect from Content (Fallback to <kebab-case> if detect failed)
// - "autoPascal": Auto Detect from Content (Fallback to <PascalCase> if detect failed)
// - "kebab" - <kebab-case>
// - "pascal" - <PascalCase>
"vue.complete.casing.tags": "autoPascal",
// Preferred attr name case.
// possible values:
// - "autoKebab": Auto Detect from Content (Fallback to :kebab-case="..." if detect failed)
// - "autoPascal": Auto Detect from Content (Fallback to :camelCase="..." if detect failed)
// - "kebab": :kebab-case="..."
// - "pascal": :camelCase="..."
"vue.complete.casing.props": "autoKebab",
// Normalize import name for auto import. ("myCompVue" -> "MyComp")
"vue.features.complete.normalizeComponentImportName": true,
// Show inlay hints for missing required props.
"vue.inlayHints.missingProps": false,
// Show inlay hints for event argument in inline handlers.
"vue.inlayHints.inlineHandlerLeading": false,
// Show inlay hints for component options wrapper for type support.
"vue.inlayHints.optionsWrapper": true,
// Whether to have initial indent.
"volar.format.initialIndent": {
"css": false,
"html": true,
"jade": false,
"javascript": false,
"javascriptreact": false,
"json": false,
"json5": false,
"jsonc": false,
"less": false,
"sass": false,
"scss": false,
"typescript": false,
"typescriptreact": false,
},
// javascript inlay hint
"javascript.inlayHints.enumMemberValues.enabled": false,
"javascript.inlayHints.functionLikeReturnTypes.enabled": false,
"javascript.inlayHints.parameterNames.enabled": "none",
"javascript.inlayHints.parameterNames.suppressWhenArgumentMatchesName": true,
"javascript.inlayHints.parameterTypes.enabled": false,
"javascript.inlayHints.propertyDeclarationTypes.enabled": false,
"javascript.inlayHints.variableTypes.enabled": false,
"javascript.inlayHints.variableTypes.suppressWhenTypeMatchesName.enabled": true,
// typescript inlay hint
"typescript.inlayHints.enumMemberValues.enabled": false,
"typescript.inlayHints.functionLikeReturnTypes.enabled": false,
"typescript.inlayHints.parameterNames.enabled": "none",
"typescript.inlayHints.parameterNames.suppressWhenArgumentMatchesName": true,
"typescript.inlayHints.parameterTypes.enabled": false,
"typescript.inlayHints.propertyDeclarationTypes.enabled": false,
"typescript.inlayHints.variableTypes.enabled": false,
"typescript.inlayHints.variableTypes.suppressWhenTypeMatchesName.enabled": true,
// javascript completions
"javascript.suggest.autoImports": false, // Disabled by default due to UI freezes that large completion responses cause.
"javascript.suggest.classMemberSnippets.enabled": true,
"javascript.suggest.completeFunctionCalls": false,
"javascript.suggest.includeAutomaticOptionalChainCompletions": true,
"javascript.suggest.includeCompletionsForImportStatements": true,
"javascript.suggest.includeCompletionsWithSnippetText": true,
"javascript.suggest.jsdoc.generateReturns": true,
"javascript.suggest.objectLiteralMethodSnippets.enabled": true,
// typescript completions
"typescript.suggest.autoImports": false, // Disabled by default due to UI freezes that large completion responses cause.
"typescript.suggest.classMemberSnippets.enabled": true,
"typescript.suggest.completeFunctionCalls": false,
"typescript.suggest.includeAutomaticOptionalChainCompletions": true,
"typescript.suggest.includeCompletionsForImportStatements": true,
"typescript.suggest.includeCompletionsWithSnippetText": true,
"typescript.suggest.jsdoc.generateReturns": true,
"typescript.suggest.objectLiteralMethodSnippets.enabled": true,
// Other javascript options
"javascript.preferences.quoteStyle": "auto",
"javascript.preferences.importModuleSpecifier": "shortest",
"javascript.preferences.importModuleSpecifierEnding": "auto",
"javascript.preferences.jsxAttributeCompletionStyle": "auto",
"javascript.preferences.autoImportFileExcludePatterns": [],
// Other typescript options
"typescript.preferences.quoteStyle": "auto",
"typescript.preferences.importModuleSpecifier": "shortest",
"typescript.preferences.importModuleSpecifierEnding": "auto",
"typescript.preferences.jsxAttributeCompletionStyle": "auto",
"typescript.preferences.autoImportFileExcludePatterns": [],
// --- Emmet plugin settings (autocompletion within template blocks). ---
// An array of languages where Emmet abbreviations should not be expanded.
"emmet.excludeLanguages": [
"markdown"
],
// Preferences used to modify behavior of some actions and resolvers of Emmet.
"emmet.preferences": {},
// Shows possible Emmet abbreviations as suggestions. Not applicable in stylesheets or when
// emmet.showExpandedAbbreviation is set to `"never"`.
"emmet.showAbbreviationSuggestions": true,
// Shows expanded Emmet abbreviations as suggestions.
// The option `"inMarkupAndStylesheetFilesOnly"` applies to html, haml, jade, slim, xml,
// xsl, css, scss, sass, less and stylus.
// The option `"always"` applies to all parts of the file regardless of markup/css.
// possible values: "never", "always", "inMarkupAndStylesheetFilesOnly"
"emmet.showExpandedAbbreviation": "always",
// If `true`, then Emmet suggestions will show up as snippets allowing you to order them as
// per `#editor.snippetSuggestions#` setting.
"emmet.showSuggestionsAsSnippets": false,
// Define profile for specified syntax or use your own profile with specific rules.
"emmet.syntaxProfiles": {},
// Variables to be used in Emmet snippets.
"emmet.variables": {},
// --- CSS plugin settings ---
// Insert semicolon at end of line when completing CSS properties.
"css.completion.completePropertyWithSemicolon": true,
// By default, VS Code triggers property value completion after selecting a CSS property.
// Use this setting to disable this behavior.
"css.completion.triggerPropertyValueCompletion": true,
// A list of relative file paths pointing to JSON files following the custom data format
// (https://github.com/microsoft/vscode-css-languageservice/blob/master/docs/customData.md).
// Loads custom data to enhance its CSS support for the custom CSS properties, at directives, pseudo classes
// and pseudo elements you specify in the JSON files.
// The file paths are relative to workspace and only workspace folder settings are considered.
"css.customData": [],
// Put braces on the same line as rules (`collapse`) or put braces on own line (`expand`).
// possible values: "collapse", "expand"
"css.format.braceStyle": "collapse",
// Enable/disable default CSS formatter.
"css.format.enable": true,
// Maximum number of line breaks to be preserved in one chunk, when
// `#css.format.preserveNewLines#` is enabled.
"css.format.maxPreserveNewLines": null,
// Separate rulesets by a blank line.
"css.format.newlineBetweenRules": true,
// Separate selectors with a new line.
"css.format.newlineBetweenSelectors": true,
// Whether existing line breaks before elements should be preserved.
"css.format.preserveNewLines": true,
// Ensure a space character around selector separators '>', '+', '~' (e.g. `a > b`).
"css.format.spaceAroundSelectorSeparator": false,
// Show tag and attribute documentation in CSS hovers.
"css.hover.documentation": true,
// Show references to MDN in CSS hovers.
"css.hover.references": true,
// Insert semicolon at end of line when completing CSS properties.
"less.completion.completePropertyWithSemicolon": true,
// By default, VS Code triggers property value completion after selecting a CSS property.
// Use this setting to disable this behavior.
"less.completion.triggerPropertyValueCompletion": true,
// Put braces on the same line as rules (`collapse`) or put braces on own line (`expand`).
// possible values: "collapse", "expand"
"less.format.braceStyle": "collapse",
// Enable/disable default LESS formatter.
"less.format.enable": true,
// Maximum number of line breaks to be preserved in one chunk, when
// `#less.format.preserveNewLines#` is enabled.
"less.format.maxPreserveNewLines": null,
// Separate rulesets by a blank line.
"less.format.newlineBetweenRules": true,
// Separate selectors with a new line.
"less.format.newlineBetweenSelectors": true,
// Whether existing line breaks before elements should be preserved.
"less.format.preserveNewLines": true,
// Ensure a space character around selector separators '>', '+', '~' (e.g. `a > b`).
"less.format.spaceAroundSelectorSeparator": false,
// Show tag and attribute documentation in LESS hovers.
"less.hover.documentation": true,
// Show references to MDN in LESS hovers.
"less.hover.references": true,
// Insert semicolon at end of line when completing CSS properties.
"scss.completion.completePropertyWithSemicolon": true,
// By default, VS Code triggers property value completion after selecting a CSS property.
// Use this setting to disable this behavior.
"scss.completion.triggerPropertyValueCompletion": true,
// Put braces on the same line as rules (`collapse`) or put braces on own line (`expand`).
// possible values: "collapse", "expand"
"scss.format.braceStyle": "collapse",
// Enable/disable default SCSS formatter.
"scss.format.enable": true,
// Maximum number of line breaks to be preserved in one chunk, when
// `#scss.format.preserveNewLines#` is enabled.
"scss.format.maxPreserveNewLines": null,
// Separate rulesets by a blank line.
"scss.format.newlineBetweenRules": true,
// Separate selectors with a new line.
"scss.format.newlineBetweenSelectors": true,
// Whether existing line breaks before elements should be preserved.
"scss.format.preserveNewLines": true,
// Ensure a space character around selector separators '>', '+', '~' (e.g. `a > b`).
"scss.format.spaceAroundSelectorSeparator": false,
// Show tag and attribute documentation in SCSS hovers.
"scss.hover.documentation": true,
// Show references to MDN in SCSS hovers.
"scss.hover.references": true,
// --- HTML plugin settings ---
// Enable/disable autoclosing of HTML tags.
"html.autoClosingTags": true,
// Enable/disable auto creation of quotes for HTML attribute assignment. The type of quotes
// can be configured by `#html.completion.attributeDefaultValue#`.
"html.autoCreateQuotes": true,
// Controls the default value for attributes when completion is accepted.
// possible values: "doublequotes", "singlequotes", "empty"
"html.completion.attributeDefaultValue": "doublequotes",
// A list of relative file paths pointing to JSON files following the custom data format
// (https://github.com/microsoft/vscode-html-languageservice/blob/master/docs/customData.md).
// Loads custom data enhance HTML support for the custom HTML tags, attributes and attribute values you specify
// in the JSON files.
// The file paths are relative to workspace and only workspace folder settings are considered.
"html.customData": [],
// List of tags, comma separated, where the content shouldn't be reformatted. `null`
// defaults to the `pre` tag.
"html.format.contentUnformatted": "pre,code,textarea",
// Enable/disable default HTML formatter.
"html.format.enable": true,
// List of tags, comma separated, that should have an extra newline before them. `null`
// defaults to `"head, body, /html"`.
"html.format.extraLiners": "head, body, /html",
// Format and indent `{{#foo}}` and `{{/foo}}`.
"html.format.indentHandlebars": false,
// Indent `<head>` and `<body>` sections.
"html.format.indentInnerHtml": false,
// Maximum number of line breaks to be preserved in one chunk. Use `null` for unlimited.
"html.format.maxPreserveNewLines": null,
// Controls whether existing line breaks before elements should be preserved. Only works
// before elements, not inside tags or for text.
"html.format.preserveNewLines": true,
// Honor django, erb, handlebars and php templating language tags.
"html.format.templating": false,
// List of tags, comma separated, that shouldn't be reformatted. `null` defaults to all tags
// listed at https://www.w3.org/TR/html5/dom.html#phrasing-content.
"html.format.unformatted": "wbr",
// Keep text content together between this string.
"html.format.unformattedContentDelimiter": "",
// Wrap attributes.
// possible values: "auto", "force", "force-aligned", "force-expand-multiline", "aligned-multiple", "preserve", "preserve-aligned"
"html.format.wrapAttributes": "auto",
// Indent wrapped attributes to after N characters. Use `null` to use the default indent
// size. Ignored if `#html.format.wrapAttributes#` is set to 'aligned'.
"html.format.wrapAttributesIndentSize": null,
// Maximum amount of characters per line (0 = disable).
"html.format.wrapLineLength": 120,
// Show tag and attribute documentation in hover.
"html.hover.documentation": true,
// Show references to MDN in hover.
"html.hover.references": true,
// Enable/disable mirroring cursor on matching HTML tag.
},
"command": [
"${node_bin}",
// If you have problem on frequently "Request textDocument/** failed." error, try setting higher memory (MB)
// on it. For example 4096 equals 4GB.
// "--max-old-space-size=4096",
"${server_path}",
"--stdio"
],
"env": {
"NODE_ENV": "production",
},
"selector": "text.html.vue",
}