jupyterlab-lsp icon indicating copy to clipboard operation
jupyterlab-lsp copied to clipboard

Settings system

Open krassowski opened this issue 5 years ago • 0 comments

An issue to write down ideas or requests for what options should be included.

As a starting point I imagine that the JSON structure will hold 'general' settings in one key and language-specific overrides (empty by default) in all the following keys.

The settings will be further subdivided by the LSP function. Possibly like that:

{
  "general": {
    "inspections": {},
    "autocompletion": {
        "auto-invoke": true,
        "invoke-after-any": false 
    },
    "highlight-on-cursor": {}
  },
  "python": {
     "inspections": {
        "ignore": ["E222"]
     },
    // specific functions can be disabled by the user by setting false
    // (or maybe 'disable'?)
    "highlight-on-cursor": false
  }
}

Edit - other settings worth to include:

  • [x] whether to display the documentation in the signature suggestion
  • [ ] magic overrides
  • [ ] foreign code extractors (regular expressions)
  • [x] modifier key for the hover action
  • [x] the default inspections severity (when server does not provide one)

krassowski avatar Sep 07 '19 23:09 krassowski