mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
LSP client: always send the didChangeConfiguration, it seems that some servers won't initialize properly otherwise (pyright).
This commit is contained in:
@@ -1206,7 +1206,7 @@ void LSPClientServer::initialize() {
|
||||
{ "showMessage", showMessage },
|
||||
{ "showDocument", showDocument } } },
|
||||
{ "workspace", workspace },
|
||||
{ "general", json{ { "positionEncodings", json::array( { "utf-32" } ) } } } };
|
||||
{ "general", json{ { "positionEncodings", json::array( { "utf-16" } ) } } } };
|
||||
|
||||
json params{ { "processId", Sys::getProcessID() },
|
||||
{ "capabilities", capabilities },
|
||||
@@ -1260,9 +1260,7 @@ void LSPClientServer::initialize() {
|
||||
write( newRequest( "initialized" ) );
|
||||
|
||||
// Send configuration immediately after initialized
|
||||
if ( !mLSP.settings.empty() ) {
|
||||
didChangeConfiguration( mLSP.settings, mWorkspaceFolder.getFSPath(), true );
|
||||
}
|
||||
didChangeConfiguration( mLSP.settings, mWorkspaceFolder.getFSPath(), true );
|
||||
|
||||
sendQueuedMessages();
|
||||
notifyServerInitialized();
|
||||
|
||||
Reference in New Issue
Block a user