src/vs/workbench/common/editor.ts/isEditorInputWithOptions
export function isEditorInputWithOptions(obj: unknown): obj is IEditorInputWithOptions {
	const editorInputWithOptions = obj as IEditorInputWithOptions | undefined;

	return !!editorInputWithOptions && !!editorInputWithOptions.editor;
}