Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.0.33 Home All releases olderv2.0.32 v2.0.34newer
Claude Code v2.0.33

LSP File Lifecycle Management

What: Four new methods for synchronizing file state with Language Server Protocol servers How to use:

// These methods are called automatically by Claude Code's LSP integration
// Manual use in custom integrations:
const lspManager = createLSPManager();
await lspManager.initialize();

// Notify server when opening a file
await lspManager.openFile('/path/to/file.js', fileContent);

// Sync content changes
await lspManager.changeFile('/path/to/file.js', newContent);

// Notify server when closing
await lspManager.closeFile('/path/to/file.js');

// Inspect available servers
const servers = lspManager.getAllServers();

Details:

  • getAllServers() returns Map of all initialized LSP servers for monitoring
  • openFile(path, content) sends textDocument/didOpen with proper languageId mapping
  • changeFile(path, content) sends textDocument/didChange, falls back to openFile if server not running
  • closeFile(path) sends textDocument/didClose for cleanup
  • Configuration changed from fileExtensions array to extensionToLanguage object mapping for proper language ID support
  • Better error messages in shutdown that include actual error details instead of generic "check logs"
  • Evidence: New methods added to return object at line 446455-446465, openFile() implementation at line 446408, changeFile() at line 446428, closeFile() at line 446442, getAllServers() at line 446405

See this entry in the whole of v2.0.33 →