sublimelsp / LSP-elixir

Elixir support for Sublime LSP plugin

Home Page:https://lsp.sublimetext.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set up default settings

rwols opened this issue · comments

I'm seeing this message:

:: <-  elixir window/showMessage: {'type': 3, 'message': 'Did not receive workspace/didChangeConfiguration notification after 5 seconds. Using default settings.'}

If you set up settings in the "settings" entry of LSP-elixir.sublime-settings, they will be sent with workspace/didChangeConfiguration. It will allow users to customize them, too.

Done. Thanks for the report. Had some trouble finding what the settings exist. I'll bring it up with elixir-ls people.

Usually what language server maintainers do is to make a list of the settings in their README like this:

"elixirLS.dialyzerEnabled": true,
"elixirLS.dialyzerWarnOpts": [],
"elixirLS.dialyzerFormat": "dialyxir_long"

You've turned this path-notation for keys into python dicts, but note that for ST4 you can take these path-notation keys and literally paste them into the "settings" dict (the dict-style turned out to be awkward and managing user-overrides has a lot of gotchas and pitfalls).

OK, makes sense to use the dot notation. Is this documented anywhere?

I've chosen the dicts since that's what all other projects seem to use.

@rwols Wait, will the dot notation work in ST3?

The dot notation won't work for ST3 :)

Sigh. 👌 I'll revert it for now.

Also yeah, I'll update the docs about this. There are already examples of this in https://github.com/sublimelsp/LSP/blob/st4000-exploration/docs/index.md (see dockerfile, julia, python). But "settings" should have its own section with some clear explanation and examples.

Thanks for the help, I'll read through that.

It's taking me a long time to get up to speed with sublime package dev. It's not that well documented for 3, let alone 4. That's what you get when you work with closed source I guess.