Skip to content

Revert "smoke: wait for copilot-chat extension before writing its settings"#320366

Merged
alexdima merged 1 commit into
mainfrom
revert-320255-agents/i-have-these-learnings-smoke-test-failure-chat-46913371
Jun 8, 2026
Merged

Revert "smoke: wait for copilot-chat extension before writing its settings"#320366
alexdima merged 1 commit into
mainfrom
revert-320255-agents/i-have-these-learnings-smoke-test-failure-chat-46913371

Conversation

@alexdima
Copy link
Copy Markdown
Member

@alexdima alexdima commented Jun 8, 2026

Reverts #320255

Copilot AI review requested due to automatic review settings June 8, 2026 08:12
@alexdima alexdima enabled auto-merge (squash) June 8, 2026 08:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reverts a prior smoke-test change that waited for the GitHub.copilot-chat extension to be installed/activated before writing Copilot Chat-related settings, restoring the previous behavior in the smoke test extension host helper.

Changes:

  • Removed the waitForExtension(...) helper that polled for GitHub.copilot-chat and activated it.
  • Removed the pre-settings-write wait in smoketest.openCopilotCliChat and smoketest.openClaudeChat.
Show a summary per file
File Description
test/smoke/extensions/vscode-smoketest-ext-host/extension.js Removes the Copilot Chat “wait for extension before writing settings” logic from smoke-test helper commands.

Copilot's findings

Comments suppressed due to low confidence (2)

test/smoke/extensions/vscode-smoketest-ext-host/extension.js:100

  • These configuration updates can throw if the Copilot Chat extension hasn’t finished registering its contributed settings yet (workspace configuration update throws for unregistered keys). The reverted waitForExtension(...) avoided this race; without any wait before update(...), smoke runs can fail intermittently right after installing the extension. Consider waiting for a Copilot Chat-contributed command to be registered (which implies the extension has been scanned and its configuration schema is registered) before calling update(...).
			const command = 'workbench.action.chat.openNewSessionEditor.copilotcli';
			await vscode.workspace.getConfiguration('chat').update('disableAIFeatures', false, vscode.ConfigurationTarget.Global);
			await vscode.workspace.getConfiguration('github.copilot.chat').update('backgroundAgent.enabled', true, vscode.ConfigurationTarget.Global);
			await vscode.commands.executeCommand('github.copilot.debug.extensionState');
			await waitForCommand(command, 60_000);

test/smoke/extensions/vscode-smoketest-ext-host/extension.js:112

  • Same as above: getConfiguration('github.copilot.chat').update(...) can throw if Copilot Chat hasn’t registered its configuration yet. Adding a short wait for a Copilot Chat-contributed command before updating settings avoids intermittent smoke failures when the extension is installed on-demand.
			const command = 'workbench.action.chat.openNewSessionEditor.claude-code';
			await vscode.workspace.getConfiguration('chat').update('disableAIFeatures', false, vscode.ConfigurationTarget.Global);
			await vscode.workspace.getConfiguration('github.copilot.chat').update('claudeAgent.enabled', true, vscode.ConfigurationTarget.Global);
			await vscode.commands.executeCommand('github.copilot.debug.extensionState');
			await waitForCommand(command, 60_000);
  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@alexdima alexdima merged commit 8b6971b into main Jun 8, 2026
51 of 62 checks passed
@alexdima alexdima deleted the revert-320255-agents/i-have-these-learnings-smoke-test-failure-chat-46913371 branch June 8, 2026 08:58
@vs-code-engineering vs-code-engineering Bot added this to the 1.125.0 milestone Jun 8, 2026
@alexdima alexdima added the ~release-cherry-pick Trigger: cherry-pick this PR to the latest release branch label Jun 8, 2026
@vs-code-engineering vs-code-engineering Bot added release-cherry-pick Automated cherry-pick between release and main branches and removed ~release-cherry-pick Trigger: cherry-pick this PR to the latest release branch labels Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-cherry-pick Automated cherry-pick between release and main branches

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants