Don't persist terminals for now
This commit is contained in:
parent
d0f6cbb02d
commit
42390da097
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue