Skip to content

Commit 74bcdf3

Browse files
committed
Added a non-null constraint to the HostDocumentSyncVersion
- Parameter of the ProvideSemanticTokensResponse class constructor.
1 parent 0365fad commit 74bcdf3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/razor/src/semantic/provideSemanticTokensResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55

66
export class ProvideSemanticTokensResponse {
77
// tslint:disable-next-line: variable-name
8-
constructor(public Tokens: Array<Array<number>>, public HostDocumentSyncVersion: number | null) {}
8+
constructor(public Tokens: Array<Array<number>>, public HostDocumentSyncVersion: number) {}
99
}

src/razor/src/semantic/semanticTokensRangeHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class SemanticTokensRangeHandler {
1818
> = new RequestType(SemanticTokensRangeHandler.getSemanticTokensRangeEndpoint);
1919
private emptySemanticTokensResponse: ProvideSemanticTokensResponse = new ProvideSemanticTokensResponse(
2020
new Array<Array<number>>(),
21-
null
21+
1
2222
);
2323

2424
constructor(private readonly serverClient: RazorLanguageServerClient) {}

0 commit comments

Comments
 (0)