Skip to content

Commit

Permalink
Disable markdown insert link commands in readonly editors (microsoft#…
Browse files Browse the repository at this point in the history
…164820)

Disable insert link commands in readonly editors
  • Loading branch information
mjbvz authored Oct 27, 2022
1 parent 3544aab commit 12ada73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/markdown-language-features/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,13 @@
"command": "markdown.editor.insertLinkFromWorkspace",
"title": "%markdown.editor.insertLinkFromWorkspace%",
"category": "Markdown",
"enablement": "editorLangId == markdown"
"enablement": "editorLangId == markdown && !activeEditorIsReadonly"
},
{
"command": "markdown.editor.insertImageFromWorkspace",
"title": "%markdown.editor.insertImageFromWorkspace%",
"category": "Markdown",
"enablement": "editorLangId == markdown"
"enablement": "editorLangId == markdown && !activeEditorIsReadonly"
}
],
"menus": {
Expand Down

0 comments on commit 12ada73

Please sign in to comment.