mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-17 05:41:07 +01:00
ebfa4b0c3c
This is the CLI side of enabling compression of servermsg's sent over the socket. It is feature-detected by the CLI sending protocolVersion=2. If present, the consumer can request compression by passing `compress:true` when setting up the server. In this mode, servermsg's are an inflate/deflate stream. Not a ton of code here, but was lots of fun tweaking to get it right :) Fixes https://github.com/microsoft/vscode/issues/163688
27 lines
860 B
Rust
27 lines
860 B
Rust
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
pub mod code_server;
|
|
pub mod dev_tunnels;
|
|
pub mod legal;
|
|
pub mod paths;
|
|
|
|
mod socket_signal;
|
|
mod control_server;
|
|
mod name_generator;
|
|
mod port_forwarder;
|
|
mod protocol;
|
|
#[cfg_attr(unix, path = "tunnels/server_bridge_unix.rs")]
|
|
#[cfg_attr(windows, path = "tunnels/server_bridge_windows.rs")]
|
|
mod server_bridge;
|
|
mod service;
|
|
#[cfg(target_os = "windows")]
|
|
mod service_windows;
|
|
|
|
pub use control_server::serve;
|
|
pub use service::{
|
|
create_service_manager, ServiceContainer, ServiceManager, SERVICE_LOG_FILE_NAME,
|
|
};
|