isVSCodeInstalled method
Check if VS Code is installed.
Implementation
Future<bool> isVSCodeInstalled() async {
try {
final result = await Process.run('code', ['--help']);
return result.exitCode == 0 &&
(result.stdout as String?)?.contains('Visual Studio Code') == true;
} catch (_) {
return false;
}
}