2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

VSCodeの認証付きプロキシの入力を省略する暫定ハック

2
Last updated at Posted at 2020-09-17

現在は不要

1.51にて認証保持できるようになったので不要です。
どうしても事情が無い限りはアップデートしましょう。


以下旧バージョンによる情報

背景

起動引数の--proxy-serverにユーザー・パスワード付きにしてもダメだった、、、
追加ソフトなどなしでこれを行いたい事情があるときに、、、
アップデートのたびにこのハックは消えます。

やりかた

対象ファイル
【VSCodeインストールディレクトリルート】\Microsoft VS Code\resources\app\out\vs\code\electron-sandbox\proxy\auth.js
auth.js
window.vscode.ipcRenderer.send("vscode:proxyAuthResponse",{username:"【ユーザー】",password:"【パスワード】"})});

まるっと上書きして、【】をそれぞれ置換します。※気になる人は元ファイルのバックアップ取っておくこと

余談

1.47以前だと100907がマージされてないのでauth.htmlを直いじりで同じ効果が得られるはず
ホントはsettings.jsonあたりから読むようにさせるのが正攻法と思う。
表示自体はされるようで若干入力画面がちらつく

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?