Use combinesPath.

This commit is contained in:
Tien Nguyen
2015-08-06 14:15:00 -07:00
parent bf7d923e09
commit 91452bf3ae

View File

@@ -2152,7 +2152,7 @@ module FourSlash {
}
private getDocumentHighlightsAtCurrentPosition(fileNamesToSearch: string[]) {
let filesToSearch = fileNamesToSearch.map(name => this.basePath + "/" + name);
let filesToSearch = fileNamesToSearch.map(name => ts.combinePaths(this.basePath, name));
return this.languageService.getDocumentHighlights(this.activeFile.fileName, this.currentCaretPosition, filesToSearch);
}