mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -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> {
|
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 = 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.proxy = vscode.workspace.getConfiguration('http').get('proxy');
|
||||||
this.config.strictSSL = vscode.workspace.getConfiguration('http').get('proxyStrictSSL') || true;
|
this.config.strictSSL = vscode.workspace.getConfiguration('http').get('proxyStrictSSL') || true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user