aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Czihak <git@dcz.at>2026-05-08 18:19:59 +0200
committerDavid Czihak <git@dcz.at>2026-05-08 18:19:59 +0200
commit43998c873659e0d2d2df2eac8725db4c43f5446b (patch)
treea8776759bca3fb760ddc0675df6be3950cde4119
parent228d40e664c8dc2e48759b855d303e590f02920d (diff)
Refactor: Delete issue assistant class
The issue assistant was used to suppress the warning that no extension supports issue reporting for zig files. Let’s see if it looks fine without – maybe I will bring it back later. For now, less code.
-rw-r--r--Scripts/main.js35
1 files changed, 0 insertions, 35 deletions
diff --git a/Scripts/main.js b/Scripts/main.js
index 8515873..a98dfef 100644
--- a/Scripts/main.js
+++ b/Scripts/main.js
@@ -20,14 +20,12 @@ const CONFIG_KEYS = {
let languageServer = null;
let taskAssistant = null;
-let issueAssistant = null;
let commandRegistrations = [];
exports.activate = function activate() {
registerCommands();
taskAssistant = new ZigTaskAssistant();
languageServer = new ZigLanguageServer();
- issueAssistant = new ZigIssueAssistant();
};
exports.deactivate = function deactivate() {
@@ -41,11 +39,6 @@ exports.deactivate = function deactivate() {
taskAssistant = null;
}
- if (issueAssistant) {
- issueAssistant.dispose();
- issueAssistant = null;
- }
-
commandRegistrations.forEach((disposable) => {
if (disposable && typeof disposable.dispose === "function") {
disposable.dispose();
@@ -1162,31 +1155,3 @@ class ZigTaskAssistant {
return action;
}
}
-
-class ZigIssueAssistant {
- constructor() {
- this.disposable = nova.assistants.registerIssueAssistant(
- [{ syntax: "zig" }],
- this,
- { event: "onChange" }
- );
- }
-
- dispose() {
- if (this.disposable && typeof this.disposable.dispose === "function") {
- this.disposable.dispose();
- this.disposable = null;
- }
- }
-
- provideIssues(editor) {
- if (!editor || !editor.document) {
- return [];
- }
-
- // Nova's LanguageClient already owns core LSP publishDiagnostics handling.
- // Registering an issue assistant here tells Nova that Zig supports live
- // checking, so the Problems UI doesn't show a misleading empty-state banner.
- return [];
- }
-}