ashish10alex / vscode-dataform-tools

Dataform tools - a vscode extension
https://marketplace.visualstudio.com/items?itemName=ashishalex.dataform-lsp-vscode
MIT License
20 stars 4 forks source link

feat: go to definition for source in `$ref{("MY_SOURCE")}` #4

Closed ashish10alex closed 5 months ago

ashish10alex commented 5 months ago

This merge request:

  1. feat: go to definition for source in $ref{("MY_SOURCE")}. When the user is on a line where a source in the format of $ref{("MY_SOURCE")} they can right click and select Go to definition or press F12 when the word under the cursor is MY_SOURCE. If the source is either defined as a file in definitions directory it will take you to top of that file or if it is defined as source in sources.js then it will take you to the line where the MY_SOURCE is defined in sources.js. If the source for some reason cannot be found the editor will remain at the current file and inform you at the cursor from where go to definition is invoked that the definition can not be found for the word under the cursor.

  2. fix: do not show user warning message if user is on wrong file

  3. feat: create file association for .sqlx files to .sql by default ( if works is a good default)