Fix compile on save issues (#10615)

* only return .ts and .tsx files for affected document list
* Return all files exclude mixed-content files for CoS affected list
This commit is contained in:
Zhengbo Li
2016-08-31 12:11:32 -07:00
committed by GitHub
parent 01caa69949
commit 95378aa399
5 changed files with 40 additions and 16 deletions

View File

@@ -20,7 +20,7 @@ namespace ts.server {
content: string,
readonly scriptKind: ScriptKind,
public isOpen = false,
private hasMixedContent = false) {
public hasMixedContent = false) {
this.path = toPath(fileName, host.getCurrentDirectory(), createGetCanonicalFileName(host.useCaseSensitiveFileNames));
this.svc = ScriptVersionCache.fromString(host, content);