From 74ac86448fc3f6fc2132d87d0c21bf6345a7a37d Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Fri, 21 Jun 2024 12:26:17 +0200 Subject: [PATCH] Fix duplicated document cache on GitHub repositories When opening a file in GitHub.dev two different virtual documents are sent to the language server (`vscode-vfs` and `github`) but the one from `github` is a readonly document. --- server/packages/server-common/src/models/documentsCache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/packages/server-common/src/models/documentsCache.ts b/server/packages/server-common/src/models/documentsCache.ts index 9071906..511bc9b 100644 --- a/server/packages/server-common/src/models/documentsCache.ts +++ b/server/packages/server-common/src/models/documentsCache.ts @@ -9,7 +9,7 @@ export class DocumentsCacheImpl implements DocumentsCache { * Document URI schemes that represent temporal or readonly documents * that should not be cached. */ - private static schemesToSkip = ["temp", "galaxy-clean-workflow"]; + private static schemesToSkip = ["temp", "galaxy-clean-workflow", "github"]; constructor() { this.cache = new Map();