snirye / tcl_outline_vscode

Provide tcl outline view
2 stars 0 forks source link

Feature: procedure fingerprint #2

Open the-moog opened 1 year ago

the-moog commented 1 year ago

Geat plugin, thanks for the effort.

How about this for a future feature?

Add the fingerprint of the procs and an indication of whether the proc returns a value. e.g.

proc hello_world {planet {int_life false}} {
 if { $int_life == true } {
  set msg "Hi $planet, Take me to your leader!"
} else {
  set msg "Keep banging the rocks togther, guys. We will try again in 1000 years."
}
 return $msg
}

would outline as something like

[returns (1)] hello_world { planet { int_life false } } 
snirye commented 1 year ago

Sounds like a good idea. Are you sure vscode outline can show this information?

the-moog commented 11 months ago

I have no idea, sorry. Never written a plugin for it, but other plugins I use do show something like that, dunno how though.

snirye commented 11 months ago

Hi, thanks for the idea, I'll check if it's possible to add more info in vscode outline.

בתאריך שבת, 14 באוק׳ 2023, 22:27, מאת Jay @.***>:

I have no idea, sorry. Never written a plugin for it, but other plugins I use do show something like that, dunno how though.

— Reply to this email directly, view it on GitHub https://github.com/snirye/tcl_outline_vscode/issues/2#issuecomment-1763151494, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG2MVFMVWIZ4YGCTNUC3MTLX7LRTJANCNFSM6AAAAAAVGBPK6M . You are receiving this because you commented.Message ID: @.***>