Commit 5ce17af 1 parent 1ea44a1 commit 5ce17af Copy full SHA for 5ce17af
File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 84
84
"group" : " navigation"
85
85
},
86
86
{
87
- "when" : " inOutput" ,
87
+ "when" : " inOutput && !config.code-runner.runInTerminal " ,
88
88
"command" : " code-runner.stop" ,
89
89
"group" : " stop-code-run"
90
90
}
98
98
],
99
99
"explorer/context" : [
100
100
{
101
- "when" : " !explorerResourceIsFolder" ,
101
+ "when" : " !explorerResourceIsFolder && config.code-runner.showRunCommandInExplorerMenu " ,
102
102
"command" : " code-runner.run" ,
103
103
"group" : " navigation"
104
104
}
294
294
"description" : " Whether to show 'Run Code' command in editor context menu." ,
295
295
"scope" : " resource"
296
296
},
297
+ "code-runner.showRunCommandInExplorerMenu" : {
298
+ "type" : " boolean" ,
299
+ "default" : true ,
300
+ "description" : " Whether to show 'Run Code' command in explorer context menu." ,
301
+ "scope" : " resource"
302
+ },
297
303
"code-runner.temporaryFileName" : {
298
304
"type" : " string" ,
299
305
"default" : " tempCodeRunnerFile" ,
Original file line number Diff line number Diff line change @@ -478,7 +478,7 @@ export class CodeManager implements vscode.Disposable {
478
478
this . _outputChannel . appendLine ( "" ) ;
479
479
}
480
480
if ( this . _isTmpFile ) {
481
- fs . unlink ( this . _codeFile ) ;
481
+ fs . unlinkSync ( this . _codeFile ) ;
482
482
}
483
483
} ) ;
484
484
}
You can’t perform that action at this time.
0 commit comments