aboutsummaryrefslogtreecommitdiff
path: root/Scripts/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'Scripts/main.js')
-rw-r--r--Scripts/main.js58
1 files changed, 0 insertions, 58 deletions
diff --git a/Scripts/main.js b/Scripts/main.js
index 76bd816..1058dfe 100644
--- a/Scripts/main.js
+++ b/Scripts/main.js
@@ -609,16 +609,12 @@ class ZigTaskAssistant {
return this.resolveBuildRunAction(config, cwd);
case "build-run-terminal":
return this.resolveBuildRunTerminalAction(config, cwd);
- case "build-test":
- return this.resolveBuildTestAction(config, cwd);
case "current-file-run":
return this.resolveCurrentFileRunAction();
case "current-file-clean":
return this.resolveCurrentFileCleanAction();
case "debug":
return this.resolveDebugAction(config, cwd);
- case "file-test":
- return this.resolveFileTestAction(config, cwd);
default:
return null;
}
@@ -738,30 +734,6 @@ class ZigTaskAssistant {
});
}
- async resolveBuildTestAction(config, cwd) {
- const zigPath = await resolveExecutable(CONFIG_KEYS.zigPath, "zig");
- if (!zigPath) {
- nova.workspace.showWarningMessage(
- localizedText(
- "warning.zig.not_found",
- "Zig was not found. Install it or set a Zig executable path in Zig extension settings."
- )
- );
- return null;
- }
-
- const step =
- getTaskConfigValue(config, "testStep") || getTaskConfigValue(config, "step") || "test";
- const args = ["build", ...getTaskArgs(config, "buildArgs"), step];
- const testArgs = getTaskArgs(config, "testArgs");
-
- if (testArgs.length > 0) {
- args.push("--", ...testArgs);
- }
-
- return this.createAction(zigPath, args, cwd);
- }
-
async resolveCurrentFileRunAction() {
const zigPath = await resolveExecutable(CONFIG_KEYS.zigPath, "zig");
if (!zigPath) {
@@ -854,36 +826,6 @@ class ZigTaskAssistant {
return action;
}
-
- async resolveFileTestAction(config, cwd) {
- const zigPath = await resolveExecutable(CONFIG_KEYS.zigPath, "zig");
- if (!zigPath) {
- nova.workspace.showWarningMessage(
- localizedText(
- "warning.zig.not_found",
- "Zig was not found. Install it or set a Zig executable path in Zig extension settings."
- )
- );
- return null;
- }
-
- const configuredPath = getTaskConfigValue(config, "filePath");
- const filePath = configuredPath
- ? resolveWorkspaceRelativePath(configuredPath)
- : activeZigFilePath();
-
- if (!filePath) {
- nova.workspace.showWarningMessage(
- localizedText(
- "warning.file_test.choose_file",
- "Choose a Zig file for this task or focus a Zig editor before running Zig File Test."
- )
- );
- return null;
- }
-
- return this.createAction(zigPath, ["test", filePath, ...getTaskArgs(config, "zigArgs")], cwd);
- }
}
class ZigIssueAssistant {