MonoDevelop.MSBuildEditor icon indicating copy to clipboard operation
MonoDevelop.MSBuildEditor copied to clipboard

XML autocomplete removes too much

Open KirillOsenkov opened this issue 2 years ago • 2 comments

image

Hit Ctrl+Space and pick the folder from menu:

image

Press enter. Expected: first image. Actual:

image

@miloush

KirillOsenkov avatar Apr 29 '24 00:04 KirillOsenkov

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

mhutch avatar Apr 29 '24 23:04 mhutch

No, we will update to latest and retest

KirillOsenkov avatar Apr 30 '24 00:04 KirillOsenkov

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 avatar May 07 '24 19:05 KirillOsenkov

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

KirillOsenkov avatar May 07 '24 19:05 KirillOsenkov

Filed #227 and closing this one.

KirillOsenkov avatar May 07 '24 19:05 KirillOsenkov