Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lua/CopilotChat/config/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,6 @@ return {
utils.schedule_main()
table.insert(lines, '**Logs**: `' .. copilot.config.log_path .. '`')
table.insert(lines, '**History**: `' .. copilot.config.history_path .. '`')
table.insert(lines, '**Temp Files**: `' .. vim.fn.fnamemodify(os.tmpname(), ':h') .. '`')
table.insert(lines, '')

for provider, infolines in pairs(infos) do
Expand Down
19 changes: 19 additions & 0 deletions lua/CopilotChat/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,25 @@ function M.check()
error('setup: not called, required for plugin to work. See `:h CopilotChat-installation`.')
end

start('CopilotChat.nvim [filesystem]')

local testfile = os.tmpname()
local f = io.open(testfile, 'w')
local writable = false
if f then
f:write('test')
f:close()
writable = true
end
if writable then
ok('temp dir: writable (' .. testfile .. ')')
os.remove(testfile)
else
local stat = vim.loop.fs_stat(vim.fn.fnamemodify(testfile, ':h'))
local perms = stat and string.format('%o', stat.mode % 512) or 'unknown'
error('temp dir: not writable. Permissions: ' .. perms .. ' (dir: ' .. vim.fn.fnamemodify(testfile, ':h') .. ')')
end

start('CopilotChat.nvim [commands]')

local curl_version = run_command('curl', '--version')
Expand Down
Loading