Skip to content

Commit 23155a8

Browse files
committed
Disable the Razor project context status bar.
We need to properly call the rzls endpoint to get project contexts. Will reenable as part of that work.
1 parent 4476cda commit 23155a8

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/lsptoolshost/languageStatusBar.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ function combineDocumentSelectors(...selectors: vscode.DocumentSelector[]): vsco
2929

3030
class WorkspaceStatus {
3131
static createStatusItem(context: vscode.ExtensionContext, languageServerEvents: RoslynLanguageServerEvents) {
32-
const documentSelector = combineDocumentSelectors(
33-
languageServerOptions.documentSelector,
34-
RazorLanguage.documentSelector
35-
);
32+
const documentSelector = combineDocumentSelectors(languageServerOptions.documentSelector);
3633
const openSolutionCommand = {
3734
command: 'dotnet.openSolution',
3835
title: vscode.l10n.t('Open solution'),

src/lsptoolshost/services/projectContextService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class ProjectContextService {
4747
public async refresh() {
4848
const textEditor = vscode.window.activeTextEditor;
4949
const languageId = textEditor?.document?.languageId;
50-
if (languageId !== 'csharp' && languageId !== 'aspnetcorerazor') {
50+
if (languageId !== 'csharp') {
5151
return;
5252
}
5353

0 commit comments

Comments
 (0)