hsnips icon indicating copy to clipboard operation
hsnips copied to clipboard

VSCode Insider

Open taooceros opened this issue 2 years ago • 4 comments

It doesn't work on VSCode insider because the path is hardcoded.... image

taooceros avatar Oct 09 '22 02:10 taooceros

Sorry about this, I'm not aware of a way to programmatically get the user path, so as a workaround could you let me know the path for the user folder in the insider version?

draivin avatar Dec 22 '22 10:12 draivin

Same problem with VSCodium.

As a workaround I just changed the "hsnips.hsnipsPath" setting:

"hsnips.hsnipsPath": "/home/[...]/.config/VSCodium/User/hsnips"

mfederczuk avatar Jan 04 '23 04:01 mfederczuk

I have the same problem in VSCode! One day, suddenly all of my snippet files were not being used and i got the same error. The weird part is that only the all.hsnips file is working, but that is wildly unpractical ofc. @mfederczuk do you think your solution could work in VSCode aswell?

Oskar-Idland avatar Jan 04 '23 16:01 Oskar-Idland

Hard to say without more information, but I doubt that it's the same issue.
Our problem is that our user directory is at an abnormal location because we're not using the normal version of VSCode.
But if you're using the normal VSCode version and you said that your all.hsnips file still worked it means that it was correctly located in the normal VSCode user directory, so a different issue.

mfederczuk avatar Jan 04 '23 20:01 mfederczuk