mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-12 16:15:33 +00:00
CC Vanilla
Tokens: 5,213,813 Prompts: - I recently added the non-optional parameter solidlsp_settings to the init of SolidLanguageServer, the create method, and the ls_resources_dir method. All language server subclasses now need to be adjusted │ │ accordingly to use solidlsp_settings. Do that. You can have a look at relevant memories in .serena/memories to understand the repo structure - don't execute elixir tests, they hang
This commit is contained in:
1 parent
aeb871c040
commit
65259254fd
21 files changed
+192
-79
No files matched your search
@@ -13,6 +13,7 @@ from solidlsp.language_servers.csharp_language_server import (
|
||||
)
|
||||
from solidlsp.ls_config import Language, LanguageServerConfig
|
||||
from solidlsp.ls_utils import SymbolUtils
|
||||
from solidlsp.settings import SolidLSPSettings
|
||||
|
||||
|
||||
@pytest.mark.csharp
|
||||
@@ -214,7 +215,9 @@ class TestCSharpSolutionProjectOpening:
|
||||
mock_config.ignored_paths = []
|
||||
|
||||
# Create CSharpLanguageServer instance
|
||||
CSharpLanguageServer(mock_config, mock_logger, str(temp_path))
|
||||
mock_settings = Mock(spec=SolidLSPSettings)
|
||||
mock_settings.ls_resources_dir = "/tmp/test_ls_resources"
|
||||
CSharpLanguageServer(mock_config, mock_logger, str(temp_path), mock_settings)
|
||||
|
||||
# Verify that logger was called with solution file discovery
|
||||
mock_logger.log.assert_any_call(f"Found solution/project file: {solution_file}", 20) # logging.INFO
|
||||
@@ -236,7 +239,9 @@ class TestCSharpSolutionProjectOpening:
|
||||
mock_config.ignored_paths = []
|
||||
|
||||
# Create CSharpLanguageServer instance
|
||||
CSharpLanguageServer(mock_config, mock_logger, str(temp_path))
|
||||
mock_settings = Mock(spec=SolidLSPSettings)
|
||||
mock_settings.ls_resources_dir = "/tmp/test_ls_resources"
|
||||
CSharpLanguageServer(mock_config, mock_logger, str(temp_path), mock_settings)
|
||||
|
||||
# Verify that logger was called with warning about no solution/project files
|
||||
mock_logger.log.assert_any_call(
|
||||
|
||||
Reference in new issue
Block a user