Skip to content

Conversation

Anemy
Copy link
Member

@Anemy Anemy commented Sep 8, 2020

This PR adds a Help and Feedback panel with links to different resources:
Screen Shot 2020-09-08 at 6 57 18 PM
Screen Shot 2020-09-08 at 6 57 12 PM

Open qs:

  • For reporting bugs do we want to link them to github or jira?

Tweaking the icons still a bit with Claudia, figured I'd open the PR now since its mostly styles.

@Anemy Anemy requested a review from alenakhineika September 8, 2020 17:00
Copy link
Contributor

@alenakhineika alenakhineika left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it would be nice to play with icon's sizes. Now also because they have a different shape, they look sometimes much bigger than text, or very small like MongoDB leaf. Looking forward to seeing the final version! This help panel should be very useful for users.


deactivate(): void {
if (this._treeView) {
this._treeView.dispose();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wonder what will happen if we do not dispose when deactivate?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I understand, disposing cleans up the listeners we create in activateTreeViewEventHandlers (treeView.onDidChangeSelection)
https://vscode-docs.readthedocs.io/en/stable/extensions/patterns-and-principles/#disposables
I think it's something we want to keep, just to make sure we clean up a bit.

};

public async activatePlaygroundsTreeView(): Promise<void> {
public activatePlaygroundsTreeView(): void {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


const micromatch = require('micromatch');
const log = createLogger('explorer controller');
const log = createLogger('playgrounds tree controller');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

? vscode.FileType.Directory
: this.fsStat.isSymbolicLink()
? vscode.FileType.SymbolicLink
: vscode.FileType.Unknown;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have any additional settings in your vscode different from what we have in .vscode/settings.json?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eslint is doing this one - it's also complaining that it's too many layers of ternary 😅

}

private getFileNames(path: string): Promise<string[]> {
private getFileNames(filePath: string): Promise<string[]> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😏👍

@alenakhineika
Copy link
Contributor

Tested links and collapsing state, everything works well! When tests are fixed and icons updated can be merged 👌

@Anemy Anemy merged commit caa3643 into master Sep 10, 2020
@Anemy Anemy deleted the VSCODE-163/add-resources-panel branch September 10, 2020 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants