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

Add a test for smart apply #5501

Open
wants to merge 5 commits into
base: release/jetbrains/2024.09.04
Choose a base branch
from

Conversation

mkondratek
Copy link
Contributor

@mkondratek mkondratek commented Sep 9, 2024

Test plan

  • green CI

Changelog

@mkondratek mkondratek self-assigned this Sep 9, 2024
Copy link

github-actions bot commented Sep 9, 2024

‼️ Hey @sourcegraph/cody-security, please review this PR carefully as it introduces the usage of an unsafe_ function or abuses PromptString.

@mkondratek mkondratek changed the title Add a test Add a test for smart apply Sep 9, 2024
const fileToEditUri = workspace.file('src', 'a-new-file.ts')
const newDocument = { uri: fileToEditUri } as vscode.TextDocument

const fixupTask = await executeSmartApply({
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For some reason the code from EditManager.smartApplyEdit is not being executed. Can we use commands from tests?

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.

1 participant