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

This commit is contained in:
Jason Ramsay committed 2016-02-16 17:37:24 -08:00
1 parent af9dc41747
commit a71fa457bd
6 files changed
+67 -32

No files matched your search

+4
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();
}