Skip to content

Commit

Permalink
Merge pull request #7680 from dotnet/dev/jorobich/disable-razor-langu…
Browse files Browse the repository at this point in the history
…agestatusbar

Disable the Razor project context status bar.
  • Loading branch information
JoeRobich authored Oct 22, 2024
2 parents 4476cda + 23155a8 commit cef8fbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/lsptoolshost/languageStatusBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ function combineDocumentSelectors(...selectors: vscode.DocumentSelector[]): vsco

class WorkspaceStatus {
static createStatusItem(context: vscode.ExtensionContext, languageServerEvents: RoslynLanguageServerEvents) {
const documentSelector = combineDocumentSelectors(
languageServerOptions.documentSelector,
RazorLanguage.documentSelector
);
const documentSelector = combineDocumentSelectors(languageServerOptions.documentSelector);
const openSolutionCommand = {
command: 'dotnet.openSolution',
title: vscode.l10n.t('Open solution'),
Expand Down
2 changes: 1 addition & 1 deletion src/lsptoolshost/services/projectContextService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class ProjectContextService {
public async refresh() {
const textEditor = vscode.window.activeTextEditor;
const languageId = textEditor?.document?.languageId;
if (languageId !== 'csharp' && languageId !== 'aspnetcorerazor') {
if (languageId !== 'csharp') {
return;
}

Expand Down

0 comments on commit cef8fbf

Please sign in to comment.