isSupportedVSCodeTerminal method
Check if running in a supported VSCode terminal.
Implementation
bool isSupportedVSCodeTerminal() {
final terminal = Platform.environment['TERM_PROGRAM'];
if (terminal == null) return false;
try {
final ideType = IdeType.values.firstWhere((e) => e.name == terminal);
return isVSCodeIde(ideType);
} catch (_) {
return false;
}
}