mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-03 17:23:42 -05:00
fix code to properly handle relative paths (#9777)
This commit is contained in:
@@ -71,9 +71,10 @@ export class SqlToolsServer {
|
||||
}
|
||||
|
||||
private async download(context: AppContext): Promise<string> {
|
||||
const rawConfig = await fs.readFile(path.join(context.extensionContext.extensionPath, 'config.json'));
|
||||
const configDir = context.extensionContext.extensionPath;
|
||||
const rawConfig = await fs.readFile(path.join(configDir, 'config.json'));
|
||||
this.config = JSON.parse(rawConfig.toString());
|
||||
this.config.installDirectory = path.join(__dirname, this.config.installDirectory);
|
||||
this.config.installDirectory = path.join(configDir, this.config.installDirectory);
|
||||
this.config.proxy = vscode.workspace.getConfiguration('http').get('proxy');
|
||||
this.config.strictSSL = vscode.workspace.getConfiguration('http').get('proxyStrictSSL') || true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user