uilint 0.2.155 → 0.2.156

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2729,6 +2729,26 @@ async function runSemanticAnalysisAsync(filePath, ws, requestId) {
2729
2729
  );
2730
2730
  if (cached) {
2731
2731
  logSemanticSkipped(filePath, "cache fresh");
2732
+ if (cached.issues.length > 0) {
2733
+ const projectCwd = findESLintCwd2(fileDir);
2734
+ const dataLocFile = normalizeDataLocFilePath2(absolutePath, projectCwd);
2735
+ const lintIssues = cached.issues.map((issue) => ({
2736
+ ruleId: issue.ruleId,
2737
+ severity: issue.severity,
2738
+ message: issue.message,
2739
+ line: issue.line,
2740
+ column: issue.column || 0,
2741
+ nodeType: null,
2742
+ source: null,
2743
+ dataLoc: `${dataLocFile}:${issue.line}:${issue.column || 0}`
2744
+ }));
2745
+ sendMessage(ws, {
2746
+ type: "lint:result",
2747
+ filePath,
2748
+ requestId,
2749
+ issues: lintIssues
2750
+ });
2751
+ }
2732
2752
  return;
2733
2753
  }
2734
2754
  if (semanticIdleResetTimer) {