Skip to content

Commit

Permalink
Fix duplicated document cache on GitHub repositories
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
davelopez committed Jun 21, 2024
1 parent edc7b62 commit 74ac864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/packages/server-common/src/models/documentsCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, DocumentContext>();
Expand Down

0 comments on commit 74ac864

Please sign in to comment.