src/vs/workbench/api/common/extHostTypes.ts/WorkspaceEdit/set
class WorkspaceEdit:	set(uri: URI, edits: TextEdit[] | unknown): void {
		if (!edits) {
			// remove all text edits for `uri`
			for (let i = 0; i < this._edits.length; i++) {
				const element = this._edits[i];
				if (element._type === FileEditType.Text && element.uri.toString() === uri.toString()) {
					this._edits[i] = undefined!; // will be coalesced down below
				}
			}
			coalesceInPlace(this._edits);
		} else {
			// append edit to the end
			for (const edit of edits as TextEdit[] | NotebookEdit[]) {
				if (edit) {
					if (NotebookEdit.isNotebookCellEdit(edit)) {
						if (edit.newCellMetadata) {
							this.replaceNotebookCellMetadata(uri, edit.range.start, edit.newCellMetadata);
						} else if (edit.newNotebookMetadata) {
							this.replaceNotebookMetadata(uri, edit.newNotebookMetadata);
						} else {
							this.replaceNotebookCells(uri, edit.range, edit.newCells);
						}
					} else {
						this._edits.push({ _type: FileEditType.Text, uri, edit });
					}
				}
			}
		}
	}