LSP-typescript
LSP-typescript copied to clipboard
Diagnostics across files within a project
Hey,
I've been using this LSP server with a lot of success on my projects.
There is one feature I think is still missing, which is the ability to use the LSP diagnostics panel to show all errors/warnings across files within a project. To determine if a project has any issues I have to compile the project from outside ST.
I raised the same issue here: https://github.com/sublimelsp/LSP/issues/1803, and the advice was that type of feature would need to be handled by the LSP server in question.
Hope this is enough info.
Cheers
The server itself is at https://github.com/typescript-language-server/typescript-language-server. This package is just a simple wrapper to get it running.
That said, I don't really think https://github.com/typescript-language-server/typescript-language-server can support it. It depends on typescript compiler itself (tsserver
) and I don't see this being an option there.
In any case, feel free to raise this at https://github.com/typescript-language-server/typescript-language-server.
Even though I'm one of the maintainers of that server, I'm not sure if that's possible. Maybe someone else will be able to chime in there.
In any case, feel free to raise this at https://github.com/typescript-language-server/typescript-language-server.
Even though I'm one of the maintainers of that server, I'm not sure if that's possible. Maybe someone else will be able to chime in there.
Sure thing, thanks for the reply.
As I've eventually realized in the linked issue, this is a feature that fits this package more than the actual server.
Cool! Look forward to some more discussions :)
Opps! just closed this ticket by accident. Apologies!!
Sounds like a job for a Build System? https://www.sublimetext.com/docs/build_systems.html
That would probably not provide a great experience since it would pop up the panel on starting each build rather than only showing a panel on there being a build errors.
So probably it would have to be some custom command similar to an example in the documentation. And not necessarily tied to the build system.
Related issue https://github.com/sublimelsp/LSP/issues/1868
Related issue sublimelsp/LSP#1868
That issue is quite interesting, it seems that the PR which was created off the back of that has been merged and should provide diagnostics across a project. I've tried updating my packages but I'm not experiencing this change, can anyone else confirm?
That's not gonna help here as the server doesn't report diagnostics for the whole project in the first place.
That's not gonna help here as the server doesn't report diagnostics for the whole project in the first place.
Ah of course! Apologies for any confusion caused.
tsc --no-emit
reports type errors across the project, would it be possible to get these kinds of results through LSP and be able to navigate to each issue or apply code actions to them?