-
Notifications
You must be signed in to change notification settings - Fork 36
Change explorer panel styling #348
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
base: main
Are you sure you want to change the base?
Conversation
@@ -33,4 +34,6 @@ export function activate(context: ExtensionContext) { | |||
copyPullRequest.run(), | |||
); | |||
context.subscriptions.push(copyPullRequestCmd); | |||
const decorationProvider = new FileDecorationProvider(); |
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.
why are you registering this with the commands?
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 had added since I wanted to register the decoration provider when extension activates.
But my bad, have refactored the code to separate UI decorations from commands
@@ -1,8 +1,9 @@ | |||
import { commands, ExtensionContext } from 'vscode'; | |||
import { commands, ExtensionContext, window } from 'vscode'; |
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.
Where is window used?
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.
On line 42 to register the decoration provider
import { CopyBitbucketPullRequestCommand } from './command-copy-pullreqest'; | ||
import { OpenInBitbucketCommand } from './command-open'; | ||
import { OpenBitbucketChangesetCommand } from './command-open-changeset'; | ||
import { OpenBitbucketPullRequestCommand } from './command-open-pullrequest'; | ||
import { FileDecorationProvider } from 'src/views/nodes/pullRequestFilesNode'; |
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.
Are src/
URLs working in the 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.
Yeah they are, I didn't have idea about reasons for not using them.
Any specific cons?
@@ -68,28 +123,14 @@ export class PullRequestFilesNode extends AbstractBaseNode { | |||
title: 'Diff file', | |||
arguments: this.diffViewData.diffArgs, | |||
}; | |||
|
|||
item.contextValue = `${PullRequestContextValue}${this.checked ? '.checked' : ''}`; |
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.
Are these not changes from the previous PR?
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.
0dd20d0
to
5b92062
Compare
What Is This Change?
This PR includes styling changes around displaying filenames in bitbucket pullrequest explorer panel,
How Has This Been Tested?
Basic checks:
npm run lint
npm run test
Advanced checks:
Recommendations: