Expose a list of allowed auto-execute commands (#31)

This commit is contained in:
Matt Rubens
2024-12-01 15:34:36 -05:00
committed by GitHub
parent 750c24c8a7
commit 6b8f9f7a45
14 changed files with 1085 additions and 719 deletions

View File

@@ -26,6 +26,16 @@ export function activate(context: vscode.ExtensionContext) {
outputChannel.appendLine("Cline extension activated")
// Get default commands from configuration
const defaultCommands = vscode.workspace
.getConfiguration('roo-cline')
.get<string[]>('allowedCommands') || [];
// Initialize global state if not already set
if (!context.globalState.get('allowedCommands')) {
context.globalState.update('allowedCommands', defaultCommands);
}
const sidebarProvider = new ClineProvider(context, outputChannel)
context.subscriptions.push(