-
Notifications
You must be signed in to change notification settings - Fork 4
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
Please help me creating VS Code extension #36
Comments
Neat idea! I don't think you can create exactly what you are after with the current VS Code apis but there are two areas to explore:
Hope that provides some starting points to explore further |
Thanks, yeah my algorithm works but using native VS Code inner system to find blocks would be much faster and less error prone. https://github.com/CoenraadS/Bracket-Pair-Colorizer-2 Which looks interesting because it "uses the same bracket parsing engine as VSCode", so maybe I can examine their code and learn how to get the locations of brackets Folding ranges also sound very interesting. I'll try each way. |
Hello there again, I have super great news. the extension actually works, I did finish to the point of demonstration. It needs some polishing to be done, but the hardest part is complete. I'm still working, I'll inform you when I finish it or if I need any help. VSCode API is hell sometimes : d Blockman v0.9 . |
I'm trying to get folding ranges for a file, I looked into the API, but could not find the right function. Can you write a sample code to get folding ranges for a file? Maybe the sample code will be just several lines. |
I want to create a VS Code extension with my specific idea, I have already made a DEMO in react.js, what do you think about it?
https://youtu.be/qrEKSe8VkYQ
(Block marking / Block highlighting)
I wrote the opening/closing block finding and nesting algorithm myself. The code link is in the video description.
Is it possible to create such extension in VS Code? I learned some basics of the extension API, created some testing blocks with createTextEditorDecorationType function, but it seems that the decoration manipulation is very limited, so limited that maybe it's not even possible to create as simple block marking feature as my DEMO.
The text was updated successfully, but these errors were encountered: