Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.0.33 ·

LSP File Lifecycle Management

Entry
JSON All of v2.0.33
EntryKind: in v2.0.33,
ChangesSection of the release

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 →

Feedback