- Notifications
You must be signed in to change notification settings - Fork 10
documentSymbol / outline support #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good so far!
I think navigation is the correct location for this. We can always pull it out into a symbols
or structure
grouping as we add more functionality, but currently it feels similar to the navigation-related functionality.
I also agree with using getMatlabConnection
instead of getOrCreateMatlabConnection
for your stated reasons.
For your third point - I don't think we have the ability to correctly handle returning a promise currently. I believe some refactoring will need to happen before that is possible.
Can you also add an entry to the list in the README for document symbol support? |
Does this work with mpm.m (multiple functions) and also a datastorage.m hugefile? Is performance and resource consumption acceptable? Is there:
|
Done |
@zm-cttae Thanks for the feedback! Can you please point us to the paths for mpm.m and datastorage.m you have in mind and in what MATLAB release you're finding them? The versions I found in R2023a didn't seem right as mpm.m only had help comments. Good design questions too. Those are good considerations for us for the future. Which block keywords did you have in mind? |
Links to nice test cases:
To start with, the loops listed here: Loops and Conditional Statements - MATLAB & Simulink - MathWorks United Kingdom |
@zm-cttae Thanks! Those test cases seem to work well. Noted on the request for loops, etc. |
Language server core impl
Here's an initial attempt at outline support for mathworks/MATLAB-extension-for-vscode#1
This has a few responsiveness bugs I need to investigate, so please don't actually merge yet. Still I wanted to get some initial feedback.
Some bits of feedback I'd like to hear about:
symbols
orstructure
.onDemand
as mentioned in my comment.Here's a screenshot of this in action:
Things left to do