Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TwIStOy committed Feb 11, 2024
1 parent 1d243f5 commit b15630b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/ht/version.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local M = {}

M.last_updated_time = '2024.02.10'
M.last_updated_time = '2024.02.12'

return M
5 changes: 4 additions & 1 deletion src/core/model/ext_tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface LocalToolOpt {
/**
* Absolute path of tool.
*/
command: string[];
command: string[] | (() => any);
}

export interface AbsolutePathToolOpt {
Expand Down Expand Up @@ -68,6 +68,9 @@ class ExternalTools implements ExternalToolsOpt {
return this.name;
}
if ("command" in this.exe) {
if (typeof this.exe.command === "function") {
return this.exe.command();
}
return this.exe.command.join(" ");
} else if ("masonPkg" in this.exe) {
return `${HttsContext.getInstance().masonBinRoot}/${this.exe.masonPkg}`;
Expand Down

0 comments on commit b15630b

Please sign in to comment.