-
Notifications
You must be signed in to change notification settings - Fork 16
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
Showing completions after trigger chars can be unstable #71
Comments
Interesting! I'll see if we can create a test for this - we do have a bunch of similar ones and the test infrastructure to be explicit about starting project file and completion location. |
First step will be to verify that we are correctly parsing and interpreting the existing and modified document XML: https://github.com/tintoy/msbuild-project-tools-server/blob/master/test/LanguageServer.Engine.Tests/XmlLocatorTests.cs (around line 210). |
…preting the target location and its surrounding XML #71 tintoy/msbuild-project-tools-server#129
The initial tests I've added indicate that the language service does correctly recognise all of the target locations for element insertion listed in #129. I'll keep digging 🙂 |
It looks like something has changed in VS Code's LSP implementation; the extension is definitely offering the correct completions but VS Code is not showing them.
followed by the completions:
|
Ok, so I have figured out what the problem is: When you type a trigger character (e.g. We can't fix this one without upgrading to a recent version of the OmniSharp LSP library. |
Finally figured out a way to handle this correctly! I've changed the completion provider behaviour so it no-longer extends the selection when trigger characters are typed to trigger completion (this was previously required because otherwise the completion would not correctly replace them). |
This is no longer needed due to a change in VS Code / LSP completion behaviour. #71
@DoctorKrolic can you give this branch a try and see if it works for you? If so, I'll open a PR for review and publish a new version of the extension. |
This is no longer needed due to a change in VS Code / LSP completion behaviour. #71
Can you please open a PR, so we can discuss the actual code changes there? |
…more trigger characters This is because VS Code behaviour has changed, and it no longer correctly handles extension of selection if it has inserted an auto-closing delimiter. #71
I managed to get a consistent repro of #52 (comment)
.csproj
with this content is the only MSBuild-related file in the projectThe text was updated successfully, but these errors were encountered: