-
Notifications
You must be signed in to change notification settings - Fork 275
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
feat(modeline): Modeline takes precendence over registerContributor API #806
feat(modeline): Modeline takes precendence over registerContributor API #806
Conversation
Problem: - Right now, when a file is watched by the registerContributor API a user has no way of overriding that schema. In certain cases, a user may want to override the schema provided by the registerContributor API on a file by file basis. Solution: - Make the modeline become a higher priority then the registerContributor API. That way users have the ability to always override the schema for the given file.
Any documentation/readme updates needed? |
For context, this is affecting aws/serverless-application-model#2645 |
Hey, welcome back @jpinkney-aws :) The suggested priority order makes sense. I will review it ASAP but can you also add a note to the README that modeline will override the extensions? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, may need a rebase but otherwise it is good.
@msivasubramaniaan Can you complete the review for this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What does this PR do?
Problem:
Solution:
What issues does this PR fix or reference?
aws/aws-toolkit-vscode#3012
Is it tested? How?