Skip to content

Go to Definition support and Code Editor Preference#348

Merged
SpaiR merged 8 commits intoSpaiR:mainfrom
Drulikar:context_information
May 3, 2025
Merged

Go to Definition support and Code Editor Preference#348
SpaiR merged 8 commits intoSpaiR:mainfrom
Drulikar:context_information

Conversation

@Drulikar
Copy link
Copy Markdown
Contributor

@Drulikar Drulikar commented Apr 23, 2025

Description

This PR allows you to right click prefabs and go to the file (and line/col if supported) in your currently selected code editor from preferences. When StrongDMM launches, it ensures your loaded preference appears in path, otherwise it tries to reset the config to something that will work (tries VSC -> Dreammaker -> NPP -> Default).

I also set a workspace config to allow the rustanalyzer to read the sdmmparser project (though I could not get breakpoints working).

goto

Supported code editors:

SpaiR did a bulk of the work getting location information from the parser. Let me know if any these changes appear redundant/problematic or if you want functions called in other files (though let me know how I would pass it down).

Type of change

  • Minor changes or tweaks (quality of life stuff)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

@Glloyd
Copy link
Copy Markdown

Glloyd commented Apr 23, 2025

Thanks for doing this Drulikar/Spair, this was always one of the things holding me back from SDMM.

@SpaiR SpaiR added the feat New feature or request label Apr 23, 2025
@warriorstar-orion
Copy link
Copy Markdown

Awesome. This would be incredibly useful.

Copy link
Copy Markdown
Owner

@SpaiR SpaiR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the delayed review on my side. Overall, the code looks great, and I really like the feature! There are just a couple of minor changes that could slightly improve the code quality. Other than that, everything looks awesome. 👍👍👍

@SpaiR SpaiR merged commit a5258e5 into SpaiR:main May 3, 2025
5 checks passed
@Drulikar Drulikar deleted the context_information branch May 4, 2025 23:27
@Drulikar
Copy link
Copy Markdown
Contributor Author

Drulikar commented May 5, 2025

In release mode (not dev) vscode's (not npp nor dreammaker) exec command seems to to temporarily open a command prompt window. Not sure how to address that. But seems to be because code uses code.cmd microsoft/vscode-docs#1504 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants