-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working