anzwdev / al-code-outline

AL Code Outline for Visual Studio Code
MIT License
51 stars 13 forks source link

Bulk action for "Convert page control tooltip to table field tooltip" #580

Open jwikman opened 3 months ago

jwikman commented 3 months ago

In runtime 13.0 (BC24) there are a new code action called "Convert page control tooltip to table field tooltip", that moves a tooltip from a page to the table field.

But in an app with 1000+ tooltips, this becomes quite a lot of work to do one by one!

I would love a function that did this for the whole project. One of the challenges here, is to add some rules to decide which Tooltip to use if a table field is used on several pages.

I think we (in my product team) could live with a priority like this, where the Tooltip found first is used, and the rest is deleted.

  1. Card
  2. Document
  3. CardPart
  4. Worksheet
  5. List
  6. ListPart
  7. Any other page type

A bonus feature would be a way to identify table fields with different Tooltips in different pages, where the user can select which one to use on the table.

jwikman commented 2 months ago

I just noticed that this has been implemented in v14 of AL Language extension.

We'll have to dive into that one first, then we'll see if anything else is needed.