Salsa: adding ScriptKind to ensure script blocks (.html, .aspx, .ascx, etc) are processed as JS

This commit is contained in:
Jason Ramsay
2016-02-16 17:37:24 -08:00
parent af9dc41747
commit a71fa457bd
6 changed files with 67 additions and 32 deletions

View File

@@ -192,6 +192,10 @@ namespace ts.server {
return this.roots.map(root => root.fileName);
}
getScriptKind() {
return ScriptKind.Unknown;
}
getScriptVersion(filename: string) {
return this.getScriptInfo(filename).svc.latestVersion().toString();
}