Remove unused

This commit is contained in:
Ryan Cavanaugh
2016-09-19 17:53:10 -07:00
parent c1630e59d1
commit 924a2bf03d
6 changed files with 11 additions and 9 deletions

View File

@@ -1188,7 +1188,7 @@ namespace ts {
/*
* LS host can optionally implement these methods to support automatic updating when new type libraries are installed
*/
getTypeRootsVersion?(): number;
getTypeRootsVersion(): number;
/*
* LS host can optionally implement this method if it wants to be completely in charge of module name resolution.
@@ -3223,7 +3223,7 @@ namespace ts {
const typeRootsVersion = host.getTypeRootsVersion ? host.getTypeRootsVersion() : 0;
if (lastTypesRootVersion !== typeRootsVersion) {
log('TypeRoots version has changed; provide new program');
log("TypeRoots version has changed; provide new program");
program = undefined;
lastTypesRootVersion = typeRootsVersion;
}

View File

@@ -360,6 +360,9 @@ namespace ts {
}
public getTypeRootsVersion(): number {
if (!this.shimHost.getTypeRootsVersion) {
return 0;
}
return this.shimHost.getTypeRootsVersion();
}