mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
Make sure we close old resource on ts server for path updates
Fixes #53466
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user