coc-sonarlint 0.0.11 → 0.0.12
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/lib/index.js +14 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -14091,8 +14091,20 @@ function deactivate() {
|
|
|
14091
14091
|
}
|
|
14092
14092
|
async function showRulesView(title) {
|
|
14093
14093
|
allRulesView.title = title;
|
|
14094
|
-
if (
|
|
14095
|
-
|
|
14094
|
+
if (allRulesView?.visible) {
|
|
14095
|
+
const winId = allRulesView.windowId;
|
|
14096
|
+
const tabnr = await import_coc3.nvim.call("tabpagenr");
|
|
14097
|
+
const buflist = await import_coc3.nvim.call("tabpagebuflist", [tabnr]);
|
|
14098
|
+
const bufId = await import_coc3.nvim.call("winbufnr", [winId]);
|
|
14099
|
+
const found = buflist.find((bufnr) => {
|
|
14100
|
+
return bufId == bufnr;
|
|
14101
|
+
});
|
|
14102
|
+
if (!found) {
|
|
14103
|
+
await import_coc3.nvim.call("coc#window#close", [winId]);
|
|
14104
|
+
await allRulesView?.show("botright 10split");
|
|
14105
|
+
}
|
|
14106
|
+
} else if (!allRulesView?.visible) {
|
|
14107
|
+
await allRulesView?.show("botright 10split");
|
|
14096
14108
|
}
|
|
14097
14109
|
}
|
|
14098
14110
|
function logWithPrefix(data, prefix) {
|