nikitakunevich / vscode-snippet-creator

vscode extension for creating snippets
MIT License
44 stars 25 forks source link

Support code-insiders #3

Open matthewmueller opened 7 years ago

matthewmueller commented 7 years ago

Hey there, thanks for creating this library!

I had an issue with this library when using the code-insiders (beta) version. It turned out that the path was off. Not exactly sure how to generalize this, but the fix was:

case 'Darwin': {
    vsCodeUserSettingsPath =
        process.env.HOME +
---        '/Library/Application Support/Code/User/'
+++        '/Library/Application Support/Code - Insiders/User/'
    break
}
etiennejcharles commented 7 years ago

Totally awesome: @nikitaKunevich: Any chance that could be merged? I would also appreciate to have that! (without checking out the repo, and cloning it in my extensions)

kennonb commented 7 years ago

Yea this would be great if this could be merged. 👍

codeitlikemiley commented 7 years ago

if you wanna merge this, there are other OS , that is not responding to Code Insider like Windows I'm using windows but , I did try adding

case ("Windows_NT"): {
                        vsCodeUserSettingsPath = process.env.APPDATA + "\\Code - Insiders\\User";
                        delimiter = "\\";
                        break;
                    }

But I still not working ...

Is the Changes I made wrong?

codeitlikemiley commented 7 years ago

this resolves my issue in windows

 case ("Windows_NT"): {
                        vsCodeUserSettingsPath = process.env.APPDATA + "\\Code - Insiders\\User\\";
                        delimiter = "\\";
                        break;
                    }

but we need a way to detect if we are using code or code insiders ... until then this will not be merge I guess

mifas commented 6 years ago

For Linux create a symbolic link inside .config folder ln -s ~/.config/Code\ -\ Insiders ~/.config/Code

Paras-code-007 commented 4 years ago

how can i get the source file of the snippet created by the snippet creator in mac? because it is not in the folder which stores the snippet created manually