Skip to content

Fix duplicate problem entries from virtual document schemes (#19) - #29

Merged
atextor merged 2 commits into
eclipse-esmf:mainfrom
bci-oss:19-fix-duplicate-problem-files
Oct 12, 2026
Merged

atextor merged 2 commits into
eclipse-esmf:mainfrom
bci-oss:19-fix-duplicate-problem-files

Conversation

@gjavakhadze

Copy link
Copy Markdown
Contributor

Description

This pull request fixes a bug where duplicate entries appear in the VS Code Problems panel for the same .ttl file.

Problem

Previously, the extension sent all Turtle files to the language server, including temporary and virtual files (such as GitHub Copilot Chat preview sessions or Git diff views).

Because of this, the language server reported problems for files that do not exist on disk. When the preview closed, these problems stayed in the Problems panel. Clicking on them showed an error because VS Code could not open the file.

Solution

  • The language client now only synchronizes real files (file) and new unsaved files (untitled). Virtual schemes like chat-editing-text-model and git are ignored.
  • The "Validate Document Now" command now checks the document scheme and shows a warning if the scheme is not supported.
  • The right-click menu now only shows the validate option for file and untitled schemes.

Fixes #19

@atextor atextor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@atextor
atextor merged commit c5fa8fd into eclipse-esmf:main Oct 12, 2026
3 checks passed
@atextor
atextor deleted the 19-fix-duplicate-problem-files branch October 12, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] VSC Problems point to seemingly duplicate files that do not exist

2 participants