-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File revisions can end up being parsed by language servers (causing errors and warnings, etc) #430
Comments
Looks like a known issue, potentially with VSCode, though I think some more digging is required to find out exactly what's going on. Does VSCode automatically include temp files in workspace after they've been opened by GitLens? Could GitLens take more care to delete temp files? |
While I feel like this is an issue in the language servers, I will look into any way GitLens can avoid this. |
I believe I'm seeing a similar issue. Whenever I open a revision comparison, I get |
@jhaenchen yup -- drives me NUTS. I'm trying to get it resolved but there are challenges in changing some of the core of GitLens. And I'm working with the vscode team to hopefully provide some core (overlapping) functionality that could also resolve this too. |
@eamodio (I don´t have the full background) Are these temporary files that are generated by gitlens? Creating temporary files should be avoided by using TextDocumentContentProviders. A TextDocumentContentProvider can then be registered for a new schema, that does not overlap with the |
@egamma Yeah, they are temp files for a particular file revision. I honestly can't remember the history of why I use temporary files for diff comparisons and use a This was the first issue I ran into: microsoft/vscode#55110. And then there is the handling of binary/image files. So given those issues, I've been working on switching over to my provider for now, which while simple on the surface -- its a tiny change -- has a large ripple possibility, so I'm still working through all the scenarios. EDIT: Just remembered that one issue might have been trying to deal with file encoding when doing diffs -- I'll need to look into that more. |
The vscode-pullrequest-github extension is using TextDocumentContentProviders and is also diffing contents. Would be interesting what issues you are aware of. CCing @rebornix |
Hi.. I installed your plugin today and found the issue and that it's already mentioned here. Don't know if it helps but when reloading the window the problems are gone until I check changes or previous revision |
@tiagomsmagalhaes Thanks -- this issue has been fixed in the GitLens 9 release which will be coming very soon. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to Reproduce:
Expected behavior:
Complete steps 1-5.
Step 6. One, the most recent definition is shown.
The text was updated successfully, but these errors were encountered: