{"version":"2.1.334","anchor":"lsp-server-start-directory-is-restricted-to-trusted-folders","canonical_anchor":"lsp-server-start-directory-is-restricted-to-trusted-folders","heading":"LSP servers start only in trusted folders, behind a flag","tier":"notice","area":"LSP","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/lsp-server-start-directory-is-restricted-to-trusted-folders","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### LSP servers start only in trusted folders, behind a flag\n\nBehind `bot_protected_tengu_warm_heron`, LSP servers avoid starting in untrusted folders, and file-extension language lookup ignores letter case\n\n**Unclear.** It is not known whether the server switch for the folder restriction defaults to on or off.\n\n**What**\n\nAn LSP server is a helper program that gives Claude Code language-aware information about code, such as definitions and errors. A new helper now chooses the folder the server starts in. It is controlled by a flag named `bot_protected_tengu_warm_heron`, and nothing has been read about this flag's state.\n\n- When the flag is on and the current folder is outside the session's repositories and added folders, and has no trust record, the server starts in a trusted folder instead.\n\n- A log message explains this and tells you to add the folder with `\/add-dir` before the server starts.\n\n- The lookup that picks a file's language when it is opened (the `didOpen` step) now also matches file extensions without regard to upper or lower case.\n\nBefore this release, the server started in the configured workspace folder with no trust check.\n\n**Why**\n\nWhen the flag is on, a language server is less likely to launch in a folder you have not trusted. If you expect it to work in such a folder, add it with `\/add-dir` first. Files with upper-case extensions are now more likely to be recognised as the right language.\n\n- Area: LSP\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: yes"}