Файли
openidea/languages/fsharp.toml
T
LU XIANGRUIтаwildcatDownstairs 1d3547a953 feat(fsharp): tree-sitter grammars for outline, folding and symbols (#7640)
F# had only the CodeMirror mode, so without FsAutoComplete the Structure view was empty, indented blocks did not fold and F# declarations were missing from the symbol index. tree-sitter-fsharp 0.3.13 (MIT) is bundled: the main grammar for .fs / .fsx and its signature grammar for .fsi, with outline queries, folding, symbols and declaration-name highlighting over the existing mode. .fsi files are the language fsharp.signature, sharing one FsAutoComplete with source files and sent as languageId fsharp.

Closes #7637

Co-authored-by: wildcatDownstairs <[email protected]>
2026-12-03 17:10:44 +08:00

23 рядки
723 B
TOML
Неформатований Анотація Історія

Цей файл містить неоднозначні символи Юнікоду
Цей файл містить символи Юнікоду, які можна сплутати з іншими символами. Якщо ви вважаєте, що це зроблено навмисно, можете сміливо ігнорувати це попередження. Щоб показати їх, скористайтеся кнопкою Escape.
id = "fsharp"
name = "F#"
extensions = ["fs", "fsx"]
line-comment = "//"
block-comment = ["(*", "*)"]
indent = { tab-size = 4, insert-spaces = true }
ui-mode = "F#"
tree-sitter = "fsharp"
[[language-servers]]
name = "fsautocomplete"
command = "fsautocomplete"
root-markers = ["*.sln", "*.fsproj", "global.json"]
install-hint = "dotnet tool install --global fsautocomplete"
# Otherwise it waits for the client to load the project through `fsharp/workspaceLoad`.
initialization-options = { AutomaticWorkspaceInit = true }
[debugger]
adapter = "netcoredbg"
command = "netcoredbg"
args = ["--interpreter=vscode"]
install-hint = "Install netcoredbg (.NET debugger) in Settings › Languages & Frameworks › Language Servers"