Change the design to track addRoot and removeRoot

This commit is contained in:
zhengbli
2016-12-29 17:00:04 -08:00
parent 09fc3b3a18
commit 8ac22ecbb0
4 changed files with 66 additions and 17 deletions

View File

@@ -355,5 +355,9 @@ namespace ts.server {
positionToLineOffset(position: number): ILineInfo {
return this.textStorage.positionToLineOffset(position);
}
public isJavaScript() {
return this.scriptKind === ScriptKind.JS || this.scriptKind === ScriptKind.JSX;
}
}
}