{"version":"2.0.33","anchor":"lsp-file-lifecycle-management-2","canonical_anchor":"lsp-file-lifecycle-management-2","heading":"LSP File Lifecycle Management","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.0.33\/e\/lsp-file-lifecycle-management-2","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.0.33","markdown":"### LSP File Lifecycle Management\n\n**What:** Four new methods for synchronizing file state with Language Server Protocol servers\n\n**Details:**\n\n- `getAllServers()` - Returns Map of all initialized LSP servers for monitoring\n- `openFile(path, content)` - Sends `textDocument\/didOpen` with proper languageId mapping\n- `changeFile(path, content)` - Sends `textDocument\/didChange`, falls back to openFile if server not running\n- `closeFile(path)` - Sends `textDocument\/didClose` for cleanup\n- Configuration changed from `fileExtensions` array to `extensionToLanguage` object for proper language ID support\n- **Evidence**: `ym2()` at line 446307, methods at lines 446405-446454"}