We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43d51a7 commit 37cf197Copy full SHA for 37cf197
src/vs/platform/files/browser/htmlFileSystemProvider.ts
@@ -313,11 +313,11 @@ export class HTMLFileSystemProvider implements IFileSystemProviderWithFileReadWr
313
let handleId = `/${handle.name}`;
314
315
// Compute a valid handle ID in case this exists already
316
- if (map.has(handleId)) {
+ if (map.has(handleId) && !map.get(handleId)?.isSameEntry(handle)) {
317
let handleIdCounter = 2;
318
do {
319
handleId = `/${handle.name}-${handleIdCounter++}`;
320
- } while (map.has(handleId));
+ } while (map.has(handleId) && !map.get(handleId)?.isSameEntry(handle));
321
}
322
323
map.set(handleId, handle);
0 commit comments