From 42390da0978b544679fdcd0be5c4573631d52c34 Mon Sep 17 00:00:00 2001 From: Asher Date: Thu, 19 Nov 2020 15:13:46 -0600 Subject: [PATCH] Don't persist terminals for now --- ci/dev/vscode.patch | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/ci/dev/vscode.patch b/ci/dev/vscode.patch index 0bcec08e9..f6af1c227 100644 --- a/ci/dev/vscode.patch +++ b/ci/dev/vscode.patch @@ -1466,10 +1466,10 @@ index 0000000000000000000000000000000000000000..6ce56bec114a6d8daf5dd3ded945ea78 +} diff --git a/src/vs/server/node/channel.ts b/src/vs/server/node/channel.ts new file mode 100644 -index 0000000000000000000000000000000000000000..769d57953e782b7a72519599274630236114b17d +index 0000000000000000000000000000000000000000..693174ee0d21353c3a08a42fd30eaad1e95c3b9d --- /dev/null +++ b/src/vs/server/node/channel.ts -@@ -0,0 +1,889 @@ +@@ -0,0 +1,897 @@ +import { field, logger } from '@coder/logger'; +import { Server } from '@coder/node-browser'; +import * as os from 'os'; @@ -1976,6 +1976,11 @@ index 0000000000000000000000000000000000000000..769d57953e782b7a7251959927463023 + data, + }); + ++ // No need to store data if we aren't persisting. ++ if (!this.persist) { ++ return; ++ } ++ + this.replayData.push(data); + this.totalReplayData += data.length; + @@ -2025,7 +2030,10 @@ index 0000000000000000000000000000000000000000..769d57953e782b7a7251959927463023 + this.cols = args.cols; + this.rows = args.rows; + -+ this.persist = args.shouldPersistTerminal; ++ // TODO: Don't persist terminals until we make it work with things like ++ // htop, vim, etc. ++ // this.persist = args.shouldPersistTerminal; ++ this.persist = false; + + this.process = new TerminalProcess( + config,