Lsp
- class Lsp
Syside LSP options.
Members defined in
Lsp(4 members)
RWThe maximum number of completions shown in the autocomplete dropdown.
RWDocument tiers treated as editable, affecting the renaming feature, and diagnostics:
RWOptions for inlay hints.
Attributes
- property completion_limit: int
The maximum number of completions shown in the autocomplete dropdown.
Setting this to
0will disable any limits. Lower values reduce completion latency.
- property edit: syside.conf.Edit
Document tiers treated as editable, affecting the renaming feature, and diagnostics:
project- allows editing only project files.external- allows editing project files and external libraries except the standard library.all- allows editing all files, including standard library.
- property inlay_hints: syside.conf.InlayHints
Options for inlay hints.
SysML models contain extensive implicit state which is hard to track manually. Inlay hints display some of this state as a virtual text inserted into the code.
While the hints may be useful, there can be a lot of them. Unlike regular text, inlay hints cannot be navigated to via keyboard hence they may make source editing harder and more frustrating. To counter this, this table contains fine-grained editor-agnostic control over which hints are shown, cascading
toggleproperties can be used to control groups of inlay hints.Because inlay hints are a user preference, user-specific configuration is the recommended place for configuring them, either globally or per-project. See config file discovery for more details.
Further, Visual Studio Code contains and
editor.inlayHints.enabledconfiguration option. It is recommended to set it toonUnlessPressedoroffUnlessPressedto have them globally on or off at the press of a button. See Inlay Hints for more details. While not explicitly stated, the default keyboard shortcuts for inlay hints areCtrl + Alton Windows and Linux, andControl + Optionon macOS.
Methods
- __init__() None