Skip to content

Commit 2953574

Browse files
committed
Use getEncodedSyntacticClassifications
1 parent 6e50853 commit 2953574

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/session.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -882,8 +882,8 @@ namespace ts.server {
882882
}
883883

884884
private getEncodedSyntacticClassifications(args: protocol.EncodedSyntacticClassificationsRequestArgs) {
885-
const { file, project } = this.getFileAndProject(args);
886-
return project.getLanguageService().getEncodedSyntacticClassifications(file, args);
885+
const { file, languageService } = this.getFileAndLanguageServiceForSyntacticOperation(args);
886+
return languageService.getEncodedSyntacticClassifications(file, args);
887887
}
888888

889889
private getEncodedSemanticClassifications(args: protocol.EncodedSemanticClassificationsRequestArgs) {

0 commit comments

Comments
 (0)