Disable emmet commands when there is no active editor

Fixes #313645

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Matt Bierner
2026-04-30 21:22:57 -07:00
co-authored by Copilot
parent 32db9092a5
commit ffa3fecdf8
+22 -22
View File
@@ -384,91 +384,91 @@
"commandPalette": [
{
"command": "editor.emmet.action.wrapWithAbbreviation",
"when": "!activeEditorIsReadonly"
"when": "activeEditor && !activeEditorIsReadonly"
},
{
"command": "editor.emmet.action.removeTag",
"when": "!activeEditorIsReadonly"
"when": "activeEditor && !activeEditorIsReadonly"
},
{
"command": "editor.emmet.action.updateTag",
"when": "!activeEditorIsReadonly"
"when": "activeEditor && !activeEditorIsReadonly"
},
{
"command": "editor.emmet.action.matchTag",
"when": "!activeEditorIsReadonly"
"when": "activeEditor && !activeEditorIsReadonly"
},
{
"command": "editor.emmet.action.balanceIn",
"when": "!activeEditorIsReadonly"
"when": "activeEditor && !activeEditorIsReadonly"
},
{
"command": "editor.emmet.action.balanceOut",
"when": "!activeEditorIsReadonly"
"when": "activeEditor && !activeEditorIsReadonly"
},
{
"command": "editor.emmet.action.prevEditPoint",
"when": "!activeEditorIsReadonly"
"when": "activeEditor && !activeEditorIsReadonly"
},
{
"command": "editor.emmet.action.nextEditPoint",
"when": "!activeEditorIsReadonly"
"when": "activeEditor && !activeEditorIsReadonly"
},
{
"command": "editor.emmet.action.mergeLines",
"when": "!activeEditorIsReadonly"
"when": "activeEditor && !activeEditorIsReadonly"
},
{
"command": "editor.emmet.action.selectPrevItem",
"when": "!activeEditorIsReadonly"
"when": "activeEditor && !activeEditorIsReadonly"
},
{
"command": "editor.emmet.action.selectNextItem",
"when": "!activeEditorIsReadonly"
"when": "activeEditor && !activeEditorIsReadonly"
},
{
"command": "editor.emmet.action.splitJoinTag",
"when": "!activeEditorIsReadonly"
"when": "activeEditor && !activeEditorIsReadonly"
},
{
"command": "editor.emmet.action.toggleComment",
"when": "!activeEditorIsReadonly"
"when": "activeEditor && !activeEditorIsReadonly"
},
{
"command": "editor.emmet.action.evaluateMathExpression",
"when": "!activeEditorIsReadonly"
"when": "activeEditor && !activeEditorIsReadonly"
},
{
"command": "editor.emmet.action.updateImageSize",
"when": "!activeEditorIsReadonly"
"when": "activeEditor && !activeEditorIsReadonly"
},
{
"command": "editor.emmet.action.incrementNumberByOneTenth",
"when": "!activeEditorIsReadonly"
"when": "activeEditor && !activeEditorIsReadonly"
},
{
"command": "editor.emmet.action.incrementNumberByOne",
"when": "!activeEditorIsReadonly"
"when": "activeEditor && !activeEditorIsReadonly"
},
{
"command": "editor.emmet.action.incrementNumberByTen",
"when": "!activeEditorIsReadonly"
"when": "activeEditor && !activeEditorIsReadonly"
},
{
"command": "editor.emmet.action.decrementNumberByOneTenth",
"when": "!activeEditorIsReadonly"
"when": "activeEditor && !activeEditorIsReadonly"
},
{
"command": "editor.emmet.action.decrementNumberByOne",
"when": "!activeEditorIsReadonly"
"when": "activeEditor && !activeEditorIsReadonly"
},
{
"command": "editor.emmet.action.decrementNumberByTen",
"when": "!activeEditorIsReadonly"
"when": "activeEditor && !activeEditorIsReadonly"
},
{
"command": "editor.emmet.action.reflectCSSValue",
"when": "!activeEditorIsReadonly"
"when": "activeEditor && !activeEditorIsReadonly"
}
]
}