We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
current version find the config file(etc. python.json) from System's User Dir
get userSnippetFilePath(): string { let platform: string = os.platform(); let AppDataPath: string; switch (platform) { case 'win32': AppDataPath = process.env['VSCODE_APPDATA'] || process.env['APPDATA'] || path.join(process.env['USERPROFILE'] || "", 'AppData', 'Roaming'); break; case 'darwin': AppDataPath = process.env['VSCODE_APPDATA'] || path.join(os.homedir(), 'Library', 'Application Support'); break; case 'linux': AppDataPath = process.env['VSCODE_APPDATA'] || process.env['XDG_CONFIG_HOME'] || path.join(os.homedir(), '.config'); break; default: throw new Error('Platform not supported'); } return path.join(AppDataPath, "Code", "User", "snippets", `${this.language}.json`) }
unfortunately, this didn't work well with vscode-remote environment.
i will try fix this in next few days.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
current version find the config file(etc. python.json) from System's User Dir
unfortunately, this didn't work well with vscode-remote environment.
i will try fix this in next few days.
The text was updated successfully, but these errors were encountered: