Skip to content

Language server expected behavior #2

Description

@jourdain
editor = code.Editor(
  # ...
  lang_config=Path("./lang.yaml"), # Multi instance pointing to same file should reuse the same manager
)
editor.get_language_server_manager() # return instance of lang_server helper
editor.stop_all_language_servers() # ensure all language server stop and close all of their processes.

The YAML should contain the language server command line but also maybe other config information for the client.

Technically, we should support either YAML and JSON.

The lang_server helper should have API like (not limited to):

  • supported_languages (@Property) => [str, ...]
  • running
  • start()
  • stop()
  • get_language_config(name)
  • config_path => str (abs path)
  • client_config (@Property)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions