Skip to content

Commit

Permalink
Disable the Razor project context status bar.
Browse files Browse the repository at this point in the history
We need to properly call the rzls endpoint to get project contexts. Will reenable as part of that work.
  • Loading branch information
JoeRobich committed Oct 22, 2024
1 parent 4476cda commit 23155a8
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 23155a8

Please sign in to comment.