mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-16 05:58:32 -06:00
adjust check when content should be used
This commit is contained in:
parent
38b5eed062
commit
8ff0febabe
@ -1487,7 +1487,7 @@ namespace ts.server {
|
||||
applyChangesInOpenFiles(openFiles: protocol.OpenFile[], closedFiles: string[]): void {
|
||||
for (const file of openFiles) {
|
||||
const scriptInfo = this.getScriptInfo(file.fileName);
|
||||
if (!scriptInfo) {
|
||||
if (!scriptInfo || !scriptInfo.isOpen) {
|
||||
Debug.assert(!!file.content);
|
||||
this.openClientFile(file.fileName, file.content);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user