From 39d2b6568cbc463e8ff8b5001ea49fbe0ac54908 Mon Sep 17 00:00:00 2001 From: michaeloffner Date: Fri, 20 Dec 2024 09:19:26 +0100 Subject: [PATCH] extend language server recipe with stateful/stateless mode setting info --- docs/recipes/language-server.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/recipes/language-server.md b/docs/recipes/language-server.md index d8b9a82ae..f79960cc5 100644 --- a/docs/recipes/language-server.md +++ b/docs/recipes/language-server.md @@ -35,6 +35,9 @@ export LUCEE_LSP_PORT=2089 # Configure the CFML component that handles LSP requests export LUCEE_LSP_COMPONENT="org.lucee.cfml.lsp.LSPEndpoint" + +# Control component instance reuse (default: false) +export LUCEE_LSP_STATELESS=false ``` ### System Properties @@ -45,6 +48,7 @@ The same settings can be configured using Java system properties: -Dlucee.lsp.enabled=true -Dlucee.lsp.port=2089 -Dlucee.lsp.component=org.lucee.cfml.lsp.LSPEndpoint +-Dlucee.lsp.stateless=false ``` ## Configuration Options @@ -54,6 +58,7 @@ The same settings can be configured using Java system properties: | lucee.lsp.enabled | Enables/disables the LSP server | false | | lucee.lsp.port | Port number for the LSP server | 2089 | | lucee.lsp.component | CFML component that handles LSP requests | org.lucee.cfml.lsp.LSPEndpoint | +| lucee.lsp.stateless | When false, reuses the same component instance for all requests. When true, creates a new instance for each request. | false | ## Component Implementation