mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Make extension respect http proxy settings
This commit is contained in:
parent
f0b7c02f16
commit
77b7c96aea
5 changed files with 42 additions and 15 deletions
|
@ -100,6 +100,14 @@ export class Config {
|
|||
get channel() { return this.get<UpdatesChannel>("updates.channel"); }
|
||||
get askBeforeDownload() { return this.get<boolean>("updates.askBeforeDownload"); }
|
||||
get traceExtension() { return this.get<boolean>("trace.extension"); }
|
||||
get httpProxy() {
|
||||
const httpProxy = vscode
|
||||
.workspace
|
||||
.getConfiguration('http')
|
||||
.get<null | string>("proxy")!;
|
||||
|
||||
return httpProxy || process.env["https_proxy"] || process.env["HTTPS_PROXY"];
|
||||
}
|
||||
|
||||
get inlayHints() {
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue