src/vs/workbench/browser/parts/editor/editorWithViewState.ts/AbstractEditorWithViewState/clearInput
class AbstractEditorWithViewState:	override clearInput(): void {

		// Preserve current input view state before clearing
		this.updateEditorViewState(this.input);

		super.clearInput();
	}