Skip to content

Commit

Permalink
Restrict available menus on readonly editors
Browse files Browse the repository at this point in the history
Signed-off-by: Fred Bricon <[email protected]>
  • Loading branch information
fbricon committed Jan 13, 2025
1 parent f92e692 commit 4181a59
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions extensions/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -476,27 +476,27 @@
{
"command": "continue.writeCommentsForCode",
"group": "Continue",
"when": "editorHasSelection"
"when": "editorHasSelection && !editorReadonly"
},
{
"command": "continue.writeDocstringForCode",
"group": "Continue",
"when": "editorHasSelection"
"when": "editorHasSelection && !editorReadonly"
},
{
"command": "continue.fixCode",
"group": "Continue",
"when": "editorHasSelection"
"when": "editorHasSelection && !editorReadonly"
},
{
"command": "continue.optimizeCode",
"group": "Continue",
"when": "editorHasSelection"
"when": "editorHasSelection && !editorReadonly"
},
{
"command": "continue.fixGrammar",
"group": "Continue",
"when": "editorHasSelection && editorLangId == 'markdown'"
"when": "editorHasSelection && editorLangId == 'markdown' && !editorReadonly"
}
],
"explorer/context": [
Expand Down

0 comments on commit 4181a59

Please sign in to comment.