Skip to content

Extension searches for second user snippet file #1365

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

Closed
ghost opened this issue Jun 13, 2018 · 3 comments
Closed

Extension searches for second user snippet file #1365

ghost opened this issue Jun 13, 2018 · 3 comments

Comments

@ghost
Copy link

ghost commented Jun 13, 2018

In the debug output for the extension I've found:

[renderer1] [error] Error: ENOENT: no such file or directory, open '%USERPROFILE%\.vscode\extensions\ms-vscode.powershell-1.7.0\snippets\PowerShell.json'

But my user snippet file is located, found and used under:
"%USERPROFILE%\AppData\Roaming\Code\User\snippets\powershell.json"

So why you try to load another one ?

(I've replace my path with %USERPROFILE%)

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.16299
VSCode 1.24.0
PowerShell Extension Version 1.7.0

PowerShell Information

Name Value
PSVersion 5.1.16299.431
PSEdition Desktop
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.16299.431
BuildVersion 10.0.16299.431
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand)
Extension Author Version
change-case wmaurer 1.0.0
csharp ms-vscode 1.15.2
local-history xyz 1.6.2
PowerShell ms-vscode 1.7.0
svn-scm johnstoncode 1.29.2
vs-keybindings ms-vscode 0.2.0
vscode-language-pack-de MS-CEINTL 1.24.3
@rkeithhill
Copy link
Contributor

If you have installed the PowerShell extension (v 1.7.0) then this path is supposed to exist:

'%USERPROFILE%\.vscode\extensions\ms-vscode.powershell-1.7.0\snippets\PowerShell.json'

These are the PowerShell snippets that are provided by this extension. The extensions at the path %USERPROFILE%\AppData\Roaming\Code\User\snippets\powershell.json are user-specific snippets that combine with the VSCode base-level snippets and the PowerShell extension snippets.

@ghost
Copy link
Author

ghost commented Jun 15, 2018

my fault, I've accidentially deleted the file since this folder is empty and therefore the debug warning, thx

@rkeithhill
Copy link
Contributor

No problem. Glad we got it sorted out.

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

No branches or pull requests

1 participant