We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa7b91a commit 5d39f6dCopy full SHA for 5d39f6d
editors/code/src/installation/language_server.ts
@@ -105,10 +105,13 @@ export async function ensureLanguageServerBinary(
105
`GitHub repository: ${err.message}`
106
);
107
108
- dns.resolve('www.google.com').catch(err => {
109
- console.error("DNS resolution failed, there might be an issue with Internet availability");
110
- console.error(err);
111
- });
+ dns.resolve('www.google.com').then(
+ addrs => console.log("DNS resolution was successful", addrs),
+ err => {
+ console.error("DNS resolution failed, there might be an issue with Internet availability");
112
+ console.error(err);
113
+ }
114
+ );
115
116
return null;
117
}
0 commit comments