Skip to content

Commit 4c590ee

Browse files
author
Andrew Hall
committed
PR feedback
1 parent 80aa5fb commit 4c590ee

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/razor/src/razorLanguageServiceClient.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ export class RazorLanguageServiceClient {
2626
private readonly documentManager: RazorDocumentManager
2727
) {}
2828

29+
private static readonly MapToDocumentRangesEndpoint = 'razor/mapToDocumentRanges';
30+
2931
public async languageQuery(position: vscode.Position, uri: vscode.Uri) {
3032
await this.ensureStarted();
3133

@@ -46,7 +48,7 @@ export class RazorLanguageServiceClient {
4648

4749
const request = new RazorMapToDocumentRangesRequest(languageKind, serializableRanges, uri);
4850
const response = await this.serverClient.sendRequest<RazorMapToDocumentRangesResponse>(
49-
'razor/mapToDocumentRanges',
51+
RazorLanguageServiceClient.MapToDocumentRangesEndpoint,
5052
request
5153
);
5254
const responseRanges = [];
@@ -71,7 +73,7 @@ export class RazorLanguageServiceClient {
7173

7274
const request = new RazorMapToDocumentRangesRequest(LanguageKind.CSharp, params.ranges, document.uri);
7375
const result = await this.serverClient.sendRequest<RazorMapToDocumentRangesResponse>(
74-
'razor/mapToDocumentRanges',
76+
RazorLanguageServiceClient.MapToDocumentRangesEndpoint,
7577
request
7678
);
7779

0 commit comments

Comments
 (0)