Enable no-unsafe-assignments for MSSQL (#23407)

* Enable no-unsafe-assignments for MSSQL

* Remove toString
This commit is contained in:
Charles Gagnon
2023-06-18 10:01:41 -07:00
committed by GitHub
parent 1bed054668
commit cdece24123
58 changed files with 136 additions and 75 deletions

View File

@@ -132,7 +132,7 @@ export class SqlToolsServer {
private async download(context: AppContext): Promise<string> {
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()) as IConfig;
this.config.installDirectory = path.join(configDir, this.config.installDirectory);
this.config.proxy = vscode.workspace.getConfiguration('http').get<string>('proxy', '');
this.config.strictSSL = vscode.workspace.getConfiguration('http').get('proxyStrictSSL', true);