mhutch / MonoDevelop.MSBuildEditor

Improved MSBuild editing support
Other
228 stars 26 forks source link

XML autocomplete removes too much #220

Closed KirillOsenkov closed 6 months ago

KirillOsenkov commented 7 months ago

image

Hit Ctrl+Space and pick the folder from menu:

image

Press enter. Expected: first image. Actual:

image

@miloush

mhutch commented 6 months ago

Is this with main? I can't find the commit but I feel like I fixed something related to this recently.

KirillOsenkov commented 6 months ago

No, we will update to latest and retest

KirillOsenkov commented 6 months ago

I can confirm this is now fixed.

However if the caret is not at the end of the word, it completes the remainder of the word (unlike C#): image

Not sure if this is the desired behavior.

Maybe if there's a single completion, and the word in the editor around the trigger point matches the completion exactly, the completion shouldn't show but the caret should move to the end of the word? This is how C# works.

KirillOsenkov commented 6 months ago

In any event, this perhaps should be opened in a new bug, since the original repro scenario is now fixed.

KirillOsenkov commented 6 months ago

Filed #227 and closing this one.