yatki / vscode-surround

🔥 A simple yet powerful extension to add wrapper templates around your code blocks
https://marketplace.visualstudio.com/items?itemName=yatki.vscode-surround
MIT License
899 stars 40 forks source link

add language field as a filter #60

Closed woodgear closed 3 years ago

woodgear commented 4 years ago

i glad to know what your idea about that.maybe some different implement method?

martinandersen3d commented 4 years ago

Please merge this feature :D Really need it :D

yatki commented 4 years ago

@woodgear So sorry for the late reply. Thank you very much for the PR. I actually have a different solution for this using vscode's native snippet support. I was writing a migration script when I was interrupted with other stuff.

I'll look into this get back to you in a few days.

yatki commented 4 years ago

Please merge this feature :D Really need it :D

Hey @martinandersen3d, until I publish a new version you can use the hint below that I posted in readme. If you really need it, could be a temporary solution.

Hint

If you want to add the snippets for only one project, you can use "Workspace Settings" and disable or add snippets for only one project.

woodgear commented 4 years ago

is there some news?

yatki commented 3 years ago

@woodgear yes. I was looking into a nice way to detect all snippets that vscode loads. However, seems like it's not a viable option at the moment because vscode API is not supporting that.

The good news is I came up with a nice way to organize snippets.

I'm going to close this PR for the moment. Because we need to allow users to define multiple languages for a snippet. Thank you very much for your efforts and interest.

I'll publish the new version very soon. 🖖 👨‍🚀