HAG87 / vscode-maxscript-lsp

MaxScript language for VS Code (Language Server implementation)
MIT License
29 stars 4 forks source link

Go to Definition show all references, not just definition #15

Open Ben-Mack opened 2 years ago

Ben-Mack commented 2 years ago

Thank you for making this extension! Currently Go to definition (Ctrl+click) always show every code references to the function/variable, this makes navigating in code really hard. I've been using Sublime Text with MXS extension and its go to definition working perfectly, I'm switching to VSCode but this is a major set back for me. Please improve Go to definition to really show definition only, not references.

Ben-Mack commented 2 years ago

Hi @HAG87, Is this the intended behavior? If not, please left this issue as open so someone could contribute this on future. It'd be even better if you could reference to where this change should be made

HAG87 commented 2 years ago

For simplicity, it is intended behavior. Didn't quite understand what you mean by reference, you mean it jumps to a call or implementation instead of the definition? Animation Currently, definitions are provided this way: