44// Meta info
55export const publisher = 'Vue' ;
66export const name = 'volar' ;
7- export const version = '3.1.0 ' ;
7+ export const version = '3.1.5 ' ;
88export const displayName = 'Vue (Official)' ;
99export const description = 'Language Support for Vue' ;
1010export const extensionId = `${ publisher } .${ name } ` ;
@@ -56,6 +56,9 @@ export type ConfigKey =
5656 | 'vue.format.template.initialIndent'
5757 | 'vue.format.script.initialIndent'
5858 | 'vue.format.style.initialIndent'
59+ | 'vue.format.script.enabled'
60+ | 'vue.format.template.enabled'
61+ | 'vue.format.style.enabled'
5962 | 'vue.format.wrapAttributes' ;
6063
6164export interface ConfigKeyTypeMap {
@@ -79,6 +82,9 @@ export interface ConfigKeyTypeMap {
7982 'vue.format.template.initialIndent' : boolean ;
8083 'vue.format.script.initialIndent' : boolean ;
8184 'vue.format.style.initialIndent' : boolean ;
85+ 'vue.format.script.enabled' : boolean ;
86+ 'vue.format.template.enabled' : boolean ;
87+ 'vue.format.style.enabled' : boolean ;
8288 'vue.format.wrapAttributes' :
8389 | 'auto'
8490 | 'force'
@@ -110,6 +116,9 @@ export interface ConfigShorthandMap {
110116 formatTemplateInitialIndent : 'vue.format.template.initialIndent' ;
111117 formatScriptInitialIndent : 'vue.format.script.initialIndent' ;
112118 formatStyleInitialIndent : 'vue.format.style.initialIndent' ;
119+ formatScriptEnabled : 'vue.format.script.enabled' ;
120+ formatTemplateEnabled : 'vue.format.template.enabled' ;
121+ formatStyleEnabled : 'vue.format.style.enabled' ;
113122 formatWrapAttributes : 'vue.format.wrapAttributes' ;
114123}
115124
@@ -134,6 +143,9 @@ export interface ConfigShorthandTypeMap {
134143 formatTemplateInitialIndent : boolean ;
135144 formatScriptInitialIndent : boolean ;
136145 formatStyleInitialIndent : boolean ;
146+ formatScriptEnabled : boolean ;
147+ formatTemplateEnabled : boolean ;
148+ formatStyleEnabled : boolean ;
137149 formatWrapAttributes :
138150 | 'auto'
139151 | 'force'
@@ -333,6 +345,33 @@ export const configs = {
333345 key : 'vue.format.style.initialIndent' ,
334346 default : false ,
335347 } as ConfigItem < 'vue.format.style.initialIndent' > ,
348+ /**
349+ * @key `vue.format.script.enabled`
350+ * @default `true`
351+ * @type `boolean`
352+ */
353+ formatScriptEnabled : {
354+ key : 'vue.format.script.enabled' ,
355+ default : true ,
356+ } as ConfigItem < 'vue.format.script.enabled' > ,
357+ /**
358+ * @key `vue.format.template.enabled`
359+ * @default `true`
360+ * @type `boolean`
361+ */
362+ formatTemplateEnabled : {
363+ key : 'vue.format.template.enabled' ,
364+ default : true ,
365+ } as ConfigItem < 'vue.format.template.enabled' > ,
366+ /**
367+ * @key `vue.format.style.enabled`
368+ * @default `true`
369+ * @type `boolean`
370+ */
371+ formatStyleEnabled : {
372+ key : 'vue.format.style.enabled' ,
373+ default : true ,
374+ } as ConfigItem < 'vue.format.style.enabled' > ,
336375 /**
337376 * @key `vue.format.wrapAttributes`
338377 * @default `"auto"`
@@ -365,6 +404,9 @@ export interface ScopedConfigKeyTypeMap {
365404 'format.template.initialIndent' : boolean ;
366405 'format.script.initialIndent' : boolean ;
367406 'format.style.initialIndent' : boolean ;
407+ 'format.script.enabled' : boolean ;
408+ 'format.template.enabled' : boolean ;
409+ 'format.style.enabled' : boolean ;
368410 'format.wrapAttributes' :
369411 | 'auto'
370412 | 'force'
@@ -398,6 +440,9 @@ export const scopedConfigs = {
398440 'format.template.initialIndent' : true ,
399441 'format.script.initialIndent' : false ,
400442 'format.style.initialIndent' : false ,
443+ 'format.script.enabled' : true ,
444+ 'format.template.enabled' : true ,
445+ 'format.style.enabled' : true ,
401446 'format.wrapAttributes' : 'auto' ,
402447 } satisfies ScopedConfigKeyTypeMap ,
403448} ;
@@ -438,12 +483,15 @@ export interface NestedConfigs {
438483 'format' : {
439484 'template' : {
440485 'initialIndent' : boolean ;
486+ 'enabled' : boolean ;
441487 } ;
442488 'script' : {
443489 'initialIndent' : boolean ;
490+ 'enabled' : boolean ;
444491 } ;
445492 'style' : {
446493 'initialIndent' : boolean ;
494+ 'enabled' : boolean ;
447495 } ;
448496 'wrapAttributes' :
449497 | 'auto'
@@ -492,12 +540,15 @@ export interface NestedScopedConfigs {
492540 'format' : {
493541 'template' : {
494542 'initialIndent' : boolean ;
543+ 'enabled' : boolean ;
495544 } ;
496545 'script' : {
497546 'initialIndent' : boolean ;
547+ 'enabled' : boolean ;
498548 } ;
499549 'style' : {
500550 'initialIndent' : boolean ;
551+ 'enabled' : boolean ;
501552 } ;
502553 'wrapAttributes' :
503554 | 'auto'
0 commit comments