-
Notifications
You must be signed in to change notification settings - Fork 13
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
Associate Camel K schema when modeline is available #483
Associate Camel K schema when modeline is available #483
Conversation
apupier
commented
Jul 16, 2020
•
edited
Loading
edited
f6b5f4c
to
b6b90bd
Compare
this is failing due to redhat-developer/vscode-yaml#323 (well more that VS Code Kubernetes extension is throwing an error but it will be more robust if the error is caught at VS Code Yaml level) |
971cf95
to
782ac3d
Compare
782ac3d
to
d92ae0b
Compare
a59621e
to
b187d49
Compare
} | ||
|
||
function getCamelKSchemaUrl(): string { | ||
return 'https://raw.githubusercontent.com/apache/camel-k-runtime/master/camel-k-loader-yaml/camel-k-loader-yaml/src/generated/resources/camel-yaml-dsl.json'; |
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.
hardcoded. planning to provide a settings to let user modify it in another task https://issues.redhat.com/browse/FUSETOOLS2-571
d818db0
to
458ed19
Compare
job is green on CI, github is not updatign the status: https://travis-ci.org/github/camel-tooling/vscode-camelk/builds/719861172 |
&& textDocument.getText().startsWith(CAMELK_MODELINE_PREFIX)) { | ||
return CAMELK_SCHEMA_URI_PREFIX + resource; | ||
} | ||
return undefined; |
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.
I think that is the default if you don't specify it, but I could be wrong.
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.
if you are not sure, it means that it is easier to understand when specifying it
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.
yeah, was just thinking loud. I am fine with the current way you handle it.
458ed19
to
a850f95
Compare
@apupier -- What's the use case for this? User creates a new, blank yaml and wants to create a camel k file? Not arguing that it's not helpful, but wondering where the user is coming at this from. If they create a new yaml Camel K file through the Camel K extension, this is done for them already, right? |
Camel K developers doesn't want to impose *.camelk.yaml file name pattern.
coming at request from Luca
no, when creating from Command Palette, it is reusing the kamel init command and then it is creating with .yaml and not .camelk.yaml |
specified and the filename doesn't match the file name pattern Signed-off-by: Aurélien Pupier <[email protected]>
a850f95
to
3f90ee0
Compare