src/vs/workbench/browser/parts/editor/editorPane.ts/EditorMemento/clearEditorState
class EditorMemento:	clearEditorState(resourceOrEditor: URI | EditorInput, group?: IEditorGroup): void {
		if (resourceOrEditor instanceof EditorInput) {
			this.editorDisposables?.delete(resourceOrEditor);
		}

		const resource = this.doGetResource(resourceOrEditor);
		if (resource) {
			const cache = this.doLoad();

			if (group) {
				const resourceViewState = cache.get(resource.toString());
				if (resourceViewState) {
					delete resourceViewState[group.id];

					if (isEmptyObject(resourceViewState)) {
						cache.delete(resource.toString());
					}
				}
			} else {
				cache.delete(resource.toString());
			}
		}
	}