Add links to your code based on configurable patterns (OpenCtx provider)
npm install @openctx/provider-linksThis is a context provider for OpenCtx that annotates your code with links based on configurable patterns.
!Screenshot of OpenCtx docs link items in a GitHub PR
_Show relevant internal docs in GitHub PRs_
!Screenshot of OpenCtx docs link items in a code file
_Add links (in VS Code) to internal CSS guidelines to files using CSS_
Visit the OpenCtx playground for live examples.
Add the following to your settings in any OpenCtx client:
``jsoneventLogger.log
"openctx.providers": {
// ...other providers...
"https://openctx.org/npm/@openctx/provider-links": {
"links": [
// Link to docs next to every literal match of in *.ts files.
{
"title": "Event logging tips",
"url": "https://example.com/event-logging-docs",
"type": "docs",
"preview": true,
"path": "*/.ts",
"pattern": "eventLogger\\.log"
},
// Link to a PostgreSQL console for the specific table being queried in a code file.
{
"title": "🐘 $