Skip to content
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

Watch the workspace changes at client #1244

Merged
merged 1 commit into from
Jul 29, 2021
Merged

Conversation

jdneo
Copy link
Member

@jdneo jdneo commented Jul 29, 2021

No description provided.

@jdneo jdneo requested a review from Eskibear July 29, 2021 03:05

final IPackageFragment packageFragment = (IPackageFragment) unit.getParent();
if (packageFragment == null || !(packageFragment instanceof IPackageFragment)) {
return Collections.emptyList();
Copy link
Member

Choose a reason for hiding this comment

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

what about the project level item you just added into result above?

Copy link
Member Author

Choose a reason for hiding this comment

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

Just forget about it since only one project node is not enough to resolve the entire path from root to leaf

@@ -21,6 +22,8 @@ export function createTestController(): void {
testController.resolveHandler = async (item: TestItem) => {
await loadChildren(item);
};

startWatchingWorkspace();
Copy link
Member

Choose a reason for hiding this comment

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

what if I add folder into workspace?

Copy link
Member Author

@jdneo jdneo Jul 29, 2021

Choose a reason for hiding this comment

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

Good catch, I filed an issue to track this item. Would like to fix it systematically after all the components code are ready. #1245

@jdneo jdneo merged commit f453aa8 into cs/1.0.0-feature Jul 29, 2021
@jdneo jdneo deleted the cs/watch-workspace branch July 29, 2021 07:46
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