You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A spec is a python function that accepts a single argument, the
339
-
`LanguageServerManager`, and returns a dictionary of the form:
336
+
A spec is a Python callable (a function or class with `__call__` method) that accepts a single argument, the
337
+
`LanguageServerManager` instance, and returns a dictionary of the form:
340
338
341
339
```python
342
340
{
343
341
"python-language-server": { # the name of the implementation
344
-
"version": 1, # the version of the spec schema
342
+
"version": SPEC_VERSION, # the version of the spec schema (an integer)
345
343
"argv": ["python", "-m", "pyls"], # a list of command line arguments
346
344
"languages": ["python"] # a list of languages it supports
347
345
}
348
346
}
349
347
```
350
348
351
-
The absolute minimum listing requires `argv` (a list of shell tokens to launch
352
-
the server) and `languages` (which languages to respond to), but many number of
353
-
other options to enrich the user experience are available in the
354
-
[schema][] and are exercised by the current `entry_points`-based [specs][].
349
+
The above example is only intended as an illustration and not as an up-to-date guide.
350
+
For details on the dictionary contents, see the [schema][] definition and [built-in specs][].
351
+
Basic concepts (meaning of the `argv` and `languages` arguments) are also explained in the [configuration files](./Configuring.ipynb#language_servers) documentation.
0 commit comments