Skip to content

Commit cef8fbf

Browse files
authored
Merge pull request #7680 from dotnet/dev/jorobich/disable-razor-languagestatusbar
Disable the Razor project context status bar.
2 parents 4476cda + 23155a8 commit cef8fbf

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)