Skip to content

Commit ff907e3

Browse files
committed
Add comment clarifying codeViewExecute
1 parent 1bd7b33 commit ff907e3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/vscode/src/providers/editor/codeview.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ export function vscodeCodeViewServer(_engine: MarkdownEngine, document: TextDocu
6060
async codeViewAssist(context: CodeViewCellContext) {
6161
await commands.executeCommand("quarto.codeViewAssist", context, lspRequest);
6262
},
63+
// This execute command is used when the user clicks an execute button on a cell in the visual editor.
64+
//
65+
// Note: this is NOT used when the user uses a keyboard command to execute a cell,
66+
// that goes through VSCode commands (commands are registered in package.json),
67+
// the keyboard command code is in apps/vscode/src/providers/cell/commands.ts.
6368
async codeViewExecute(execute: CodeViewExecute) {
6469
switch (execute) {
6570
case "cell":

0 commit comments

Comments
 (0)