Skip to content
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

Can’t make it work #11

Closed
cedrickp32 opened this issue Apr 10, 2023 · 6 comments
Closed

Can’t make it work #11

cedrickp32 opened this issue Apr 10, 2023 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@cedrickp32
Copy link

Hi,

i installed your extension as it’s exactly what i need, but i can’t get it to work. I’ve tried with the exemple settings and i don’t see any snippets anywhere. What i am doing wrong ?

@0x-jerry
Copy link
Owner

First, I'm sorry for that.

But if you provide a minimal reproducible setting and the expected behavior you want, then I can help.

@cedrickp32
Copy link
Author

Hi,

Thanks for the quick reply. I've used the json file provided in the exemple to test it. If i use the command insert snippet, nothing is showing in the list. I'm new to vscode, so maybe something in my setup isn't right. Also, i don't know what the behavior for the update snippets button is, but when i click on it i see 0/1 appear and disapear really quickly.

Here is my settings json file :
{ "security.workspace.trust.untrustedFiles": "open", "JSObfuscator.changeFileExtension": "min.js", "git.ignoreMissingGitWarning": true, "workbench.colorTheme": "Sublime VSCode Theme", "[php]": {}, "auto-close-tag.SublimeText3Mode": true, "workbench.editor.untitled.hint": "hidden", "remote-snippets.snippets": [ { "path": "https://raw.githubusercontent.com/hollowtree/vscode-vue-snippets/master/snippets/html.json", "language": "vue" } ] }

@0x-jerry
Copy link
Owner

@cedrickp32

Also, i don't know what the behavior for the update snippets button is, but when i click on it i see 0/1 appear and disapear really quickly.

This will re-download remote snippets and store them at ~/.vscode-remote-snippets/config.json


This extension didn't provide command insert snippet, so you can't use with that command.

But you can just type some prefix, and the vscode will handle the reset of things.

For example, just type vt, and the snippet will show up.

image

image

@cedrickp32
Copy link
Author

Ok, that's really usefull. I got it working ! Thank you.

I'm able to get the snippets in vue or javascript files, but i don't see them in html, css or php files. Do you know why ?

@0x-jerry
Copy link
Owner

This extension only supports these languages for now: const supportedLang = ['vue', 'typescript', 'javascript', 'markdown']

I think I need to fix it in the next version.

@0x-jerry 0x-jerry self-assigned this Apr 10, 2023
@0x-jerry 0x-jerry added the enhancement New feature or request label Apr 10, 2023
@cedrickp32
Copy link
Author

I just tried the new version, and everything is working ! It's really awesome, thank you so much for your help !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants