mhutch / MonoDevelop.MSBuildEditor

Improved MSBuild editing support
Other
211 stars 24 forks source link

Completion behavior if the word is already in the editor #227

Open KirillOsenkov opened 2 months ago

KirillOsenkov commented 2 months ago

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.

mhutch commented 2 months ago

Yes, the trigger logic for MSBuild expressions doesn't yet readahead to calculate the full extent of the trigger location.