Skip to content

Conversation

@rixo
Copy link
Contributor

@rixo rixo commented Dec 8, 2021

Hey!

I surmise you haven't used Atom in a while...

I have made a series of adjustments to bring this extension up to speed with the latest Svelte Language Server.

With this fixes, the following capabilities of the language server have been restored in my Atom:

  • Typescript support (diagnostic/linter, data tips)
  • References

The changes I've made are the following:

  • Upgrade to latest language server

  • Workaround incomplete workspaceFolders: this fixes detection of tsconfig.json by the language server, hence provide enhanced TS support

  • Upgrade to latest atom-languageclient, which seemingly makes the previous fix useless 😅

  • Spawn the language server process with the system Node, if available, instead of the Electron's embedded one, to fix loading of svelte.config.js

I have also added a note in the README that this package maintenance has resumed, since it hadn't been updated in a while...

@dummdidumm
Copy link
Member

I think we should also look at updating the syntax highlighting which might fix #8 . For that you could go over to language-tools and generate a JSON file from the YAML file and copy over the result - hope this would be enough to do that.

@rixo
Copy link
Contributor Author

rixo commented Dec 21, 2021

Yes, fixing syntax highlighting is a very priority too. It's really a bummer when you have to chose between the right syntax for the job and preserving syntax highlighting for the rest of your file.

@dummdidumm We merge this, and I'll open a new PR for syntax highlighting if I manage to get it up to date?

@dummdidumm
Copy link
Member

Sounds good!

@rixo rixo merged commit 8088500 into sveltejs:master Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants