Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(chat): avoid passing file path when its not used in playground run VSCODE-625 #844

Merged

Conversation

Anemy
Copy link
Member

@Anemy Anemy commented Sep 27, 2024

VSCODE-625

Did a bit of drive by renaming query -> code. There's a good amount of code we could cleanup in the playground controller around running playgrounds, however I'm going to avoid doing any more changes there as we want to code freeze and a lot of them are already done in Alena's pr on exporting code to playground.

const shouldConfirmRunCopilotCode = vscode.workspace
.getConfiguration('mdb')
.get('confirmRunCopilotCode');

if (!this._connectionController.isCurrentlyConnected()) {
// TODO(VSCODE-618): Prompt user to connect when clicked.
void vscode.window.showErrorMessage(connectBeforeRunningMessage);
Copy link
Member Author

Choose a reason for hiding this comment

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

Another drive-by, adding an error message when trying to run when not connected, and a todo for the changes in VSCODE-618.

@Anemy Anemy merged commit 547e455 into VSCODE-528-mongodb-copilot Sep 30, 2024
3 checks passed
@Anemy Anemy deleted the VSCODE-625-fix-run-with-virtual-document branch September 30, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants