BartPermentier / al-toolbox

Adds Features to the AL Language Extension
MIT License
13 stars 9 forks source link

ALTB Region snippets conflict with AL Object ID Ninja #65

Closed fvet closed 2 years ago

fvet commented 2 years ago

@dsaveyn @BartPermentier When i type table followed by IntelliSense (Ctrl+Space), all snippets are properly proposed. (OK)

image

However, when I continue and add a space, the region snippets from AL Toolbox are still listed / proposed, although to me it makes no more sense, since 'table' is no longer the active context. (NOK)

image

I need to hit escape, to access the correct IntelliSense (Ctrl+Space) is was looking for (the one proposing an Object ID). In short, the ALTB snippets conflicts with a proper use of AL Object ID Ninja.

image

What's the value of including the space as part of the expression to propose the ALTB region snippets?

Additionally, maybe a setting could be added to disable the region snippets?

BartPermentier commented 2 years ago

Hey @fvet, Add the following setting to your user settings.json "editor.snippetSuggestions": "bottom", If this doesn't help you can also add: "editor.suggest.snippetsPreventQuickSuggestions": true, And if that still is not enough you can disable those snippets in the ALTB Settings image

We use the snippet from Waldo to create tables: ttable. When id is selected you press delete and then hit Ctrl + Space for IntelliSense image

Hope this helps!