MCPcopy Index your code
hub / github.com/LeetCode-OpenSource/vscode-leetcode / createEnvOption

Function createEnvOption

src/utils/cpUtils.ts:59–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57
58// clone process.env and add http proxy
59export function createEnvOption(): {} {
60 const proxy: string | undefined = getHttpAgent();
61 if (proxy) {
62 const env: any = Object.create(process.env);
63 env.http_proxy = proxy;
64 return env;
65 }
66 return process.env;
67}
68
69function getHttpAgent(): string | undefined {
70 return vscode.workspace.getConfiguration("http").get<string>("proxy");

Callers 2

signInMethod · 0.90
executeCommandFunction · 0.85

Calls 1

getHttpAgentFunction · 0.85

Tested by

no test coverage detected