File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 18811881 {
18821882 "command" : " extension.showRazorCSharpWindow" ,
18831883 "title" : " %command.extension.showRazorCSharpWindow%" ,
1884- "category" : " Razor"
1884+ "category" : " Razor" ,
1885+ "enablement" : " razor.mode == 'lsp'"
18851886 },
18861887 {
18871888 "command" : " extension.showRazorHtmlWindow" ,
18881889 "title" : " %command.extension.showRazorHtmlWindow%" ,
1889- "category" : " Razor"
1890+ "category" : " Razor" ,
1891+ "enablement" : " razor.mode == 'lsp'"
18901892 },
18911893 {
18921894 "command" : " razor.reportIssue" ,
Original file line number Diff line number Diff line change @@ -63,8 +63,10 @@ export function registerRazorEndpoints(
6363 ) ;
6464
6565 if ( razorOptions . cohostingEnabled ) {
66+ vscode . commands . executeCommand ( 'setContext' , 'razor.mode' , 'cohosting' ) ;
6667 registerCohostingEndpoints ( ) ;
6768 } else {
69+ vscode . commands . executeCommand ( 'setContext' , 'razor.mode' , 'lsp' ) ;
6870 registerNonCohostingEndpoints ( ) ;
6971 }
7072
You can’t perform that action at this time.
0 commit comments