Skip to content

Commit 1203b60

Browse files
chore(serena): update project config to current schema
Rename additional_workspace_folders to ls_additional_workspace_folders, add language_servers, ls_workspace_folders, activation_command, and activation_command_timeout, and refresh inline documentation/comments to match the current Serena config schema.
1 parent a83c3fc commit 1203b60

1 file changed

Lines changed: 77 additions & 41 deletions

File tree

‎.serena/project.yml‎

Lines changed: 77 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ ignore_all_files_in_gitignore: true
44

55
# list of additional paths to ignore in this project.
66
# Same syntax as gitignore, so you can use * and **.
7+
# Important: quote patterns that start with `*`, otherwise YAML treats them as aliases.
8+
# Example:
9+
# ignored_paths:
10+
# - "examples/**"
11+
# - ".worktrees/**"
12+
# - "**/bin/**"
13+
# - "**/obj/**"
714
# Note: global ignored_paths from serena_config.yml are also applied additively.
815
ignored_paths: []
916

@@ -20,7 +27,7 @@ excluded_tools: []
2027
# initial prompt for the project. It will always be given to the LLM upon activating the project
2128
# (contrary to the memories, which are loaded on demand).
2229
initial_prompt: ""
23-
# the name by which the project can be referenced within Serena
30+
# the name by which the project can be referenced within Serena/when chatting with the LLM.
2431
project_name: "mt"
2532

2633
# list of mode names to that are always to be included in the set of active modes
@@ -55,40 +62,6 @@ fixed_tools: []
5562
# For a list of possible encodings, see https://docs.python.org/3.11/library/codecs.html#standard-encodings
5663
encoding: utf-8
5764

58-
59-
# list of languages for which language servers are started; choose from:
60-
# al angular ansible bash clojure
61-
# cpp cpp_ccls crystal csharp csharp_omnisharp
62-
# dart elixir elm erlang fortran
63-
# fsharp go groovy haskell haxe
64-
# hlsl html java json julia
65-
# kotlin lean4 lua luau markdown
66-
# matlab msl nix ocaml pascal
67-
# perl php php_phpactor powershell python
68-
# python_jedi python_ty r rego ruby
69-
# ruby_solargraph rust scala scss solidity
70-
# svelte swift systemverilog terraform toml
71-
# typescript typescript_vts vue yaml zig
72-
# (This list may be outdated. For the current list, see values of Language enum here:
73-
# https://github.com/oraios/serena/blob/main/src/solidlsp/ls_config.py
74-
# For some languages, there are alternative language servers, e.g. csharp_omnisharp, ruby_solargraph.)
75-
# Note:
76-
# - For C, use cpp
77-
# - For JavaScript, use typescript
78-
# - For Angular projects, use angular (subsumes typescript+html; requires `npm install` in the project root)
79-
# - For Svelte projects, use svelte (subsumes typescript/javascript for .svelte projects; requires npm)
80-
# - For SCSS / Sass / plain CSS, use scss (some-sass-language-server handles all three)
81-
# - For Free Pascal/Lazarus, use pascal
82-
# Special requirements:
83-
# Some languages require additional setup/installations.
84-
# See here for details: https://oraios.github.io/serena/01-about/020_programming-languages.html#language-servers
85-
# When using multiple languages, the first language server that supports a given file will be used for that file.
86-
# The first language is the default language and the respective language server will be used as a fallback.
87-
# Note that when using the JetBrains backend, language servers are not used and this list is correspondingly ignored.
88-
languages:
89-
- rust
90-
- typescript
91-
9265
# time budget (seconds) per tool call for the retrieval of additional symbol information
9366
# such as docstrings or parameter information.
9467
# This overrides the corresponding setting in the global configuration; see the documentation there.
@@ -121,22 +94,85 @@ ignored_memory_patterns: []
12194

12295
# advanced configuration option allowing to configure language server-specific options.
12396
# Maps the language key to the options.
124-
# Have a look at the docstring of the constructors of the LS implementations within solidlsp (e.g., for C# or PHP) to see which options are available.
125-
# No documentation on options means no options are available.
97+
# The settings are considered only if the project is trusted (see global configuration to define trusted projects).
98+
# See https://oraios.github.io/serena/02-usage/050_configuration.html#language-server-specific-settings
12699
ls_specific_settings: {}
127100

128101
# list of mode names to be activated additionally for this project, e.g. ["query-projects"]
129102
# The full set of modes to be activated is base_modes (from global config) + default_modes + added_modes.
130103
# See https://oraios.github.io/serena/02-usage/050_configuration.html#modes
131104
added_modes:
132105

133-
# list of additional workspace folder paths for cross-package reference support (e.g. in monorepos).
106+
# list of additional workspace folder paths for cross-package reference support.
134107
# Paths can be absolute or relative to the project root.
135108
# Each folder is registered as an LSP workspace folder, enabling language servers to discover
136-
# symbols and references across package boundaries.
137-
# Currently supported for: TypeScript.
109+
# symbols and references across package boundaries, but these folders are not indexed by Serena,
110+
# i.e. the respective symbols will not be found using Serena's symbol search tools.
138111
# Example:
139112
# additional_workspace_folders:
140113
# - ../sibling-package
141114
# - ../shared-lib
142-
additional_workspace_folders: []
115+
ls_additional_workspace_folders: []
116+
117+
# list of language servers to start when using the LSP backend; choose from:
118+
# ada al angular ansible bash
119+
# bsl clojure cpp cpp_ccls crystal
120+
# csharp csharp_omnisharp cue dart deno
121+
# elixir elm erlang fortran fsharp
122+
# gdscript gleam go groovy haskell
123+
# haxe hlsl html java json
124+
# julia julia_fatou kotlin latex lean4
125+
# lua luau markdown matlab msl
126+
# nextflow nix ocaml pascal perl
127+
# php php_phpactor php_phpantom powershell python
128+
# python_basedpyright python_jedi python_pyrefly python_ty qml
129+
# r rego ruby ruby_solargraph rust
130+
# scala scss solidity svelte swift
131+
# systemverilog terraform toml typescript typescript_vts
132+
# vue wolfram yaml zig
133+
# (This list may be outdated; generated with scripts/print_language_list.py;
134+
# For the current list, see values of the LanguageServerId enum here:
135+
# https://github.com/oraios/serena/blob/main/src/solidlsp/ls_config.py)
136+
# For some languages, there are several alternative language servers, e.g. csharp_omnisharp, ruby_solargraph.)
137+
# Note:
138+
# - For C, use cpp
139+
# - For JavaScript, use typescript
140+
# - For Angular projects, use angular (subsumes typescript+html; requires `npm install` in the project root)
141+
# - For Svelte projects, use svelte (subsumes typescript/javascript for .svelte projects; requires npm)
142+
# - For Deno projects, use deno (serves the same .ts/.js files as typescript; requires the deno CLI on PATH)
143+
# - For SCSS / Sass / plain CSS, use scss (some-sass-language-server handles all three)
144+
# - For Free Pascal/Lazarus, use pascal
145+
# Special requirements:
146+
# Some language servers require additional setup/installations.
147+
# See here for details: https://oraios.github.io/serena/01-about/020_programming-languages.html#language-servers
148+
# When using multiple language servers, the first language server that supports a given file will be used for that file.
149+
# The first language server is the default language and the respective language server will be used as a fallback.
150+
# Note that when using the JetBrains backend, language servers are not used and this list is correspondingly ignored.
151+
language_servers:
152+
- rust
153+
- typescript
154+
155+
# list of workspace folder paths (LSP backend only).
156+
# These folders will be used to build up Serena's symbol index.
157+
# Paths must be within the project root and should thus be relative to the project root.
158+
# Furthermore, the paths should not be filtered by ignore settings.
159+
# Default setting: The entire project root folder (".") is considered.
160+
# In (large) monorepos, this can be used to index only subfolders of the project root, e.g.
161+
# ls_workspace_folders:
162+
# - "./subproject1"
163+
# - "./subproject2"
164+
ls_workspace_folders:
165+
- .
166+
167+
# optional shell command to run before the language backend (LSP or JetBrains) is initialised.
168+
# the command runs in the project root directory and is only executed if the project is trusted
169+
# (see trusted_project_path_patterns in the global configuration).
170+
# serena waits for the command to exit: a non-zero exit code is logged as an error but does not
171+
# abort activation. a per-project timeout (activation_command_timeout, default 180s) is the safety
172+
# backstop for non-terminating commands; on expiry the process is killed and activation continues.
173+
# example: activation_command: "npx nx run-many -t build"
174+
activation_command:
175+
176+
# maximum time in seconds to wait for activation_command to complete before killing it (default 180s).
177+
# must be a positive number.
178+
activation_command_timeout: 180.0

0 commit comments

Comments
 (0)