You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix handling of unknown Linux distributions (#912)
This checkin fixes the behavior of the C# extension if we are on a Linux distribution that we don't understand or support. Before we would attempt to download every different x64 package, and then show a very generic error message.
// We have been activated but it looks like our package was not installed. This is bad.
24
-
logger.appendLine("[ERROR]: C# Extension failed to install the debugger package");
25
-
showInstallErrorMessage();
24
+
PlatformInformation.GetCurrent().then((info)=>{
25
+
if(info.runtimeId){
26
+
logger.appendLine("[ERROR]: C# Extension failed to install the debugger package");
27
+
showInstallErrorMessage();
28
+
}else{
29
+
if(info.isLinux){
30
+
logger.appendLine(`[WARNING]: The current Linux distribution '${info.distribution.name}' version '${info.distribution.version}' is not currently supported by the .NET Core debugger. Debugging will not be available.`);
31
+
}else{
32
+
logger.appendLine(`[WARNING]: The current operating system is not currently supported by the .NET Core debugger. Debugging will not be available.`);
33
+
}
34
+
}
35
+
},(err)=>{
36
+
// Somehow we couldn't figure out the platform we are on
37
+
logger.appendLine("[ERROR]: C# Extension failed to install the debugger package");
0 commit comments