File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1147,12 +1147,12 @@ namespace ts.server {
11471147 }
11481148
11491149 private getBraceMatching ( args : protocol . FileLocationRequestArgs , simplifiedResult : boolean ) : protocol . TextSpan [ ] | TextSpan [ ] {
1150- const { file, project } = this . getFileAndProject ( args ) ;
1150+ const { file, project } = this . getFileAndProjectWithoutRefreshingInferredProjects ( args ) ;
11511151
11521152 const scriptInfo = project . getScriptInfoForNormalizedPath ( file ) ;
11531153 const position = this . getPosition ( args , scriptInfo ) ;
11541154
1155- const spans = project . getLanguageService ( ) . getBraceMatchingAtPosition ( file , position ) ;
1155+ const spans = project . getLanguageService ( /*ensureSynchronized*/ false ) . getBraceMatchingAtPosition ( file , position ) ;
11561156 if ( ! spans ) {
11571157 return undefined ;
11581158 }
You can’t perform that action at this time.
0 commit comments