src/vs/workbench/contrib/search/browser/replaceService.ts/toFileResource
const toFileResource = (replaceResource: URI): URI => {
	return replaceResource.with({ scheme: JSON.parse(replaceResource.query)['scheme'], fragment: '', query: '' });
};