This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

TreeSitterExtensions Pennington.TreeSitter

Dependency injection extensions for registering the Pennington tree-sitter integration.

Methods

AddTreeSitter

#
public static IServiceCollection AddTreeSitter(IServiceCollection services, Action<TreeSitterOptions> configure = null)

Adds tree-sitter based multi-language code-fragment extraction — the :symbol fence modifier. Services are registered only when ContentRoot is configured.

Parameters

services IServiceCollection
configure Action<TreeSitterOptions>

Returns

IServiceCollection

Pennington.TreeSitter.TreeSitterExtensions

namespace Pennington.TreeSitter;

/// Dependency injection extensions for registering the Pennington tree-sitter integration.
public class TreeSitterExtensions
{
    /// Adds tree-sitter based multi-language code-fragment extraction — the :symbol fence modifier. Services are registered only when ContentRoot is configured.
    
public static IServiceCollection AddTreeSitter(IServiceCollection services, Action<TreeSitterOptions> configure = null)
; }