src/vs/editor/contrib/inlayHints/browser/inlayHintsController.ts/fixSpace
function fixSpace(str: string): string {
	const noBreakWhitespace = '\xa0';
	return str.replace(/[ \t]/g, noBreakWhitespace);
}