-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Move from Gitlens to the library the columns settings button #2807
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
Move from Gitlens to the library the columns settings button #2807
Conversation
758fc0d to
1177805
Compare
axosoft-ramint
left a comment
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, but since we are releasing GitLens tomorrow, let's hold off on merging this in. Since this proves it can work with the settings button in the graph component, I think you can merge the component-side PR and update the library version so you can use it in GKC @ericf-axosoft
axosoft-ramint
left a comment
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.
Include dependency bump before merge.
1177805 to
37dcaa9
Compare
| <button | ||
| className="column-button" | ||
| type="button" | ||
| role="button" | ||
| data-vscode-context={context?.settings || JSON.stringify({ webviewItem: 'gitlens:graph:settings' })} | ||
| onClick={handleToggleColumnSettings} | ||
| > | ||
| <span className="codicon codicon-settings-gear" aria-label="Column Settings"></span> | ||
| </button> |
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.
This was removed, but how can GitLens provide the data-vscode-context now? @ericf-axosoft @axosoft-ramint
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.
The graph sets the data-vscode-context for the button by using the actual contexts.settings input property provided by Gitlens.
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.
Yep, we pass context to the graph as a prop contexts and context.settings makes it to the button via the prop as contexts.settings
Summary of changes:
Notes
Tasks
230
Internal task:
GK.3665