Skip to main content

Module detection

Module detection 

Source
Expand description

Generic, language-agnostic project-detection helpers shared by plugins.

These answer “is this a project of kind X on disk?” — a concern distinct from the parsing contract in plugin. Keeping them here lets every plugin reuse the helper without depending on a sibling plugin or pulling detection logic into the contract.

Functions§

detect_with_marker
Return true when workspace contains the given marker file. A generic, language-agnostic detection helper for marker-based plugins (e.g. JS → "package.json", TS → "tsconfig.json").