-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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(scm): add visibility variable in plugin API #11412
Conversation
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've modified your PR message (added a test step 0 and that it closes another PR), I hope that's fine with you.
I've also noticed that the changes in the PR don't lead to the actual input box being made visible/invisible:
2022-07-12.11-28-14.mp4
I believe there might be some code missing at this place:
theia/packages/scm/src/browser/scm-commit-widget.tsx
Lines 134 to 145 in 9d4ab29
<TextareaAutosize | |
className={`${ScmCommitWidget.Styles.INPUT_MESSAGE} theia-input theia-scm-input-message-${validationStatus}`} | |
id={ScmCommitWidget.Styles.INPUT_MESSAGE} | |
placeholder={message} | |
spellCheck={false} | |
autoFocus={true} | |
value={input.value} | |
onChange={this.setInputValue} | |
ref={this.inputRef} | |
rows={1} | |
maxRows={6} /* from VS Code */> | |
</TextareaAutosize> |
Thanks!
I'll look into this - thanks for the pointer! |
I added a change so that the |
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.
With the recent changes, the intended functionality appears to be in place. Some minor comments on the React side of things.
Co-authored-by: Olaf Lessenich <olessenich@eclipsesource.com> Contributed on behalf of STMicroelectronics Signed-off-by: Olaf Lessenich <olessenich@eclipsesource.com>
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.
Thanks, the changes look good to me. I can confirm that the SourceControlInputBox#visible
property behaves as in vscode 👍
What it does
Adds support to specify whether a SourceControlInputBox is visible
Contributed on behalf of STMicroelectronics
Signed-off-by: Olaf Lessenich olessenich@eclipsesource.com
Fixes #11140
Closes #11348
How to test
@theia/git
extension from your build to correctly test this.SourceControlInputBox: Status
which is provided by the extension to display the properties ofsourceControl.inputBox
. Verify that a Booleanvisible
property is present.SourceControlInputBox: Hide
andSourceControlInputBox: Show
to manipulate the respective Boolean. Verify the change withSourceControlInputBox: Status
.)Review checklist
Reminder for reviewers