Keep alive declaration script info and map file info if source file info is alive

This commit is contained in:
Sheetal Nandi
2018-11-29 14:14:45 -08:00
parent 0aa4da43ad
commit 56a39b754c
7 changed files with 47 additions and 27 deletions

View File

@@ -504,8 +504,8 @@ namespace ts.server {
}
/*@internal*/
getDocumentPositionMapper(fileName: string): DocumentPositionMapper | undefined {
return this.projectService.getDocumentPositionMapper(fileName, this);
getDocumentPositionMapper(generatedFileName: string, sourceFileName?: string): DocumentPositionMapper | undefined {
return this.projectService.getDocumentPositionMapper(this, generatedFileName, sourceFileName);
}
/*@internal*/