-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
misc fixes #704
misc fixes #704
Conversation
* add `TriggerablePromise` * rename `getNodeByClass` to `getRootByClass`
if (parent) { | ||
children = parent.children; | ||
} | ||
getChildByClass(clazz, parent) { |
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.
@MiccWan move to BaseTreeViewNode
const searchResultNode = this.treeDataProvider.getNodeByClass(GlobalSearchNode); | ||
await this.treeView.reveal(searchResultNode, { select: false, expand: 1 }); | ||
const searchResultNode = this.treeDataProvider.getRootByClass(GlobalSearchNode); | ||
try { |
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.
@MiccWan if (!this.treeView.visible) { return; }
@@ -0,0 +1,55 @@ | |||
import sleep from './sleep'; | |||
|
|||
export default class TriggerablePromise { |
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.
rename to SyncPromise
. These are generally used to let outside threads/actors wait for/synchronize against an asynchronous operation.
contexts = node.group.contexts; | ||
} | ||
else { | ||
throw new Error(`Calling "_handleContextNodeDisposed" with non-ContextNode parameter`); |
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.
add node
to the message, so we (kinda) know what it is?
#702