Creating a language server with root path and language configuration provided by user MultilspyConfig: A class that helps to configure Language Server for multiple languages MultilspyLogger: A class that helps to Log LSP operations and Debugging
(self, root_path, language="python")
| 14 | language: str, optional - the language of your code (default is 'python') |
| 15 | """ |
| 16 | def __init__(self, root_path, language="python"): |
| 17 | """ |
| 18 | Creating a language server with root path and language configuration provided by user |
| 19 | |
| 20 | MultilspyConfig: A class that helps to configure Language Server for multiple languages |
| 21 | MultilspyLogger: A class that helps to Log LSP operations and Debugging |
| 22 | """ |
| 23 | self.root_path = root_path |
| 24 | self.language = language |
| 25 | self.server = SyncLanguageServer.create(MultilspyConfig(code_language=language), MultilspyLogger(), root_path) |
| 26 | |
| 27 | def open_file(self, relative_path): |
| 28 | """ |
nothing calls this directly
no test coverage detected