File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ export class RazorLanguageServiceClient {
26
26
private readonly documentManager : RazorDocumentManager
27
27
) { }
28
28
29
+ private static readonly MapToDocumentRangesEndpoint = 'razor/mapToDocumentRanges' ;
30
+
29
31
public async languageQuery ( position : vscode . Position , uri : vscode . Uri ) {
30
32
await this . ensureStarted ( ) ;
31
33
@@ -46,7 +48,7 @@ export class RazorLanguageServiceClient {
46
48
47
49
const request = new RazorMapToDocumentRangesRequest ( languageKind , serializableRanges , uri ) ;
48
50
const response = await this . serverClient . sendRequest < RazorMapToDocumentRangesResponse > (
49
- 'razor/mapToDocumentRanges' ,
51
+ RazorLanguageServiceClient . MapToDocumentRangesEndpoint ,
50
52
request
51
53
) ;
52
54
const responseRanges = [ ] ;
@@ -71,7 +73,7 @@ export class RazorLanguageServiceClient {
71
73
72
74
const request = new RazorMapToDocumentRangesRequest ( LanguageKind . CSharp , params . ranges , document . uri ) ;
73
75
const result = await this . serverClient . sendRequest < RazorMapToDocumentRangesResponse > (
74
- 'razor/mapToDocumentRanges' ,
76
+ RazorLanguageServiceClient . MapToDocumentRangesEndpoint ,
75
77
request
76
78
) ;
77
79
You can’t perform that action at this time.
0 commit comments