Skip to content

Commit

Permalink
feat: add volar.icon.splitEditors setting
Browse files Browse the repository at this point in the history
close #2163
  • Loading branch information
johnsoncodehk committed Dec 20, 2022
1 parent 062895a commit 106849f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 13 additions & 2 deletions extensions/vscode-vue-language-features/package.json
Expand Up @@ -381,6 +381,11 @@
"default": false,
"description": "[pug ☐] code lens."
},
"volar.icon.splitEditors": {
"type": "boolean",
"default": false,
"description": "Show split editor icon in title area of editor."
},
"volar.icon.preview": {
"type": "boolean",
"default": true,
Expand Down Expand Up @@ -614,7 +619,8 @@
{
"command": "volar.action.splitEditors",
"title": "Split <script>, <template>, <style> Editors",
"category": "Volar"
"category": "Volar",
"icon": "images/split-editors.png"
},
{
"command": "volar.action.vite",
Expand Down Expand Up @@ -685,7 +691,7 @@
},
{
"command": "volar.action.splitEditors",
"when": "volar.activated"
"when": "editorLangId == vue"
},
{
"command": "volar.action.vite",
Expand All @@ -709,6 +715,11 @@
}
],
"editor/title": [
{
"command": "volar.action.splitEditors",
"when": "resourceLangId == vue && config.volar.icon.splitEditors",
"group": "navigation"
},
{
"command": "volar.action.vite",
"when": "editorLangId == vue && config.volar.icon.preview && volar.foundViteDir",
Expand Down

0 comments on commit 106849f

Please sign in to comment.