mirror of
https://github.com/cdr/code-server.git
synced 2025-12-07 00:44:31 +01:00
* Fix syntax highlighting, process spawning, extensions, terminals * Replace colons in toISOString * Move pathSets included in task
29 lines
632 B
TypeScript
29 lines
632 B
TypeScript
export interface SendableConnection {
|
|
send(data: Buffer | Uint8Array): void;
|
|
}
|
|
|
|
export interface ReadWriteConnection extends SendableConnection {
|
|
onMessage(cb: (data: Uint8Array | Buffer) => void): void;
|
|
onClose(cb: () => void): void;
|
|
close(): void;
|
|
}
|
|
|
|
export enum OperatingSystem {
|
|
Windows,
|
|
Linux,
|
|
Mac,
|
|
}
|
|
|
|
export interface InitData {
|
|
readonly os: OperatingSystem;
|
|
readonly dataDirectory: string;
|
|
readonly workingDirectory: string;
|
|
readonly homeDirectory: string;
|
|
readonly tmpDirectory: string;
|
|
readonly shell: string;
|
|
}
|
|
|
|
export interface ISharedProcessData {
|
|
readonly socketPath: string;
|
|
readonly logPath: string;
|
|
}
|