redhat-developer / eclipseide-jdtls

A language server client for Eclipse using JDT-LS
MIT License
11 stars 5 forks source link

Changes on external files not sync'd with LS state #104

Closed mickaelistria closed 11 months ago

mickaelistria commented 11 months ago

Let's make sure issue is not already fixed in snapshots first.

Steps to reproduce

From a fresh installation and clean workspace:

I tried

I expected: fresh results according to the change

But got: no change in returned results, the LS is not sync'd with the editor

Here is some relevant log output form (<workspace>/.metadata/.log)

I've debugged it and see that the document used by the editor is not the same as the one used internally by JDT-LS. The expectation is that both share the same document. We'll need to investigate why a new document is created (by the editor apparently, JDT-LS's one seems created earlier) instead of the existing one being reused.

Tested under this environment:

Community

mickaelistria commented 11 months ago

Patch submitted upstream: https://github.com/eclipse-jdtls/eclipse.jdt.ls/pull/2885

mickaelistria commented 11 months ago

Fixed upstream