提交 55a10f77 编写于 作者: M Matt Bierner

Don't try creating a new synced buffer if we already have one

Possibly https://github.com/Microsoft/TypeScript/issues/23502
上级 0d584a90
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册