Closed Spiker985 closed 1 year ago
I would be possible, BUT - at least clojure-lsp, rust-analyzer and clangd all expect to see some specific files on the workspace path. So, while it would allow you to run the LSP server, it will probably not be useful and it'll report weird, invalid, and confusing things...
It looks like the init-lsp function uses the project directory to set the
workspaceFolders
for the lsp server.It may make sense to fall back to
atom.workspace.getActiveTextEditor().getDirectoryPath()
andatom.workspace.getActiveTextEditor().getFileName()
ifatom.project.getPaths()
is empty - in the event that someone only has a single file open, but would still like to use a LSP.