Skip to content

Commit

Permalink
Disable serialization by returning undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Jun 15, 2021
1 parent 52d8d8e commit 56501c5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/vs/workbench/contrib/terminal/browser/terminalEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 56501c5

Please sign in to comment.