Merge pull request #1197 from Asher-/fix/ls-copy-paste-bugs

Fix copy-paste bugs in language server init params
This commit is contained in:
Michael Panchenko authored and GitHub committed 2026-03-23 10:20:42 +01:00
commit 793af0a470
4 files changed
+5 -4

No files matched your search

@@ -118,7 +118,7 @@ class CCLS(SolidLanguageServer):
"workspaceFolders": [
{
"uri": root_uri,
"name": "$name",
"name": os.path.basename(repository_absolute_path),
}
],
# ccls supports initializationOptions but none are required for basic functionality
@@ -228,7 +228,7 @@ class ClangdLanguageServer(SolidLanguageServer):
"workspaceFolders": [
{
"uri": root_uri,
"name": "$name",
"name": os.path.basename(repository_absolute_path),
}
],
}
@@ -2,6 +2,7 @@
import logging
import os
import pathlib
import shutil
import subprocess
import threading
@@ -134,7 +135,7 @@ class ErlangLanguageServer(SolidLanguageServer):
initialize_params = {
"processId": None,
"rootPath": self.repository_root_path,
"rootUri": f"file://{self.repository_root_path}",
"rootUri": pathlib.Path(self.repository_root_path).as_uri(),
"capabilities": {
"textDocument": {
"synchronization": {"didSave": True},
@@ -166,7 +166,7 @@ class FSharpLanguageServer(SolidLanguageServer):
"documentHighlight": {"dynamicRegistration": True},
"documentSymbol": {
"dynamicRegistration": True,
"symbolKind": {"valueSet": list(range(1, 26))}, # All SymbolKind values
"symbolKind": {"valueSet": list(range(1, 27))}, # All SymbolKind values (1-26)
"hierarchicalDocumentSymbolSupport": True,
},
"codeAction": {