Skip to content

Commit 0abf259

Browse files
authored
Hook up language configuration in cohosting (#8809)
2 parents 2432ce5 + 15374de commit 0abf259

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- Debug from .csproj and .sln [#5876](https://github.com/dotnet/vscode-csharp/issues/5876)
55

66
# 2.103.x
7+
* Fix indentation after pressing Enter in Razor files (PR: [#8809](https://github.com/dotnet/vscode-csharp/pull/8809))
78

89
# 2.102.x
910
* Update Roslyn to 5.3.0-2.25568.9 (PR: [#8799](https://github.com/dotnet/vscode-csharp/pull/8799))

src/lsptoolshost/razor/razorEndpoints.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ import { HtmlDocument } from './htmlDocument';
5454
import { HtmlForwardedRequest } from './htmlForwardedRequest';
5555
import { BlazorDebugConfigurationProvider } from '../../razor/src/blazorDebug/blazorDebugConfigurationProvider';
5656
import { ShowGeneratedDocumentCommand } from './showGeneratedDocumentCommand';
57+
import { RazorLanguageConfiguration } from '../../razor/src/razorLanguageConfiguration';
5758

5859
export function registerRazorEndpoints(
5960
context: vscode.ExtensionContext,
@@ -72,6 +73,9 @@ export function registerRazorEndpoints(
7273

7374
context.subscriptions.push(BlazorDebugConfigurationProvider.register(razorLogger, vscode));
7475
context.subscriptions.push(ShowGeneratedDocumentCommand.register(roslynLanguageServer));
76+
77+
const languageConfiguration = new RazorLanguageConfiguration();
78+
context.subscriptions.push(languageConfiguration.register());
7579
} else {
7680
vscode.commands.executeCommand('setContext', 'razor.mode', 'lsp');
7781
registerNonCohostingEndpoints();

0 commit comments

Comments
 (0)