uilint 0.2.154 → 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) {
|
|
@@ -3902,7 +3922,7 @@ async function serve(options) {
|
|
|
3902
3922
|
});
|
|
3903
3923
|
setServerRunning(port);
|
|
3904
3924
|
if (useDashboardUI) {
|
|
3905
|
-
const { renderDashboard } = await import("./render-
|
|
3925
|
+
const { renderDashboard } = await import("./render-XJWB6MVI.js");
|
|
3906
3926
|
const { waitUntilExit } = renderDashboard({
|
|
3907
3927
|
onQuit: () => {
|
|
3908
3928
|
clearInterval(pingInterval);
|
|
@@ -3913,6 +3933,37 @@ async function serve(options) {
|
|
|
3913
3933
|
},
|
|
3914
3934
|
onRebuildIndex: () => {
|
|
3915
3935
|
buildDuplicatesIndex(appRoot);
|
|
3936
|
+
},
|
|
3937
|
+
onClearCache: () => {
|
|
3938
|
+
cache.clear();
|
|
3939
|
+
fastCache.clear();
|
|
3940
|
+
semanticCache.clear();
|
|
3941
|
+
eslintInstances2.clear();
|
|
3942
|
+
eslintFastInstances.clear();
|
|
3943
|
+
updateCacheCount(0);
|
|
3944
|
+
logCacheInvalidate();
|
|
3945
|
+
import("uilint-eslint").then(
|
|
3946
|
+
({ clearCache, clearAllSuggestions }) => {
|
|
3947
|
+
clearCache(wsRoot);
|
|
3948
|
+
clearAllSuggestions(wsRoot);
|
|
3949
|
+
if (appRoot !== wsRoot) {
|
|
3950
|
+
clearCache(appRoot);
|
|
3951
|
+
clearAllSuggestions(appRoot);
|
|
3952
|
+
}
|
|
3953
|
+
}
|
|
3954
|
+
);
|
|
3955
|
+
import("uilint-coverage").then(({ clearCoverageCache }) => {
|
|
3956
|
+
clearCoverageCache();
|
|
3957
|
+
});
|
|
3958
|
+
const coveragePath2 = join3(appRoot, "coverage", "coverage-final.json");
|
|
3959
|
+
if (existsSync5(coveragePath2)) {
|
|
3960
|
+
unlinkSync(coveragePath2);
|
|
3961
|
+
}
|
|
3962
|
+
buildCoverageData(appRoot);
|
|
3963
|
+
import("uilint-duplicates").then(({ clearIndexerCache }) => {
|
|
3964
|
+
clearIndexerCache(appRoot);
|
|
3965
|
+
});
|
|
3966
|
+
buildDuplicatesIndex(appRoot);
|
|
3916
3967
|
}
|
|
3917
3968
|
});
|
|
3918
3969
|
await waitUntilExit();
|