@codingame/monaco-editor-wrapper 16.0.1 → 16.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_.vsix.js +23 -21
- package/dist/assets/Vue.volar-3.0.1.vsix/changelog.md +1 -0
- package/dist/assets/Vue.volar-3.0.1.vsix/icon.png +0 -0
- package/dist/assets/Vue.volar-3.0.1.vsix/markdown-language-configuration.json +56 -0
- package/dist/assets/Vue.volar-3.0.1.vsix/markdown-vue.json +40 -0
- package/dist/assets/Vue.volar-3.0.1.vsix/mdx-vue.json +64 -0
- package/dist/assets/Vue.volar-3.0.1.vsix/package.json +460 -0
- package/dist/assets/Vue.volar-3.0.1.vsix/package.nls.ja.json +20 -0
- package/dist/assets/Vue.volar-3.0.1.vsix/package.nls.json +20 -0
- package/dist/assets/Vue.volar-3.0.1.vsix/package.nls.ru.json +20 -0
- package/dist/assets/Vue.volar-3.0.1.vsix/package.nls.zh-CN.json +20 -0
- package/dist/assets/Vue.volar-3.0.1.vsix/package.nls.zh-TW.json +20 -0
- package/dist/assets/Vue.volar-3.0.1.vsix/readme.md +26 -0
- package/dist/assets/Vue.volar-3.0.1.vsix/sfc-template-language-configuration.json +8 -0
- package/dist/assets/Vue.volar-3.0.1.vsix/vue-directives.json +11 -0
- package/dist/assets/Vue.volar-3.0.1.vsix/vue-interpolations.json +11 -0
- package/dist/assets/Vue.volar-3.0.1.vsix/vue-language-configuration.json +145 -0
- package/dist/assets/Vue.volar-3.0.1.vsix/vue-sfc-style-variable-injection.json +48 -0
- package/dist/assets/Vue.volar-3.0.1.vsix/vue-tsconfig.schema.json +212 -0
- package/dist/assets/Vue.volar-3.0.1.vsix/vue.tmLanguage.json +1321 -0
- package/dist/extensions/Vue.volar-3.0.1.vsix.js +46 -0
- package/package.json +1 -1
- package/stats.html +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"configuration.trace.server": "VS Code と Vue 言語サーバー間の通信をトレースします。",
|
|
3
|
+
"configuration.server.includeLanguages": "拡張機能を有効にする言語を指定します。",
|
|
4
|
+
"configuration.codeActions.askNewComponentName": "コンポーネントを抽出する時に新しいコンポーネント名を尋ねます。",
|
|
5
|
+
"configuration.suggest.componentNameCasing": "コンポーネント名の命名規則。",
|
|
6
|
+
"configuration.suggest.propNameCasing": "属性名の命名規則。",
|
|
7
|
+
"configuration.suggest.defineAssignment": "補完項目 `props` を選択した時に `const props = ` を `defineProps` の前に自動で追加します。(`emit` と `slots` も同様)",
|
|
8
|
+
"configuration.autoInsert.dotValue": "Ref 値に `.value` を自動で追加します。",
|
|
9
|
+
"configuration.autoInsert.bracketSpacing": "二重中括弧で括られた内側にスペースを自動で追加します。",
|
|
10
|
+
"configuration.inlayHints.destructuredProps": "分割代入された props のインレイヒントを表示します:\n\n```ts\nwatch(() => /* props. */foo, () => { ... });\n```",
|
|
11
|
+
"configuration.inlayHints.missingProps": "不足している必須属性のインレイヒントを表示します:\n\n```html\n<Comp />\n<!-- ^ foo! -->\n```",
|
|
12
|
+
"configuration.inlayHints.inlineHandlerLeading": "インラインハンドラーのイベント引数のインレイヒントを表示します:\n\n```html\n<Comp @foo=\"/* $event => */console.log($event)\" />\n```",
|
|
13
|
+
"configuration.inlayHints.optionsWrapper": "コンポーネントオプションラッパーのインレイヒントを表示します:\n\n```vue\n<script lang=\"ts\">\nexport default /* (await import('vue')).defineComponent( */{}/* ) */;\n</script>\n```",
|
|
14
|
+
"configuration.inlayHints.vBindShorthand": "v-bind の省略記法のインレイヒントを表示します:\n\n```html\n<Comp :foo />\n <!-- ^ =\"foo\" -->\n```",
|
|
15
|
+
"configuration.format.template.initialIndent": "`<template>` ブロックの初期インデント。",
|
|
16
|
+
"configuration.format.script.initialIndent": "`<script>` ブロックの初期インデント。",
|
|
17
|
+
"configuration.format.style.initialIndent": "`<style>` ブロックの初期インデント。",
|
|
18
|
+
"configuration.format.wrapAttributes": "属性を折り返します。",
|
|
19
|
+
"command.action.restartServer": "Vue と TS サーバーを再起動"
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"configuration.trace.server": "Traces the communication between VS Code and the language server.",
|
|
3
|
+
"configuration.server.includeLanguages": "Configure the languages for which the extension should be activated.",
|
|
4
|
+
"configuration.codeActions.askNewComponentName": "Ask for new component name when extract component.",
|
|
5
|
+
"configuration.suggest.componentNameCasing": "Preferred component name case.",
|
|
6
|
+
"configuration.suggest.propNameCasing": "Preferred attr name case.",
|
|
7
|
+
"configuration.suggest.defineAssignment": "Auto add `const props = ` before `defineProps` when selecting the completion item `props`. (also `emit` and `slots`)",
|
|
8
|
+
"configuration.autoInsert.dotValue": "Auto-complete Ref value with `.value`.",
|
|
9
|
+
"configuration.autoInsert.bracketSpacing": "Auto add space between double curly brackets: `{{|}}` -> `{{ | }}`",
|
|
10
|
+
"configuration.inlayHints.destructuredProps": "Show inlay hints for destructured props:\n\n```ts\nwatch(() => /* props. */foo, () => { ... });\n```",
|
|
11
|
+
"configuration.inlayHints.missingProps": "Show inlay hints for missing required props:\n\n```html\n<Comp />\n<!-- ^ foo! -->\n```",
|
|
12
|
+
"configuration.inlayHints.inlineHandlerLeading": "Show inlay hints for event argument in inline handlers:\n\n```html\n<Comp @foo=\"/* $event => */console.log($event)\" />\n```",
|
|
13
|
+
"configuration.inlayHints.optionsWrapper": "Show inlay hints for component options wrapper for type support:\n\n```vue\n<script lang=\"ts\">\nexport default /* (await import('vue')).defineComponent( */{}/* ) */;\n</script>\n```",
|
|
14
|
+
"configuration.inlayHints.vBindShorthand": "Show inlay hints for v-bind shorthand:\n\n```html\n<Comp :foo />\n <!-- ^ =\"foo\" -->\n```",
|
|
15
|
+
"configuration.format.template.initialIndent": "Initial indent for `<template>` block.",
|
|
16
|
+
"configuration.format.script.initialIndent": "Initial indent for `<script>` block.",
|
|
17
|
+
"configuration.format.style.initialIndent": "Initial indent for `<style>` block.",
|
|
18
|
+
"configuration.format.wrapAttributes": "Wrap attributes.",
|
|
19
|
+
"command.action.restartServer": "Restart Vue and TS servers"
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"configuration.trace.server": "Отслеживать коммуникацию между VS Code и языковым сервером Vue.",
|
|
3
|
+
"configuration.server.includeLanguages": "Языки, для которых будет включено расширение.",
|
|
4
|
+
"configuration.codeActions.askNewComponentName": "Запрашивать новое имя компонента при извлечении компонента.",
|
|
5
|
+
"configuration.suggest.componentNameCasing": "Предпочитаемый формат имени компонента.",
|
|
6
|
+
"configuration.suggest.propNameCasing": "Предпочитаемый формат имени атрибута.",
|
|
7
|
+
"configuration.suggest.defineAssignment": "Автоматически добавлять `const props = ` перед `defineProps` при выборе элемента завершения `props`. (также `emit` и `slots`)",
|
|
8
|
+
"configuration.autoInsert.dotValue": "Автоматически добавлять `.value` при вводе реактивной переменной",
|
|
9
|
+
"configuration.autoInsert.bracketSpacing": "Автоматически добавлять пробелы между двойными фигурными скобками: `{{|}}` -> `{{ | }}`",
|
|
10
|
+
"configuration.inlayHints.destructuredProps": "Отображать подсказки для деструктурированных props:\n\n```ts\nwatch(() => /* props. */foo, () => { ... });\n```",
|
|
11
|
+
"configuration.inlayHints.missingProps": "Отображать подсказки для отсутствующих обязательных атрибутов:\n\n```html\n<Comp />\n<!-- ^ foo! -->\n```",
|
|
12
|
+
"configuration.inlayHints.inlineHandlerLeading": "Отображать подсказки для аргументов встроенных обработчиков событий:\n\n```html\n<Comp @foo=\"/* $event => */console.log($event)\" />\n```",
|
|
13
|
+
"configuration.inlayHints.optionsWrapper": "Отображать подсказки для оберток компонентов:\n\n```vue\n<script lang=\"ts\">\nexport default /* (await import('vue')).defineComponent( */{}/* ) */;\n</script>\n```",
|
|
14
|
+
"configuration.inlayHints.vBindShorthand": "Отображать подсказки для сокращенного синтаксиса v-bind:\n\n```html\n<Comp :foo />\n <!-- ^ =\"foo\" -->\n```",
|
|
15
|
+
"configuration.format.template.initialIndent": "Начальный отступ для блока `<template>`.",
|
|
16
|
+
"configuration.format.script.initialIndent": "Начальный отступ для блока `<script>`.",
|
|
17
|
+
"configuration.format.style.initialIndent": "Начальный отступ для блока `<style>`.",
|
|
18
|
+
"configuration.format.wrapAttributes": "Переносить атрибуты.",
|
|
19
|
+
"command.action.restartServer": "Перезапустить Vue и TS серверы"
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"configuration.trace.server": "跟踪 VS Code 和 Vue 语言服务器之间的通信。",
|
|
3
|
+
"configuration.server.includeLanguages": "配置扩展需要激活的语言类型。",
|
|
4
|
+
"configuration.codeActions.askNewComponentName": "提取组件时询问新组件名称。",
|
|
5
|
+
"configuration.suggest.componentNameCasing": "首选组件命名格式。",
|
|
6
|
+
"configuration.suggest.propNameCasing": "首选属性命名格式。",
|
|
7
|
+
"configuration.suggest.defineAssignment": "当选择补全项 `props` 时,自动在 `defineProps` 前添加 `const props = `(也包括 `emit` 和 `slots`)。",
|
|
8
|
+
"configuration.autoInsert.dotValue": "当键入响应式变量时,自动补全 `.value`。",
|
|
9
|
+
"configuration.autoInsert.bracketSpacing": "在双花括号之间自动添加空格: `{{|}}` -> `{{ | }}`",
|
|
10
|
+
"configuration.inlayHints.destructuredProps": "显示解构 props 的嵌入提示:\n\n```ts\nwatch(() => /* props. */foo, () => { ... });\n```",
|
|
11
|
+
"configuration.inlayHints.missingProps": "显示缺失的必要属性的嵌入提示:\n\n```html\n<Comp />\n<!-- ^ foo! -->\n```",
|
|
12
|
+
"configuration.inlayHints.inlineHandlerLeading": "显示内联事件处理参数的嵌入提示:\n\n```html\n<Comp @foo=\"/* $event => */console.log($event)\" />\n```",
|
|
13
|
+
"configuration.inlayHints.optionsWrapper": "显示默认导出的组件选项包装器的嵌入提示:\n\n```vue\n<script lang=\"ts\">\nexport default /* (await import('vue')).defineComponent( */{}/* ) */;\n</script>\n```",
|
|
14
|
+
"configuration.inlayHints.vBindShorthand": "显示 v-bind 简写的嵌入提示:\n\n```html\n<Comp :foo />\n <!-- ^ =\"foo\" -->\n```",
|
|
15
|
+
"configuration.format.template.initialIndent": "`<template>` 块的初始缩进。",
|
|
16
|
+
"configuration.format.script.initialIndent": "`<script>` 块的初始缩进。",
|
|
17
|
+
"configuration.format.style.initialIndent": "`<style>` 块的初始缩进。",
|
|
18
|
+
"configuration.format.wrapAttributes": "对属性进行换行。",
|
|
19
|
+
"command.action.restartServer": "重启 Vue 和 TS 服务器"
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"configuration.trace.server": "追蹤 VS Code 和 Vue 語言伺服器之間的通訊。",
|
|
3
|
+
"configuration.server.includeLanguages": "配置擴充功能應該啟動的語言類型。",
|
|
4
|
+
"configuration.codeActions.askNewComponentName": "提取元件時詢問新元件名稱。",
|
|
5
|
+
"configuration.suggest.componentNameCasing": "首選元件名稱格式。",
|
|
6
|
+
"configuration.suggest.propNameCasing": "首選屬性名稱格式。",
|
|
7
|
+
"configuration.suggest.defineAssignment": "選取補全項目 `props` 時,自動在 `defineProps` 前添加 `const props = `(也包括 `emit` 和 `slots`)。",
|
|
8
|
+
"configuration.autoInsert.dotValue": "當輸入響應式變量時,自動補全 `.value`。",
|
|
9
|
+
"configuration.autoInsert.bracketSpacing": "在雙花括號之間自動添加空格: `{{|}}` -> `{{ | }}`",
|
|
10
|
+
"configuration.inlayHints.destructuredProps": "顯示解構 props 的內嵌提示:\n\n```ts\nwatch(() => /* props. */foo, () => { ... });\n```",
|
|
11
|
+
"configuration.inlayHints.missingProps": "顯示缺失的必要屬性的內嵌提示:\n\n```html\n<Comp />\n<!-- ^ foo! -->\n```",
|
|
12
|
+
"configuration.inlayHints.inlineHandlerLeading": "顯示內聯事件處理參數的內嵌提示:\n\n```html\n<Comp @foo=\"/* $event => */console.log($event)\" />\n```",
|
|
13
|
+
"configuration.inlayHints.optionsWrapper": "顯示預設導出的元件選項包裝器的內嵌提示:\n\n```vue\n<script lang=\"ts\">\nexport default /* (await import('vue')).defineComponent( */{}/* ) */;\n</script>\n```",
|
|
14
|
+
"configuration.inlayHints.vBindShorthand": "顯示 v-bind 簡寫的內嵌提示:\n\n```html\n<Comp :foo />\n <!-- ^ =\"foo\" -->\n```",
|
|
15
|
+
"configuration.format.template.initialIndent": "`<template>` 區塊的初始縮排。",
|
|
16
|
+
"configuration.format.script.initialIndent": "`<script>` 區塊的初始縮排。",
|
|
17
|
+
"configuration.format.style.initialIndent": "`<style>` 區塊的初始縮排。",
|
|
18
|
+
"configuration.format.wrapAttributes": "對屬性進行換行。",
|
|
19
|
+
"command.action.restartServer": "重新啟動 Vue 和 TS 伺服器"
|
|
20
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Vue (Official)
|
|
2
|
+
|
|
3
|
+
## Quick Start
|
|
4
|
+
|
|
5
|
+
- [create-vue](https://github.com/vuejs/create-vue)
|
|
6
|
+
- [Vitesse](https://github.com/antfu/vitesse)
|
|
7
|
+
- [petite](https://github.com/JessicaSachs/petite)
|
|
8
|
+
- [volar-starter](https://github.com/johnsoncodehk/volar-starter) (For bug report and experiment features testing)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## ❤️ Thanks to Our Sponsors
|
|
12
|
+
|
|
13
|
+
This project is made possible thanks to our generous sponsors:
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<a href="https://cdn.jsdelivr.net/gh/johnsoncodehk/sponsors/sponsors.svg">
|
|
17
|
+
<img src="https://cdn.jsdelivr.net/gh/johnsoncodehk/sponsors/sponsors.png"/>
|
|
18
|
+
</a>
|
|
19
|
+
</p>
|
|
20
|
+
|
|
21
|
+
## Credits
|
|
22
|
+
|
|
23
|
+
- [vscode-extension-samples](https://github.com/microsoft/vscode-extension-samples) shows all the knowledge required to develop the extension.
|
|
24
|
+
- [angular](https://github.com/angular/angular) shows how TS server plugin working with language service.
|
|
25
|
+
- Syntax highlight is rewritten base on [vue-syntax-highlight](https://github.com/vuejs/vue-syntax-highlight).
|
|
26
|
+
- [vscode-fenced-code-block-grammar-injection-example](https://github.com/mjbvz/vscode-fenced-code-block-grammar-injection-example) shows how to inject vue syntax highlight to markdown.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
|
3
|
+
"fileTypes": [],
|
|
4
|
+
"injectionSelector": "L:meta.tag -meta.attribute -meta.ng-binding -entity.name.tag.pug -attribute_value -source.tsx -source.js.jsx, L:meta.element -meta.attribute",
|
|
5
|
+
"patterns": [
|
|
6
|
+
{
|
|
7
|
+
"include": "source.vue#vue-directives"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"scopeName": "vue.directives"
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
|
3
|
+
"fileTypes": [],
|
|
4
|
+
"injectionSelector": "L:text.pug -comment -string.comment, L:text.html.derivative -comment.block, L:text.html.markdown -comment.block",
|
|
5
|
+
"patterns": [
|
|
6
|
+
{
|
|
7
|
+
"include": "source.vue#vue-interpolations"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"scopeName": "vue.interpolations"
|
|
11
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
{
|
|
2
|
+
"comments": {
|
|
3
|
+
"blockComment": [
|
|
4
|
+
"<!--",
|
|
5
|
+
"-->"
|
|
6
|
+
]
|
|
7
|
+
},
|
|
8
|
+
"brackets": [
|
|
9
|
+
[
|
|
10
|
+
"<!--",
|
|
11
|
+
"-->"
|
|
12
|
+
],
|
|
13
|
+
[
|
|
14
|
+
"<",
|
|
15
|
+
">"
|
|
16
|
+
],
|
|
17
|
+
[
|
|
18
|
+
"{",
|
|
19
|
+
"}"
|
|
20
|
+
],
|
|
21
|
+
[
|
|
22
|
+
"(",
|
|
23
|
+
")"
|
|
24
|
+
]
|
|
25
|
+
],
|
|
26
|
+
"autoClosingPairs": [
|
|
27
|
+
// html
|
|
28
|
+
{
|
|
29
|
+
"open": "{",
|
|
30
|
+
"close": "}"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"open": "[",
|
|
34
|
+
"close": "]"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"open": "(",
|
|
38
|
+
"close": ")"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"open": "'",
|
|
42
|
+
"close": "'"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"open": "\"",
|
|
46
|
+
"close": "\""
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"open": "<!--",
|
|
50
|
+
"close": "-->",
|
|
51
|
+
"notIn": [
|
|
52
|
+
"comment",
|
|
53
|
+
"string"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
// javascript
|
|
57
|
+
{
|
|
58
|
+
"open": "`",
|
|
59
|
+
"close": "`",
|
|
60
|
+
"notIn": [
|
|
61
|
+
"string",
|
|
62
|
+
"comment"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"open": "/**",
|
|
67
|
+
"close": " */",
|
|
68
|
+
"notIn": [
|
|
69
|
+
"string"
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"autoCloseBefore": ";:.,=}])><`'\" \n\t",
|
|
74
|
+
"surroundingPairs": [
|
|
75
|
+
// html
|
|
76
|
+
{
|
|
77
|
+
"open": "'",
|
|
78
|
+
"close": "'"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"open": "\"",
|
|
82
|
+
"close": "\""
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"open": "{",
|
|
86
|
+
"close": "}"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"open": "[",
|
|
90
|
+
"close": "]"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"open": "(",
|
|
94
|
+
"close": ")"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"open": "<",
|
|
98
|
+
"close": ">"
|
|
99
|
+
},
|
|
100
|
+
// javascript
|
|
101
|
+
[
|
|
102
|
+
"`",
|
|
103
|
+
"`"
|
|
104
|
+
]
|
|
105
|
+
],
|
|
106
|
+
"colorizedBracketPairs": [],
|
|
107
|
+
"folding": {
|
|
108
|
+
"markers": {
|
|
109
|
+
"start": "^\\s*<!--\\s*#region\\b.*-->",
|
|
110
|
+
"end": "^\\s*<!--\\s*#endregion\\b.*-->"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"wordPattern": "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\$\\^\\&\\*\\(\\)\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\s]+)",
|
|
114
|
+
"onEnterRules": [
|
|
115
|
+
{
|
|
116
|
+
"beforeText": {
|
|
117
|
+
"pattern": "<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr|script|style))([_:\\w][_:\\w-.\\d]*)(?:(?:[^'\"/>]|\"[^\"]*\"|'[^']*')*?(?!\\/)>)[^<]*$",
|
|
118
|
+
"flags": "i"
|
|
119
|
+
},
|
|
120
|
+
"afterText": {
|
|
121
|
+
"pattern": "^<\\/([_:\\w][_:\\w-.\\d]*)\\s*>",
|
|
122
|
+
"flags": "i"
|
|
123
|
+
},
|
|
124
|
+
"action": {
|
|
125
|
+
"indent": "indentOutdent"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"beforeText": {
|
|
130
|
+
"pattern": "<(?!(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr|script|style))([_:\\w][_:\\w-.\\d]*)(?:(?:[^'\"/>]|\"[^\"]*\"|'[^']*')*?(?!\\/)>)[^<]*$",
|
|
131
|
+
"flags": "i"
|
|
132
|
+
},
|
|
133
|
+
"action": {
|
|
134
|
+
"indent": "indent"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
// https://github.com/vuejs/language-tools/issues/1762
|
|
139
|
+
"indentationRules": {
|
|
140
|
+
// "increaseIndentPattern": "<(?!\\?|(?:area|base|br|col|frame|hr|html|img|input|keygen|link|menuitem|meta|param|source|track|wbr|script|style)\\b|[^>]*\\/>)([-_\\.A-Za-z0-9]+)(?=\\s|>)\\b[^>]*>(?!.*<\\/\\1>)|<!--(?!.*-->)|\\{[^}\"']*$",
|
|
141
|
+
// add (?!\\s*\\() to fix https://github.com/vuejs/language-tools/issues/1847#issuecomment-1246101071
|
|
142
|
+
"increaseIndentPattern": "<(?!\\?|(?:area|base|br|col|frame|hr|html|img|input|keygen|link|menuitem|meta|param|source|track|wbr|script|style)\\b|[^>]*\\/>)([-_\\.A-Za-z0-9]+)(?=\\s|>)\\b[^>]*>(?!\\s*\\()(?!.*<\\/\\1>)|<!--(?!.*-->)|\\{[^}\"']*$",
|
|
143
|
+
"decreaseIndentPattern": "^\\s*(<\\/(?!html)[-_\\.A-Za-z0-9]+\\b[^>]*>|-->|\\})"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
|
3
|
+
"fileTypes": [],
|
|
4
|
+
"injectionSelector": "L:source.css -comment, L:source.postcss -comment, L:source.sass -comment, L:source.stylus -comment",
|
|
5
|
+
"patterns": [
|
|
6
|
+
{
|
|
7
|
+
"include": "#vue-sfc-style-variable-injection"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"repository": {
|
|
11
|
+
"vue-sfc-style-variable-injection": {
|
|
12
|
+
"begin": "\\b(v-bind)\\s*\\(",
|
|
13
|
+
"name": "vue.sfc.style.variable.injection.v-bind",
|
|
14
|
+
"end": "\\)",
|
|
15
|
+
"beginCaptures": {
|
|
16
|
+
"1": {
|
|
17
|
+
"name": "entity.name.function"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"patterns": [
|
|
21
|
+
{
|
|
22
|
+
"begin": "('|\")",
|
|
23
|
+
"beginCaptures": {
|
|
24
|
+
"1": {
|
|
25
|
+
"name": "punctuation.definition.tag.begin.html"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"end": "(\\1)",
|
|
29
|
+
"endCaptures": {
|
|
30
|
+
"1": {
|
|
31
|
+
"name": "punctuation.definition.tag.end.html"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"name": "source.ts.embedded.html.vue",
|
|
35
|
+
"patterns": [
|
|
36
|
+
{
|
|
37
|
+
"include": "source.js"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"include": "source.js"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"scopeName": "vue.sfc.style.variable.injection"
|
|
48
|
+
}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
{
|
|
2
|
+
"properties": {
|
|
3
|
+
"vueCompilerOptions": {
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"properties": {
|
|
7
|
+
"target": {
|
|
8
|
+
"default": "auto",
|
|
9
|
+
"enum": [
|
|
10
|
+
"auto",
|
|
11
|
+
3,
|
|
12
|
+
3.3,
|
|
13
|
+
3.5,
|
|
14
|
+
3.6,
|
|
15
|
+
99
|
|
16
|
+
],
|
|
17
|
+
"markdownDescription": "Target version of Vue."
|
|
18
|
+
},
|
|
19
|
+
"extensions": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"default": [".vue"],
|
|
22
|
+
"markdownDescription": "Valid file extensions that should be considered as regular Vue SFC, please note that you should not use this option separately for additional file extensions IDE support, see https://github.com/vuejs/language-tools/tree/master/extensions/vscode/README.md#custom-file-extensions."
|
|
23
|
+
},
|
|
24
|
+
"vitePressExtensions": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"default": [".md"],
|
|
27
|
+
"markdownDescription": "Valid file extensions that should be considered as regular VitePress SFC."
|
|
28
|
+
},
|
|
29
|
+
"petiteVueExtensions": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"default": [".html"],
|
|
32
|
+
"markdownDescription": "Valid file extensions that should be considered as regular PetiteVue SFC."
|
|
33
|
+
},
|
|
34
|
+
"lib": {
|
|
35
|
+
"default": "vue",
|
|
36
|
+
"markdownDescription": "Specify module name for import regular types."
|
|
37
|
+
},
|
|
38
|
+
"jsxSlots": {
|
|
39
|
+
"type": "boolean",
|
|
40
|
+
"default": false,
|
|
41
|
+
"markdownDescription": "Generate slots type for `JSX.ElementChildrenAttribute`."
|
|
42
|
+
},
|
|
43
|
+
"strictTemplates": {
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"default": false,
|
|
46
|
+
"markdownDescription": "Enables strict templates. When set to `true`, all `checkUnknown*` options will be enabled."
|
|
47
|
+
},
|
|
48
|
+
"strictSlotChildren": {
|
|
49
|
+
"type": "boolean",
|
|
50
|
+
"default": false,
|
|
51
|
+
"markdownDescription": "Strict type constraints of slot children. If not set, uses the 'strictTemplates' value."
|
|
52
|
+
},
|
|
53
|
+
"strictVModel": {
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"default": false,
|
|
56
|
+
"markdownDescription": "Strict type constraints of `v-model`. If not set, uses the 'strictTemplates' value."
|
|
57
|
+
},
|
|
58
|
+
"strictCssModules": {
|
|
59
|
+
"type": "boolean",
|
|
60
|
+
"default": false,
|
|
61
|
+
"markdownDescription": "Strict type checking of CSS modules."
|
|
62
|
+
},
|
|
63
|
+
"checkUnknownProps": {
|
|
64
|
+
"type": "boolean",
|
|
65
|
+
"default": false,
|
|
66
|
+
"markdownDescription": "Check unknown props. If not set, uses the 'strictTemplates' value."
|
|
67
|
+
},
|
|
68
|
+
"checkUnknownEvents": {
|
|
69
|
+
"type": "boolean",
|
|
70
|
+
"default": false,
|
|
71
|
+
"markdownDescription": "Check unknown events. If not set, uses the 'strictTemplates' value."
|
|
72
|
+
},
|
|
73
|
+
"checkUnknownDirectives": {
|
|
74
|
+
"type": "boolean",
|
|
75
|
+
"default": false,
|
|
76
|
+
"markdownDescription": "Check unknown directives. If not set, uses the 'strictTemplates' value."
|
|
77
|
+
},
|
|
78
|
+
"checkUnknownComponents": {
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"default": false,
|
|
81
|
+
"markdownDescription": "Check unknown components. If not set, uses the 'strictTemplates' value."
|
|
82
|
+
},
|
|
83
|
+
"inferComponentDollarEl": {
|
|
84
|
+
"type": "boolean",
|
|
85
|
+
"default": false,
|
|
86
|
+
"markdownDescription": "Infer `$el` type on the component instance."
|
|
87
|
+
},
|
|
88
|
+
"inferComponentDollarRefs": {
|
|
89
|
+
"type": "boolean",
|
|
90
|
+
"default": false,
|
|
91
|
+
"markdownDescription": "Infer `$refs` type on the component instance."
|
|
92
|
+
},
|
|
93
|
+
"inferTemplateDollarAttrs": {
|
|
94
|
+
"type": "boolean",
|
|
95
|
+
"default": false,
|
|
96
|
+
"markdownDescription": "Infer `$attrs` type in the template and the return type of `useAttrs`."
|
|
97
|
+
},
|
|
98
|
+
"inferTemplateDollarEl": {
|
|
99
|
+
"type": "boolean",
|
|
100
|
+
"default": false,
|
|
101
|
+
"markdownDescription": "Infer `$el` type in the template."
|
|
102
|
+
},
|
|
103
|
+
"inferTemplateDollarRefs": {
|
|
104
|
+
"type": "boolean",
|
|
105
|
+
"default": false,
|
|
106
|
+
"markdownDescription": "Infer `$refs` type in the template."
|
|
107
|
+
},
|
|
108
|
+
"inferTemplateDollarSlots": {
|
|
109
|
+
"type": "boolean",
|
|
110
|
+
"default": false,
|
|
111
|
+
"markdownDescription": "Infer `$slots` type in the template and the return type of `useSlots`."
|
|
112
|
+
},
|
|
113
|
+
"skipTemplateCodegen": {
|
|
114
|
+
"type": "boolean",
|
|
115
|
+
"default": false,
|
|
116
|
+
"markdownDescription": "https://github.com/vuejs/language-tools/issues/577"
|
|
117
|
+
},
|
|
118
|
+
"fallthroughAttributes": {
|
|
119
|
+
"type": "boolean",
|
|
120
|
+
"default": false,
|
|
121
|
+
"markdownDescription": "Enable to support typed fallthrough attributes. Please note that enabling may significantly slow down type checking."
|
|
122
|
+
},
|
|
123
|
+
"resolveStyleImports": {
|
|
124
|
+
"type": "boolean",
|
|
125
|
+
"default": false,
|
|
126
|
+
"markdownDescription": "Enable to generate type imports for external CSS files by `<style src=\"...\">` or `@import \"...\"`.\n\nSee: https://github.com/vuejs/language-tools/pull/5136"
|
|
127
|
+
},
|
|
128
|
+
"resolveStyleClassNames": {
|
|
129
|
+
"type": [
|
|
130
|
+
"boolean",
|
|
131
|
+
"string"
|
|
132
|
+
],
|
|
133
|
+
"default": "scoped",
|
|
134
|
+
"enum": [
|
|
135
|
+
true,
|
|
136
|
+
false,
|
|
137
|
+
"scoped"
|
|
138
|
+
],
|
|
139
|
+
"markdownDescription": "Enable to apply completions and document links for CSS class names used in templates."
|
|
140
|
+
},
|
|
141
|
+
"fallthroughComponentNames": {
|
|
142
|
+
"type": "array",
|
|
143
|
+
"default": [
|
|
144
|
+
"Transition",
|
|
145
|
+
"KeepAlive",
|
|
146
|
+
"Teleport",
|
|
147
|
+
"Suspense"
|
|
148
|
+
],
|
|
149
|
+
"markdownDescription": "Component names that will be transparent when collecting single root child nodes and fallthrough attributes."
|
|
150
|
+
},
|
|
151
|
+
"dataAttributes": {
|
|
152
|
+
"type": "array",
|
|
153
|
+
"default": [],
|
|
154
|
+
"markdownDescription": "A glob matcher array that should always avoid recognized as HTML Attributes and Component props."
|
|
155
|
+
},
|
|
156
|
+
"htmlAttributes": {
|
|
157
|
+
"type": "array",
|
|
158
|
+
"default": ["aria-*"],
|
|
159
|
+
"markdownDescription": "A glob matcher array that should always be recognizing as HTML Attributes rather than Component props. Attribute name will never convert to camelize case."
|
|
160
|
+
},
|
|
161
|
+
"optionsWrapper": {
|
|
162
|
+
"type": "array",
|
|
163
|
+
"default": [
|
|
164
|
+
"(await import('vue')).defineComponent(",
|
|
165
|
+
")"
|
|
166
|
+
],
|
|
167
|
+
"markdownDescription": "How to wrap option of `export default { ... }`. Default: `[\"(await import('vue')).defineComponent(\", \")\"]`."
|
|
168
|
+
},
|
|
169
|
+
"macros": {
|
|
170
|
+
"type": "object",
|
|
171
|
+
"default": {
|
|
172
|
+
"defineProps": ["defineProps"],
|
|
173
|
+
"defineModel": ["defineModel"],
|
|
174
|
+
"defineEmits": ["defineEmits"],
|
|
175
|
+
"defineSlots": ["defineSlots"],
|
|
176
|
+
"defineExpose": ["defineExpose"],
|
|
177
|
+
"defineOptions": ["defineOptions"],
|
|
178
|
+
"withDefaults": ["withDefaults"]
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"composables": {
|
|
182
|
+
"type": "object",
|
|
183
|
+
"default": {
|
|
184
|
+
"useAttrs": ["useAttrs"],
|
|
185
|
+
"useCssModule": ["useCssModule"],
|
|
186
|
+
"useSlots": ["useSlots"],
|
|
187
|
+
"useTemplateRef": ["useTemplateRef", "templateRef"]
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"plugins": {
|
|
191
|
+
"type": "array",
|
|
192
|
+
"default": [],
|
|
193
|
+
"markdownDescription": "Plugins to be used in the SFC compiler."
|
|
194
|
+
},
|
|
195
|
+
"experimentalModelPropName": {
|
|
196
|
+
"type": "object",
|
|
197
|
+
"default": {
|
|
198
|
+
"": {
|
|
199
|
+
"input": true
|
|
200
|
+
},
|
|
201
|
+
"value": {
|
|
202
|
+
"input": { "type": "text" },
|
|
203
|
+
"textarea": true,
|
|
204
|
+
"select": true
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"markdownDescription": "https://github.com/vuejs/language-tools/issues/1969"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|