提交 696fc1b4 编写于 作者: M Matt Bierner

Make sure we close old resource on ts server for path updates

Fixes #53466
上级 03ed0959
......@@ -78,7 +78,7 @@ class UpdateImportsOnFileRenameHandler {
}
// Make sure TS knows about file
this.client.bufferSyncSupport.closeResource(targetResource);
this.client.bufferSyncSupport.closeResource(oldResource);
this.client.bufferSyncSupport.openTextDocument(document);
if (this.client.apiVersion.lt(API.v300) && !fs.lstatSync(newResource.fsPath).isDirectory()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册