From 56501c57f5361139ea90a47443c2cd0f491aa3cd Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Tue, 15 Jun 2021 06:50:21 -0700 Subject: [PATCH] Disable serialization by returning undefined --- .../workbench/contrib/terminal/browser/terminalEditor.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/contrib/terminal/browser/terminalEditor.ts b/src/vs/workbench/contrib/terminal/browser/terminalEditor.ts index 41c2fa10524f7..4d56e93594f7f 100644 --- a/src/vs/workbench/contrib/terminal/browser/terminalEditor.ts +++ b/src/vs/workbench/contrib/terminal/browser/terminalEditor.ts @@ -70,12 +70,13 @@ export class TerminalInputSerializer implements IEditorInputSerializer { return false; } - public serialize(editorInput: TerminalEditorInput): string { - return ''; + public serialize(editorInput: TerminalEditorInput): string | undefined { + return undefined; + // return editorInput.terminalInstance.instanceId.toString(); } public deserialize(instantiationService: IInstantiationService, serializedEditorInput: string): TerminalEditorInput { + // TODO: Attach to instanceId via pty service throw new Error('NYI'); - // return TerminalEditorInput.copy(instantiationService); } }