mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(workspaces): use existing workspace on project switch
A "workspace already exists" error is thrown if trying to switch to project workspace that already exists. This changes it to switch to the workspace instead. Fix: #8368
This commit is contained in:
@ -583,7 +583,9 @@ This be hooked to `projectile-after-switch-project-hook'."
|
|||||||
proot))))
|
proot))))
|
||||||
(push (pop pre) post))
|
(push (pop pre) post))
|
||||||
(unless pre ws))))
|
(unless pre ws))))
|
||||||
(ws (or ws (+workspace-new pname))))
|
(ws (or ws
|
||||||
|
(+workspace-get pname t)
|
||||||
|
(+workspace-new pname))))
|
||||||
(set-persp-parameter ws-param proot ws)
|
(set-persp-parameter ws-param proot ws)
|
||||||
(+workspace-switch pname)
|
(+workspace-switch pname)
|
||||||
(with-current-buffer (doom-fallback-buffer)
|
(with-current-buffer (doom-fallback-buffer)
|
||||||
|
Reference in New Issue
Block a user