Skip to content

Extension not using noProxy setting

Checklist

Summary

I'm having some problems with the proxy connection. I do need to set the proxy but the gitlab connection goes without it. I have the noProxy configured but it seems that the extension is not making use of it.

Steps to reproduce

Set the proxy configuration on VSCode Try to use the extension with a repository on the local network that doesn't work through the proxy

What is the current bug behavior?

Connects to the repository using the proxy

What is the expected correct behavior?

Connects directly to the repository without using the proxy

Relevant logs and/or screenshots

Log:

024-10-17T15:10:07:281 [warning]: Token validation failed in Language Server: (Token is invalid. Failed to check token: FetchError: request to https://myhostname/api/v4/personal_access_tokens/self failed, reason: connect ECONNREFUSED xxxx:9091. Reason: unknown - undefined). This can happen with OAuth token refresh. If the rest of the extension works, this won't be a problem.

settings.json

"http.noProxy": [ "myhostname" ],

Possible fixes

Not sure about the code but the extension should check the variable http.noProxy and check if the hostname that is trying to connect is in that list. If it is, skip the use of proxy.