Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Upgrading to 0.11

In this chapter you check the changes between 0.10 and 0.11 that can affect your setup or your client. Most installations only need the new binary. Read the sections that match how you use mcpls.

Prerequisites

  • A working 0.10 setup.

Building from source or embedding the library

  • The minimum supported Rust version is now 1.100.
  • A build from a checkout fails on warnings.
  • mcpls-core has breaking API changes. The changelog lists each one.

Configuration and startup

ChangeWhat to do
A workspace.roots entry that names a file fails the loadList directories only
Language servers are told about changes on disk (not rust-analyzer, and never in untrusted mode)To keep the old behavior for a server, set client_file_watching = "disabled"

Clients and tool results

ChangeWhat to do
rename_symbol and code actions can return create, rename and delete entries in the ordered changes listHandle entries tagged with kind, and apply them in order
unsupported_file_operation is gone from dropped, and shadowed_by_changes is now shadowedRename the keys you read
Edits on a workspace root, its ancestors or inside .git are refusedCheck dropped before applying
format_document and format_range without options keep the file’s indentationPass tab_size and insert_spaces to force a style
get_server_logs and get_server_messages return the newest limit entries, oldest firstDo not assume the first entries are the oldest ones the server sent
Rename right after startup waits for the project to load; references and hierarchy walks report indexing_in_progressRetry when the flag is set or on -32050
pyright reports unused, unreachable and deprecated code as hint diagnosticsFilter on severity if you want problems only
Resource URIs percent-encode reserved charactersCompare URIs in that form
prompts/list and completion/complete answer -32601Do not call them

HTTP transport

New in 0.11

What’s Next

If something behaves differently from what this page says, see Troubleshooting.