Skip to content

Commit 71a167f

Browse files
author
CodeKing
committed
fix: one-shot auto-import prevents deleted provider profiles from reappearing
1 parent ac2fa31 commit 71a167f

4 files changed

Lines changed: 151 additions & 258 deletions

File tree

src/extension.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,15 @@ export async function activate(context: vscode.ExtensionContext) {
285285
outputChannel.appendLine(`[Worktree] Error: ${error}`)
286286
})
287287

288-
void autoImportSettings(outputChannel, {
289-
providerSettingsManager: provider.providerSettingsManager,
290-
contextProxy: provider.contextProxy,
291-
customModesManager: provider.customModesManager,
292-
}).catch((error) => {
288+
void autoImportSettings(
289+
outputChannel,
290+
{
291+
providerSettingsManager: provider.providerSettingsManager,
292+
contextProxy: provider.contextProxy,
293+
customModesManager: provider.customModesManager,
294+
},
295+
context,
296+
).catch((error) => {
293297
outputChannel.appendLine(`[AutoImport] Error: ${error}`)
294298
})
295299

src/package.nls.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"settings.vsCodeLmModelSelector.family.description": "The family of the language model (e.g. gpt-4)",
3737
"settings.customStoragePath.description": "Custom storage path. Leave empty to use the default location. Supports absolute paths (e.g. 'D:\\ZooCodeStorage')",
3838
"settings.enableCodeActions.description": "Enable Zoo Code quick fixes",
39-
"settings.autoImportSettingsPath.description": "Path to a ZooCode configuration file to automatically import on extension startup. Supports absolute paths and paths relative to the home directory (e.g. '~/Documents/roo-code-settings.json'). Leave empty to disable auto-import.",
39+
"settings.autoImportSettingsPath.description": "Path to a ZooCode configuration file to automatically import once on first extension activation for this installation. Supports absolute paths and paths relative to the home directory (e.g. '~/Documents/roo-code-settings.json'). Leave empty to disable auto-import. After a successful import, profiles are not re-imported on reload so deleted providers stay deleted.",
4040
"settings.maximumIndexedFilesForFileSearch.description": "Maximum number of files to index for the @ file search feature. Higher values provide better search results in large projects but may use more memory. Default: 10,000.",
4141
"settings.useAgentRules.description": "Enable loading of AGENTS.md files for agent-specific rules (see https://agent-rules.org/)",
4242
"settings.apiRequestTimeout.description": "API response timeout (seconds, default: 600, range: 1–3600). Higher values are recommended for local providers. Unsupported providers: Amazon Bedrock, Google Gemini(directly or through the Vertex AI platform), Mistral, Moonshot, Ollama, Poe, VS Code LM API.",

0 commit comments

Comments
 (0)