Lsp

class Lsp

Syside LSP options.

Members defined in Lsp (4 members)

completion_limit

RW

The maximum number of completions shown in the autocomplete dropdown.

edit

RW

Document tiers treated as editable, affecting the renaming feature, and diagnostics:

inlay_hints

RW

Options for inlay hints.

__init__

Attributes

property completion_limit: int

The maximum number of completions shown in the autocomplete dropdown.

Setting this to 0 will 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 toggle properties 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.enabled configuration option. It is recommended to set it to onUnlessPressed or offUnlessPressed to 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 are Ctrl + Alt on Windows and Linux, and Control + Option on macOS.

Methods

__init__() None