-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[server] infer extensions and add a comment #7392
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
Conversation
/werft run 👎 cannot start job - please talk to whoever's in charge of your Werft installation |
/werft run 👍 started the job as gitpod-build-se-more-inference.2 |
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.
/approve no-issue /werft run 👍 started the job as gitpod-build-se-more-inference.3 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jankeromnes Associated issue requirement bypassed by: jankeromnes The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -36,6 +37,11 @@ export class ConfigInferrer { | |||
return ctx.config; | |||
} | |||
|
|||
protected async checkYaml(ctx: Context): Promise<void> { | |||
// always add the YAML extension to support .gitpod.yml editing | |||
this.addExtension(ctx, 'redhat.vscode-yaml'); |
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.
We already always install it in VS Code, i.e. it is built-in extension.
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.
Removed it 🙏
@svenefftinge You should look at product.json of VS Code in your machine for inspiration of hints based on repo content. |
1adb280
to
9fb5eee
Compare
Thanks, it's not the main intention to of this PR to have a complete list, but rather make a few non-controversial suggestions. Should definitely be further improved over time. |
This commit adds vcode extensions to the inferred .gitpod.yml and adds a comment to the top, that links to the documentation.
9fb5eee
to
5feca43
Compare
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.
Looks good to me and works like a charm! 🧙
I see a few more potential small improvements, but these can definitely be done as follow-ups, so unblocking this outstanding PR. 🚀
return `# This configuration file was automatically generated by Gitpod. | ||
# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file) | ||
# and commit this file to your remote git repository to share the goodness with others. |
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'm not sure about the phrasing "to share the goodness with others", but I don't have a better proposal right now.
@gtsiolis Would you have any suggestions to improve this comment? (It's added to every auto-generated .gitpod.yml
when you open a Gitpod workspace for any repository that doesn't already have one.)
Note: Let's not block this PR, but work on a better comment in a follow-up PR.
${configString} | ||
`; |
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.
No need to add a second empty line at the bottom of the file (can also be fixed in a follow-up):
${configString} | |
`; | |
${configString}`; |
LGTM label has been added. Git tree hash: 38c422ae7e3d40a90361bf013b266762d55d97c9
|
This commit adds vscode extensions to the inferred
.gitpod.yml
and adds a comment to the top, that links to the documentation.follow up to: #7383
How to test
Start workspaces on repositories without
.gitpod.yml
and check the generated.gitpod.yml
.Release Notes