opencode-sonarqube 2.0.2 → 2.0.3
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 +6 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20980,10 +20980,11 @@ ${blockerNote}Use \`sonarqube({ action: "issues" })\` to see details or \`sonarq
|
|
|
20980
20980
|
return;
|
|
20981
20981
|
}
|
|
20982
20982
|
const payload = event.properties;
|
|
20983
|
-
|
|
20984
|
-
|
|
20983
|
+
const sessionId = payload?.info?.id;
|
|
20984
|
+
if (sessionId) {
|
|
20985
|
+
currentSessionId = sessionId;
|
|
20985
20986
|
if (event.type === "session.created") {
|
|
20986
|
-
mapSessionToDirectory(
|
|
20987
|
+
mapSessionToDirectory(sessionId, effectiveDirectory);
|
|
20987
20988
|
}
|
|
20988
20989
|
}
|
|
20989
20990
|
};
|
|
@@ -20992,8 +20993,8 @@ ${blockerNote}Use \`sonarqube({ action: "issues" })\` to see details or \`sonarq
|
|
|
20992
20993
|
return;
|
|
20993
20994
|
}
|
|
20994
20995
|
const payload = event.properties;
|
|
20995
|
-
if (payload?.
|
|
20996
|
-
hooks.fileEdited({ filePath: payload.
|
|
20996
|
+
if (payload?.file && !shouldIgnoreFile2(payload.file)) {
|
|
20997
|
+
hooks.fileEdited({ filePath: payload.file });
|
|
20997
20998
|
}
|
|
20998
20999
|
};
|
|
20999
21000
|
const injectAnalysisResults = async (message, _config, sessionId) => {
|