|
9 | 9 | "url": "https://github.com/Wscats"
|
10 | 10 | },
|
11 | 11 | "publisher": "Wscats",
|
12 |
| - "version": "1.0.10", |
| 12 | + "version": "1.0.11", |
13 | 13 | "license": "MIT",
|
14 | 14 | "engines": {
|
15 | 15 | "vscode": "^1.40.0"
|
|
39 | 39 | "javascript",
|
40 | 40 | "snippet",
|
41 | 41 | "api",
|
42 |
| - "cnode" |
| 42 | + "cnode", |
| 43 | + "format" |
43 | 44 | ],
|
44 | 45 | "homepage": "https://github.com/wscats/vue-snippets#readme",
|
45 | 46 | "repository": {
|
|
70 | 71 | "type": "boolean",
|
71 | 72 | "default": false,
|
72 | 73 | "description": "Enable compile vue file on did save code."
|
| 74 | + }, |
| 75 | + "vue3snippets.printWidth": { |
| 76 | + "type": "integer", |
| 77 | + "default": 80, |
| 78 | + "markdownDescription": "Fit code within this line limit.", |
| 79 | + "scope": "resource" |
| 80 | + }, |
| 81 | + "vue3snippets.tabWidth": { |
| 82 | + "type": "integer", |
| 83 | + "default": 2, |
| 84 | + "markdownDescription": "Number of spaces it should use per tab.", |
| 85 | + "scope": "resource" |
| 86 | + }, |
| 87 | + "vue3snippets.singleQuote": { |
| 88 | + "type": "boolean", |
| 89 | + "default": false, |
| 90 | + "markdownDescription": "If true, will use single instead of double quotes.", |
| 91 | + "scope": "resource" |
| 92 | + }, |
| 93 | + "vue3snippets.trailingComma": { |
| 94 | + "type": "string", |
| 95 | + "enum": [ |
| 96 | + "none", |
| 97 | + "es5", |
| 98 | + "all" |
| 99 | + ], |
| 100 | + "default": "es5", |
| 101 | + "markdownDescription": "Controls the printing of trailing commas wherever possible. Valid options:\n- `none` - No trailing commas\n- `es5` - Trailing commas where valid in ES5 (objects, arrays, etc)\n- `all` - Trailing commas wherever possible (function arguments).", |
| 102 | + "scope": "resource" |
| 103 | + }, |
| 104 | + "vue3snippets.bracketSpacing": { |
| 105 | + "type": "boolean", |
| 106 | + "default": true, |
| 107 | + "markdownDescription": "Controls the printing of spaces inside object literals.", |
| 108 | + "scope": "resource" |
| 109 | + }, |
| 110 | + "vue3snippets.jsxBracketSameLine": { |
| 111 | + "type": "boolean", |
| 112 | + "default": false, |
| 113 | + "markdownDescription": "If true, puts the `>` of a multi-line jsx element at the end of the last line instead of being alone on the next line.", |
| 114 | + "scope": "resource" |
| 115 | + }, |
| 116 | + "vue3snippets.semi": { |
| 117 | + "type": "boolean", |
| 118 | + "default": true, |
| 119 | + "markdownDescription": "Whether to add a semicolon at the end of every line.", |
| 120 | + "scope": "resource" |
| 121 | + }, |
| 122 | + "vue3snippets.requirePragma": { |
| 123 | + "type": "boolean", |
| 124 | + "default": false, |
| 125 | + "markdownDescription": "Vue 3 Snippets can restrict itself to only format files that contain a special comment, called a pragma, at the top of the file. This is very useful when gradually transitioning large, unformatted codebases to it.", |
| 126 | + "scope": "resource" |
| 127 | + }, |
| 128 | + "vue3snippets.insertPragma": { |
| 129 | + "type": "boolean", |
| 130 | + "default": false, |
| 131 | + "markdownDescription": "Vue 3 Snippets can insert a special @format marker at the top of files specifying that the file has been formatted with it. This works well when used in tandem with the `--require-pragma` option. If there is already a docblock at the top of the file then this option will add a newline to it with the @format marker.", |
| 132 | + "scope": "resource" |
| 133 | + }, |
| 134 | + "vue3snippets.useTabs": { |
| 135 | + "type": "boolean", |
| 136 | + "default": false, |
| 137 | + "markdownDescription": "Indent lines with tabs.", |
| 138 | + "scope": "resource" |
| 139 | + }, |
| 140 | + "vue3snippets.proseWrap": { |
| 141 | + "type": "string", |
| 142 | + "enum": [ |
| 143 | + "preserve", |
| 144 | + "always", |
| 145 | + "never" |
| 146 | + ], |
| 147 | + "default": "preserve", |
| 148 | + "markdownDescription": "(Markdown) wrap prose over multiple lines.", |
| 149 | + "scope": "resource" |
| 150 | + }, |
| 151 | + "vue3snippets.arrowParens": { |
| 152 | + "type": "string", |
| 153 | + "enum": [ |
| 154 | + "avoid", |
| 155 | + "always" |
| 156 | + ], |
| 157 | + "default": "always", |
| 158 | + "markdownDescription": "Include parentheses around a sole arrow function parameter.", |
| 159 | + "scope": "resource" |
| 160 | + }, |
| 161 | + "vue3snippets.jsxSingleQuote": { |
| 162 | + "type": "boolean", |
| 163 | + "default": false, |
| 164 | + "markdownDescription": "Use single quotes instead of double quotes in JSX.", |
| 165 | + "scope": "resource" |
| 166 | + }, |
| 167 | + "vue3snippets.htmlWhitespaceSensitivity": { |
| 168 | + "type": "string", |
| 169 | + "enum": [ |
| 170 | + "css", |
| 171 | + "strict", |
| 172 | + "ignore" |
| 173 | + ], |
| 174 | + "default": "css", |
| 175 | + "markdownDescription": "Specify the global whitespace sensitivity for HTML files.\n Valid options:\n- `css` - Respect the default value of CSS display property.\n- `strict` - Whitespaces are considered sensitive.\n- `ignores` - Whitespaces are considered insensitive.", |
| 176 | + "scope": "resource" |
| 177 | + }, |
| 178 | + "vue3snippets.vueIndentScriptAndStyle": { |
| 179 | + "type": "boolean", |
| 180 | + "default": false, |
| 181 | + "markdownDescription": "Whether or not to indent the code inside `<script>` and `<style>` tags in Vue files. Some people (like the creator of Vue) don’t indent to save an indentation level, but this might break code folding in your editor.", |
| 182 | + "scope": "resource" |
| 183 | + }, |
| 184 | + "vue3snippets.endOfLine": { |
| 185 | + "type": "string", |
| 186 | + "enum": [ |
| 187 | + "auto", |
| 188 | + "lf", |
| 189 | + "crlf", |
| 190 | + "cr" |
| 191 | + ], |
| 192 | + "default": "lf", |
| 193 | + "markdownDescription": "Specify the end of line used by Vue 3 Snippets.", |
| 194 | + "scope": "resource" |
| 195 | + }, |
| 196 | + "vue3snippets.quoteProps": { |
| 197 | + "type": "string", |
| 198 | + "enum": [ |
| 199 | + "as-needed", |
| 200 | + "consistent", |
| 201 | + "preserve" |
| 202 | + ], |
| 203 | + "default": "as-needed", |
| 204 | + "markdownDescription": "Change when properties in objects are quoted.", |
| 205 | + "scope": "resource" |
73 | 206 | }
|
74 | 207 | }
|
75 | 208 | },
|
|
92 | 225 | "path": "./syntaxes/vue.tmLanguage"
|
93 | 226 | }
|
94 | 227 | ],
|
95 |
| - "menus": { |
96 |
| - "editor/context": [ |
97 |
| - { |
98 |
| - "when": "editorLangId == vue", |
99 |
| - "command": "vue3snippets.format", |
100 |
| - "group": "navigation" |
101 |
| - } |
102 |
| - ] |
103 |
| - }, |
104 | 228 | "keybindings": [
|
105 | 229 | {
|
106 | 230 | "key": "ctrl+shift+f",
|
|
0 commit comments