Commit graph

6 commits

Author SHA1 Message Date
Connor Peet 1fe8359ed0
cli: implement 'server of server' for a local web server (#191014)
Closes https://github.com/microsoft/vscode/issues/168492

This implements @aeschli's 'server server' concept in a new
`code serve-web` command.

Command line args are similar to the standalone web server. The first
time a user hits that page, the latest version of the VS Code web server
will be downloaded and run. Thanks to Martin's previous PRs, all
resources the page requests are prefixed with `/<quality-<commit>`.

The latest release version is cached, but when the page is loaded again
and there's a new release, a the new server version will be downloaded
and started up.

Behind the scenes the servers all listen on named pipes/sockets and the
CLI acts as a proxy server to those sockets. Servers without connections
for an hour will be shut down automatically.
2023-08-22 17:29:51 -07:00
Johannes Rieken 3ab9550686 fix #66135 2019-01-07 10:45:13 +01:00
Johannes Rieken 3e6a5fe47e tweak snippet 2018-11-07 16:52:02 +01:00
Johannes Rieken ffcd4f5f9c no more 'use strict' 2018-10-24 15:24:54 +02:00
Johannes Rieken c2d0322c42 more shared snippets 2018-10-01 17:58:56 +02:00
Johannes Rieken a5a1f74d0e add shared snippet file, add copyright header statement 2018-09-24 15:25:51 +02:00