src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.ts/UntitledFileWorkingCopyManager/massageOptions
class UntitledFileWorkingCopyManager:	private massageOptions(options: IInternalUntitledFileWorkingCopyOptions): IInternalUntitledFileWorkingCopyOptions {
		const massagedOptions: IInternalUntitledFileWorkingCopyOptions = Object.create(null);

		// Handle associcated resource
		if (options.associatedResource) {
			massagedOptions.untitledResource = URI.from({
				scheme: Schemas.untitled,
				authority: options.associatedResource.authority,
				fragment: options.associatedResource.fragment,
				path: options.associatedResource.path,
				query: options.associatedResource.query
			});
			massagedOptions.associatedResource = options.associatedResource;
		}

		// Handle untitled resource
		else if (options.untitledResource?.scheme === Schemas.untitled) {
			massagedOptions.untitledResource = options.untitledResource;
		}

		// Take over initial value
		massagedOptions.contents = options.contents;

		return massagedOptions;
	}