fix: distinguish id of owned/not owned workspaces

This commit is contained in:
əlemi 2024-09-28 01:24:04 +02:00
parent b4e4d302bd
commit 5d2f7fa2c7
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -35,8 +35,10 @@ end
---@param expanded? boolean if node should be pre-expanded ---@param expanded? boolean if node should be pre-expanded
---@return NuiTree.Node ---@return NuiTree.Node
local function new_workspace(name, owned, expanded) local function new_workspace(name, owned, expanded)
local owned_ext = ""
if owned then owned_ext = "_owned" end
return { return {
id = "codemp://" .. name .. "/workspace", id = "codemp://" .. name .. "/workspace" .. owned_ext,
name = name, name = name,
type = "workspace", type = "workspace",
extra = { extra = {