server.debug.editor

Page actions AI-ready formats and sharing
Open LLM text
Share with AI
Ask Claude Ask ChatGPT Ask Gemini Ask Copilot

Editor link support for debug page file:line URLs.

Editor link support for debug page file:line URLs.

server.debug.editor

Name Type Default Description
type
qualified_name
element_type
description
source_file
line_number
is_autodoc
autodoc_element
_autodoc_template
_autodoc_url_path
_autodoc_page_type
title
doc_content_hash

Symbols on this page

_editor_url
function
def _editor_url(filepath: str, lineno: int) -> str | None

Build a clickable editor URL from CHIRP_EDITOR env var.

Supports preset names (vscode, cursor, sublime, textmate, idea, pycharm) or custom patterns with __FILE__ / __LINE__ placeholders.

ReturnsNone if CHIRP_EDITORis not set.

Parameters

Name Type Default Description
filepath str
lineno int

View source · /home/runner/work/chirp/chirp/site/../src/chirp/server/debug/editor.py:1