Open Zebastian97 opened 2 years ago
Hi Thanks for the feedback😀 Unfortunately there is currently no way to add keywords except through the Extension's code.
I'm thinking about letting the user to add costum keywords, but it will take a bit more time for this feature to come out.
If you think the keywords you want to outline will benefits everyone, we can add it to the code.
Thanks, and have a good day, Snir
בתאריך יום ג׳, 21 ביוני 2022, 11:23, מאת TCLNewbie < @.***>:
First of all thanks for this great extension!!! Is there a way to define other keywords besides the keyword proc so that they are also displayed as a function in Outline? For example if functions are declared with Keyword. Thank you for your response.
— Reply to this email directly, view it on GitHub https://github.com/Snir001/tcl_outline_vscode/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG2MVFJQECZPZ3RYHBOLT2DVQF3WHANCNFSM5ZLOBX6Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Thank you for your quick response Can you help me where do I have to add the Keyword into the code? Thanks again
The file with the patterns is src/documentSymbolProvider.ts
You will need to add the patterns for the keyword, and add it to tokenToKind function
If the keyword have different behavior from 'proc', it might be more complicated.
בתאריך יום ג׳, 21 ביוני 2022, 12:39, מאת TCLNewbie < @.***>:
Thank you for your quick response Can you help me where do I have to add the Keyword into the code? Thanks again
— Reply to this email directly, view it on GitHub https://github.com/Snir001/tcl_outline_vscode/issues/1#issuecomment-1161509420, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG2MVFK7EKIWRMWW3JVYKCDVQGEWVANCNFSM5ZLOBX6Q . You are receiving this because you commented.Message ID: @.***>
First of all thanks for this great extension!!! Is there a way to define other keywords besides the keyword proc so that they are also displayed as a function in Outline? For example if functions are declared with Keyword. Thank you for your response.