mirror of
https://github.com/coder/code-server.git
synced 2026-05-05 12:05:18 +02:00
feat: apply patch after setting up subtree
This commit is contained in:
@@ -11,6 +11,8 @@ import { IWindowOpenable, IOpenWindowOptions } from 'vs/platform/windows/common/
|
||||
import { URI } from 'vs/base/common/uri';
|
||||
import { hasWorkspaceFileExtension } from 'vs/platform/workspaces/common/workspaces';
|
||||
import { ILogService } from 'vs/platform/log/common/log';
|
||||
import { join } from 'vs/base/common/path';
|
||||
import { tmpdir } from 'os';
|
||||
|
||||
export interface OpenCommandPipeArgs {
|
||||
type: 'open';
|
||||
@@ -58,6 +60,11 @@ export class CLIServerBase {
|
||||
}
|
||||
|
||||
private async setup(): Promise<string> {
|
||||
// NOTE@coder: Write this out so we can get the most recent path.
|
||||
fs.promises.writeFile(join(tmpdir(), 'vscode-ipc'), this._ipcHandlePath).catch((error) => {
|
||||
this.logService.error(error);
|
||||
});
|
||||
|
||||
try {
|
||||
this._server.listen(this.ipcHandlePath);
|
||||
this._server.on('error', err => this.logService.error(err));
|
||||
|
||||
Reference in New Issue
Block a user