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: validate Score files locally when there is no org set #21

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

mateuszjenek
Copy link
Contributor

@mateuszjenek mateuszjenek commented Jun 11, 2024

If there is no org set the local validation is executed with the proper status displayed in the status bar

Zrzut ekranu 2024-06-13 o 10 14 15

@@ -144,6 +144,7 @@ export class HumanitecSidebarController {
item.id
);
}
vscode.commands.executeCommand('humanitec.score.validate');
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if a better solution wouldn't be to listen for configuration changes in the score validation controller instead of directly calling between them.

This way any config change would be detected, no matter how its being written.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea. I'll refactor the configuration repository with observer pattern in the next PR

@mateuszjenek mateuszjenek force-pushed the validate_score_local_when_no_org branch 2 times, most recently from a256f42 to c2cabc7 Compare June 13, 2024 08:09
@mateuszjenek mateuszjenek marked this pull request as ready for review June 13, 2024 08:10
Copy link
Contributor

@johanneswuerbach johanneswuerbach left a comment

Choose a reason for hiding this comment

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

😍

@mateuszjenek mateuszjenek force-pushed the validate_score_local_when_no_org branch from c2cabc7 to 8fcdbf4 Compare June 13, 2024 08:15
@mateuszjenek mateuszjenek merged commit 62b53f6 into main Jun 13, 2024
3 checks passed
@mateuszjenek mateuszjenek deleted the validate_score_local_when_no_org branch June 13, 2024 08:16
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