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 cmake-tools-schema #3720

Merged
merged 5 commits into from
Apr 24, 2024
Merged

Conversation

gcampbell-msft
Copy link
Collaborator

@gcampbell-msft gcampbell-msft commented Apr 23, 2024

This change addresses item #3651

This changes our activation to help fix the issues where we weren't providing the localized schema.

This adds the onFileSystem:cmake-tools-schema activation event. If any file that has that schema is opened, we activate.

In short, because we possibly aren't activated yet when someone looks at a CMakePresets.json, the provideTextDocumentContent method isn't called once our extension is activated. Therefore, if we slightly fix our url for the presets and our activation events, this will fix the issues with the schema for CMakePresets.json

@gcampbell-msft gcampbell-msft merged commit 7793728 into main Apr 24, 2024
4 checks passed
@gcampbell-msft gcampbell-msft deleted the dev/gcampbell/cmake-tools-schema branch April 24, 2024 20:09
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.

Schema validation for cmake-variants.yaml doesn't work
2 participants