ifc-developer-tools icon indicating copy to clipboard operation
ifc-developer-tools copied to clipboard

ifc-syntax-vscode feature request - jump to the entity definition / find references

Open Andrej730 opened this issue 1 year ago • 1 comments

I use the syntax highlighter from the extension all the time. The couple things I'm missing and wanted to suggest as a feature requests

  1. Jump to entity definition - e.g. when navigating over some entity like #92 in line #91=IFCREINFORCINGBAR('1XwO12OTPZDKSyFpBHWdCj',#12,'FF1_3',',27804',$,#92,#96,'IDde1ae243-4ec1-4600-a537-498c34d8ee76',$,37.,0.,$,.NOTDEFINED.,$); to jump with ctrl+click or F12 to it's entity definition. It would be nice but won't be a big deal though - for now it still possible to select #92 -> Ctrl-F -> and just add = to get #92= which will lead to the definition.

  2. Display some information about entity definition on hovering mouse over it's hashtag number.

  3. Find references - so it will be possible to display a popup with all references where #92 entity is used (either on Ctrl+Click or Shift+F12). Currently I just search #92) or #92, and go through them one by one.

Andrej730 avatar Feb 16 '24 12:02 Andrej730

Hi @Andrej730,

I've already been working on this on and off for a while, though I confess I haven't had the time to polish it in a way that makes it "good enough" to use in all IFC files.

I may release a version that includes this, but it will be most likely an opt-in setting and disabled by default for all users.

I've got the go to definition working, but still have some work to get the find all references.

I'll let you know once i've got it released ;)

AlanRynne avatar May 26 '24 16:05 AlanRynne