diff options
| author | Laurențiu Nicola <lnicola@dend.ro> | 2021-12-23 08:33:34 +0200 |
|---|---|---|
| committer | Laurențiu Nicola <lnicola@dend.ro> | 2021-12-23 09:23:56 +0200 |
| commit | f63690c058dbffcf334e3eb67a73102b30504d14 (patch) | |
| tree | 4e3864417d2cd29bcbfe27b140855c4c5dcede60 | |
| parent | 650ec14e4f083316b6341dd3a52f734ec449d10a (diff) | |
| download | rust-f63690c058dbffcf334e3eb67a73102b30504d14.tar.gz rust-f63690c058dbffcf334e3eb67a73102b30504d14.zip | |
Remove proxy settings
| -rw-r--r-- | editors/code/src/config.ts | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index 0178e4bb870..9ed573ccf5c 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -8,11 +8,6 @@ const NIGHTLY_TAG = "nightly"; export type RunnableEnvCfg = undefined | Record<string, string> | { mask?: string; env: Record<string, string> }[]; -export class ProxySettings { - proxy?: string = undefined; - strictSSL: boolean = true; -} - export class Config { readonly extensionId = "matklad.rust-analyzer"; @@ -103,18 +98,6 @@ export class Config { } get serverExtraEnv() { return this.get<Env | null>("server.extraEnv") ?? {}; } get traceExtension() { return this.get<boolean>("trace.extension"); } - get proxySettings(): ProxySettings { - const proxy = vscode - .workspace - .getConfiguration('http') - .get<null | string>("proxy")! || process.env["https_proxy"] || process.env["HTTPS_PROXY"]; - const strictSSL = vscode.workspace.getConfiguration("http").get<boolean>("proxyStrictSSL") ?? true; - - return { - proxy: proxy, - strictSSL: strictSSL, - }; - } get inlayHints() { return { |
