Skip to content

Commit 0365fad

Browse files
committed
Correct data types for ProvideSemanticTokensResponse
- The property type/name was out of sync with razorc counterpart
1 parent 6be8367 commit 0365fad

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

src/razor/src/semantic/provideSemanticTokensResponse.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
import { SemanticTokensResponse } from './semanticTokensResponse';
7-
86
export class ProvideSemanticTokensResponse {
97
// tslint:disable-next-line: variable-name
10-
constructor(public Result: SemanticTokensResponse, public HostDocumentSyncVersion: number | null) {}
8+
constructor(public Tokens: Array<Array<number>>, public HostDocumentSyncVersion: number | null) {}
119
}

src/razor/src/semantic/semanticTokensRangeHandler.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import * as vscode from 'vscode';
77
import { RequestType } from 'vscode-languageclient';
88
import { RazorLanguageServerClient } from '../razorLanguageServerClient';
99
import { ProvideSemanticTokensResponse } from './provideSemanticTokensResponse';
10-
import { SemanticTokensResponse } from './semanticTokensResponse';
1110
import { SerializableSemanticTokensParams } from './serializableSemanticTokensParams';
1211

1312
export class SemanticTokensRangeHandler {
@@ -18,7 +17,7 @@ export class SemanticTokensRangeHandler {
1817
any
1918
> = new RequestType(SemanticTokensRangeHandler.getSemanticTokensRangeEndpoint);
2019
private emptySemanticTokensResponse: ProvideSemanticTokensResponse = new ProvideSemanticTokensResponse(
21-
new SemanticTokensResponse(new Array<Array<number>>(), ''),
20+
new Array<Array<number>>(),
2221
null
2322
);
2423

src/razor/src/semantic/semanticTokensResponse.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)