src/vs/workbench/contrib/terminal/browser/terminalTooltip.ts/getShellIntegrationTooltip
export function getShellIntegrationTooltip(instance: ITerminalInstance, markdown?: boolean): string {
	let shellIntegrationString = '';
	const shellIntegrationCapabilities: TerminalCapability[] = [];
	if (instance.capabilities.has(TerminalCapability.CommandDetection)) {
		shellIntegrationCapabilities.push(TerminalCapability.CommandDetection);
	}
	if (instance.capabilities.has(TerminalCapability.CwdDetection)) {
		shellIntegrationCapabilities.push(TerminalCapability.CwdDetection);
	}
	if (shellIntegrationCapabilities.length > 0) {
		shellIntegrationString += `${markdown ? '\n\n---\n\n' : '\n\n'} ${localize('shellIntegration.enabled', "Shell integration is enabled")}`;
		for (const capability of shellIntegrationCapabilities) {
			shellIntegrationString += `\n- ${getCapabilityName(capability)}`;
		}
	}
	return shellIntegrationString;
}