Skip to content

Commit

Permalink
fix: always diagnose plugins from an empty modules cache
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Apr 14, 2023
1 parent d12c951 commit c1fed7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/manifestDiagnostics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { isManifestPluginValidationEnabled } from './settings';
import { debug } from './utils/debug';
import { getDocumentRange } from './utils/json';
import { ExpoDiagnosticsProvider } from './utils/vscode';
import { resetModuleFrom } from './utils/module';

const log = debug.extend('manifest-diagnostics');

Expand Down Expand Up @@ -84,6 +85,7 @@ function diagnosePlugin(document: vscode.TextDocument, project: ExpoProject, plu
}

try {
resetModuleFrom(project.root, nameValue);
resolvePluginFunctionUnsafe(project.root, nameValue);
} catch (error) {
const issue = new vscode.Diagnostic(
Expand Down

0 comments on commit c1fed7d

Please sign in to comment.