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 1881
1881
{
1882
1882
"command" : " extension.showRazorCSharpWindow" ,
1883
1883
"title" : " %command.extension.showRazorCSharpWindow%" ,
1884
- "category" : " Razor"
1884
+ "category" : " Razor" ,
1885
+ "enablement" : " razor.mode == 'lsp'"
1885
1886
},
1886
1887
{
1887
1888
"command" : " extension.showRazorHtmlWindow" ,
1888
1889
"title" : " %command.extension.showRazorHtmlWindow%" ,
1889
- "category" : " Razor"
1890
+ "category" : " Razor" ,
1891
+ "enablement" : " razor.mode == 'lsp'"
1890
1892
},
1891
1893
{
1892
1894
"command" : " razor.reportIssue" ,
Original file line number Diff line number Diff line change @@ -63,8 +63,10 @@ export function registerRazorEndpoints(
63
63
) ;
64
64
65
65
if ( razorOptions . cohostingEnabled ) {
66
+ vscode . commands . executeCommand ( 'setContext' , 'razor.mode' , 'cohosting' ) ;
66
67
registerCohostingEndpoints ( ) ;
67
68
} else {
69
+ vscode . commands . executeCommand ( 'setContext' , 'razor.mode' , 'lsp' ) ;
68
70
registerNonCohostingEndpoints ( ) ;
69
71
}
70
72
You can’t perform that action at this time.
0 commit comments