VSCodeはWeb サーバーで動作できる



`code serve-web`を打つとVSCodeがHTTPサーバーとして起動する。


![vscode.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/230043/815f4a81-fc34-b8dd-1fbf-ee2538e111d5.png)



ここまでログが出るとアクセスできる


```
*
* Visual Studio Code Server
*
* By using the software, you agree to
* the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
* the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
*
Web UI available at http://127.0.0.1:8000?tkn=d36cc2b5-c493-495c-a08d-451be3f37a40
[2024-03-15 13:15:58] info Downloading server 863d2581ecda6849923a2118d93a088b0745d9d6
[2024-03-15 13:16:22] info Starting server 863d2581ecda6849923a2118d93a088b0745d9d6
[2024-03-15 13:16:26] info [863d258 stdout]: *
[2024-03-15 13:16:26] info [863d258 stdout]: * Visual Studio Code Server
[2024-03-15 13:16:26] info [863d258 stdout]: *
[2024-03-15 13:16:26] info [863d258 stdout]: * By using the software, you agree to
[2024-03-15 13:16:26] info [863d258 stdout]: * the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
[2024-03-15 13:16:26] info [863d258 stdout]: * the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
[2024-03-15 13:16:26] info [863d258 stdout]: *
[2024-03-15 13:16:26] info [863d258 stdout]: Server bound to \\.\pipe\code-2360258a-6e00-42b1-9087-9bdf2fad039a
[2024-03-15 13:16:26] info [863d258 stdout]: Extension host agent listening on \\.\pipe\code-2360258a-6e00-42b1-9087-9bdf2fad039a
[2024-03-15 13:16:26] info [863d258 stdout]:
[2024-03-15 13:16:27] info [863d258 stdout]: [13:16:27]
[2024-03-15 13:16:27] info [863d258 stdout]:
[2024-03-15 13:16:27] info [863d258 stdout]:
[2024-03-15 13:16:27] info [863d258 stdout]:
[2024-03-15 13:16:27] info [863d258 stdout]:
[2024-03-15 13:16:27] info [863d258 stdout]: [13:16:27] Extension host agent started.
[2024-03-15 13:16:27] info [863d258 stdout]: [13:16:27] Started initializing default profile extensions in extensions installation folder. file:///c%3A/Users/user/.vscode-server/extensions
[2024-03-15 13:16:27] info [863d258 stdout]: [13:16:27] Completed initializing default profile extensions in extensions installation folder. file:///c%3A/Users/user/.vscode-server/extensions
[2024-03-15 13:16:30] info [863d258 stdout]: [13:16:30] [<unknown>][aab214a9][ManagementConnection] New connection established.
[2024-03-15 13:16:30] info [863d258 stdout]: [13:16:30] [<unknown>][e2700a7c][ExtensionHostConnection] New connection established.
[2024-03-15 13:16:30] info [863d258 stdout]: [13:16:30] [<unknown>][e2700a7c][ExtensionHostConnection] <20132> Launched Extension Host Process.
[2024-03-15 13:16:32] info [863d258 stdout]: [13:16:32] Installing extensions...
[2024-03-15 13:16:33] info [863d258 stdout]: [13:16:33] Installing extension 'ms-ceintl.vscode-language-pack-ja'...
[2024-03-15 13:16:33] info [863d258 stdout]: [13:16:33] Getting Manifest... ms-ceintl.vscode-language-pack-ja
[2024-03-15 13:16:33] info [863d258 stdout]: [13:16:33] Installing extension: ms-ceintl.vscode-language-pack-ja
[2024-03-15 13:16:36] info [863d258 stdout]: [13:16:36] Extension signature is verified: ms-ceintl.vscode-language-pack-ja
[2024-03-15 13:16:38] info [863d258 stdout]: [13:16:38] Extracted extension to file:///c%3A/Users/user/.vscode-server/extensions/ms-ceintl.vscode-language-pack-ja-1.87.2024031309: ms-ceintl.vscode-language-pack-ja
[2024-03-15 13:16:38] info [863d258 stdout]: [13:16:38] Renamed to c:\Users\user\.vscode-server\extensions\ms-ceintl.vscode-language-pack-ja-1.87.2024031309
[2024-03-15 13:16:38] info [863d258 stdout]: [13:16:38] Extracting extension completed. ms-ceintl.vscode-language-pack-ja
[2024-03-15 13:16:38] info [863d258 stdout]: [13:16:38] Adding language packs from the extension ms-ceintl.vscode-language-pack-ja
[2024-03-15 13:16:38] info [863d258 stdout]: [13:16:38] Extension installed successfully: ms-ceintl.vscode-language-pack-ja
[2024-03-15 13:16:38] info [863d258 stdout]: [13:16:38] Extension 'ms-ceintl.vscode-language-pack-ja' v1.87.2024031309 was successfully installed.
[2024-03-15 13:21:44] info [863d258 stdout]: [13:21:44] [<unknown>][aab214a9][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed.
[2024-03-15 13:21:44] info [863d258 stdout]: [13:21:44] [<unknown>][e2700a7c][ExtensionHostConnection] <20132> Extension Host Process exited with code: 0, signal: null.
[2024-03-15 13:22:26] info [863d258 stdout]: [13:22:26] [<unknown>][6e626246][ManagementConnection] New connection established.
[2024-03-15 13:22:26] info [863d258 stdout]: [13:22:26] [<unknown>][b7205d2c][ExtensionHostConnection] New connection established.
[2024-03-15 13:22:26] info [863d258 stdout]: [13:22:26] [<unknown>][b7205d2c][ExtensionHostConnection] <28436> Launched Extension Host Process.
```