mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 08:38:56 +01:00
Don't try creating a new synced buffer if we already have one
Possibly https://github.com/Microsoft/TypeScript/issues/23502
This commit is contained in:
@@ -206,6 +206,11 @@ export default class BufferSyncSupport {
|
||||
if (!filepath) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.syncedBuffers.has(resource)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const syncedBuffer = new SyncedBuffer(document, filepath, this, this.client);
|
||||
this.syncedBuffers.set(resource, syncedBuffer);
|
||||
syncedBuffer.open();
|
||||
|
||||
Reference in New Issue
Block a user