Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2953574

Browse filesBrowse files
committed
Use getEncodedSyntacticClassifications
1 parent 6e50853 commit 2953574
Copy full SHA for 2953574

1 file changed

+2-2Lines changed: 2 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/server/session.ts‎

Copy file name to clipboardExpand all lines: src/server/session.ts
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.