Skip to content
Permalink
Browse files

Fix: Add getUserConfig to the try/catch block

Fix #3386
  • Loading branch information
sarvaje committed Nov 22, 2019
1 parent f9e9cd2 commit 24f54fd8547d47fe38195109b4b42d1b0aafe22b
Showing with 3 additions and 3 deletions.
  1. +3 −3 packages/extension-vscode/src/utils/analyze.ts
@@ -54,15 +54,15 @@ export class Analyzer {
return null;
}

const userConfig = getUserConfig(hintModule, directory);

try {
const userConfig = getUserConfig(hintModule, directory);

return hintModule.createAnalyzer(userConfig);
} catch (e) {
// Instantiating webhint failed, log the error to the webhint output panel to aid debugging.
console.error(e);

return await promptRetry(this.connection.window, /* istanbul ignore next */ () => {
return await promptRetry(this.connection.window, /* istanbul ignore next */() => {
this.connection.sendNotification(notifications.showOutput);

// We retry with the shared version as it is more likely to not be broken 🤞

0 comments on commit 24f54fd

Please sign in to comment.
You can’t perform that action at this time.