Skip to content

Commit 0384c34

Browse files
joewreschnigcmaglie
authored andcommitted
Implement a no-op workspace/didChangeConfiguration (#114)
1 parent 0eb2bfa commit 0384c34

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ls/lsp_server_ide.go

+8-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,14 @@ func (server *IDELSPServer) WorkspaceDidChangeWorkspaceFolders(logger jsonrpc.Fu
229229
}
230230

231231
func (server *IDELSPServer) WorkspaceDidChangeConfiguration(logger jsonrpc.FunctionLogger, params *lsp.DidChangeConfigurationParams) {
232-
panic("unimplemented")
232+
// At least one LSP client, Eglot, sends this by default when
233+
// first connecting, even if the otions are empty.
234+
// https://github.com/joaotavora/eglot/blob/e835996e16610d0ded6d862214b3b452b8803ea8/eglot.el#L1080
235+
//
236+
// Since ALS doesn’t have any workspace configuration yet,
237+
// ignore it.
238+
return
239+
233240
}
234241

235242
func (server *IDELSPServer) WorkspaceDidChangeWatchedFiles(logger jsonrpc.FunctionLogger, params *lsp.DidChangeWatchedFilesParams) {

0 commit comments

Comments
 (0)