refactor(language-service): rename host to tsLsHost (#32346)

Disambiguate the name of the Language Service Host used in constructing
a TypeScript Language Service Host by renaming the `host` property to
`tsLsHost`.

PR Close #32346
This commit is contained in:
ayazhafiz
2019-08-27 09:51:40 -05:00
committed by Misko Hevery
parent 3aba7ebe6a
commit 47a4edb817
2 changed files with 6 additions and 5 deletions

View File

@ -86,7 +86,7 @@ class LanguageServiceImpl implements LanguageService {
if (fileName.endsWith('.ts')) {
const sf = this.host.getSourceFile(fileName);
if (sf) {
return getTsDefinitionAndBoundSpan(sf, position, this.host.host);
return getTsDefinitionAndBoundSpan(sf, position, this.host.tsLsHost);
}
}
}