aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-core/process.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-07-14 17:27:12 +0200
committerGitHub <noreply@github.com>2022-07-14 17:27:12 +0200
commit63de62cd0b0b53c5946d67ee2a3c2dac16379707 (patch)
tree54d69e3bc51370787dfef71856747727ed5a84d5 /lua/mason-core/process.lua
parentfix(arduino_language_server): fix Windows asset files (#72) (diff)
downloadmason-63de62cd0b0b53c5946d67ee2a3c2dac16379707.tar
mason-63de62cd0b0b53c5946d67ee2a3c2dac16379707.tar.gz
mason-63de62cd0b0b53c5946d67ee2a3c2dac16379707.tar.bz2
mason-63de62cd0b0b53c5946d67ee2a3c2dac16379707.tar.lz
mason-63de62cd0b0b53c5946d67ee2a3c2dac16379707.tar.xz
mason-63de62cd0b0b53c5946d67ee2a3c2dac16379707.tar.zst
mason-63de62cd0b0b53c5946d67ee2a3c2dac16379707.zip
chore: change emmylua annotation syntax from @ to : for comments (#73)
Diffstat (limited to 'lua/mason-core/process.lua')
-rw-r--r--lua/mason-core/process.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/lua/mason-core/process.lua b/lua/mason-core/process.lua
index fd4eb94f..0c72aa2b 100644
--- a/lua/mason-core/process.lua
+++ b/lua/mason-core/process.lua
@@ -34,7 +34,7 @@ end
-- Also, there's no particular reason we need to refresh the environment (yet).
local initial_environ = vim.fn.environ()
----@param new_paths string[] @A list of paths to prepend the existing PATH with.
+---@param new_paths string[]: A list of paths to prepend the existing PATH with.
function M.extend_path(new_paths)
local new_path_str = table.concat(new_paths, platform.path_sep)
return ("%s%s%s"):format(new_path_str, platform.path_sep, initial_environ.PATH or "")
@@ -87,15 +87,15 @@ end
---@alias JobSpawnCallback fun(success: boolean, exit_code: integer, signal: integer)
---@class JobSpawnOpts
----@field env string[] @List of "key=value" string.
+---@field env string[]: List of "key=value" string.
---@field args string[]
---@field cwd string
---@field stdio_sink StdioSink
----@param cmd string @The command/executable.
+---@param cmd string: The command/executable.
---@param opts JobSpawnOpts
---@param callback JobSpawnCallback
----@return luv_handle,luv_pipe[],integer @Returns the job handle and the stdio array on success, otherwise returns nil.
+---@return luv_handle,luv_pipe[],integer: Returns the job handle and the stdio array on success, otherwise returns nil.
function M.spawn(cmd, opts, callback)
local stdin = uv.new_pipe(false)
local stdout = uv.new_pipe(false)