SoMaCoSF
(SoMaCo)
April 30, 2025, 10:42pm
1
the extension automatically watches your editor content for trigger phrases.
Default Triggers
Trigger Text
Response
“I’ve reached my tool call limit of 25”
“continue”
“I need to pause execution”
“continue”
“To proceed with the remaining”
“continue”
“Would you like me to continue”
“Yes, please continue”
How It Works
The extension:
Polls the active editor content every 500ms
Checks for any of the trigger phrases
When detected, automatically replaces the trigger with the corresponding response
The AI detects this as user input and continues its operation
cursor-continue-extension-readme.md
# Auto-Continue Extension for VS Code & Cursor
# Quick Install Instructions for Auto-Continue Extension
1. **Download the files** from the gist (extension.ts, package.json, and README.md)
2. **Create a new VS Code extension project**:
```bash
npm init vscode-extension
# Choose TypeScript when prompted
This file has been truncated. show original
vscode-text-trigger-extension.ts
// This is a minimal VS Code extension that watches for trigger text and inserts predefined text
// File: extension.ts
import * as vscode from 'vscode';
export function activate(context: vscode.ExtensionContext) {
console.log('Text Trigger extension is now active');
// Store the last known text to detect changes
let lastText = '';
This file has been truncated. show original
vscode-text-trigger-package.json
{
"name": "text-trigger",
"displayName": "Text Trigger",
"description": "Watches for trigger text and replaces it with predefined content",
"version": "0.0.1",
"engines": {
"vscode": "^1.60.0"
},
"categories": [
"Other"
This file has been truncated. show original
2 Likes
Great thanks, love this script but when I follow your instructions and get to:
npm run compile
I get this error:
C:\Users\David\Downloads\auto continue cursor extention\autocontinue>npm run compile
> [email protected] compile
> tsc -p ./
error TS5057: Cannot find a tsconfig.json file at the specified directory: './'.
Any help would be greatly appreciated! :)