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 dvc.yaml into files used to show editor/title icons #4228

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented Jul 6, 2023

Related to #4222

This PR shows the editor/title run/queue experiment icons/actions when a dvc.yaml is open. This extends the previous behaviour of only showing the icons when a params file is open. I have done this as this will be one of the pathways to execute a particular pipeline (have it open in the active editor).

Demo

Screen.Recording.2023-07-06.at.7.24.47.pm.mov

@mattseddon mattseddon added the product PR that affects product label Jul 6, 2023
@mattseddon mattseddon self-assigned this Jul 6, 2023
window.showTextDocument(Uri.file(join(dvcDemoPath, fileName)))

before(async () => {
await openFileInEditor('dvc.lock') // clear any existing recommendation
Copy link
Member Author

Choose a reason for hiding this comment

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

[F] Because we opened a dvc.yaml in another integration test this started failing. That is just bad testing practices. This change keeps things independent.

@codeclimate
Copy link

codeclimate bot commented Jul 6, 2023

Code Climate has analyzed commit 01629d0 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 92.3% (85% is the threshold).

This pull request will bring the total coverage in the repository to 95.1% (-0.1% change).

View more on Code Climate.

@mattseddon mattseddon marked this pull request as ready for review July 6, 2023 10:06
@shcheklein
Copy link
Member

Unrelated question - is the preview (like for the MD file) a built-in feature? Can we drop the dag there "quickly"?

Copy link
Contributor

@julieg18 julieg18 left a comment

Choose a reason for hiding this comment

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

Great work!

@mattseddon mattseddon merged commit 5e131d9 into main Jul 6, 2023
3 checks passed
@mattseddon mattseddon deleted the add-dvc-yaml branch July 6, 2023 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product PR that affects product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants