Skip to content

Commit

Permalink
Update 'java:noJavaProjects' context when it's changed
Browse files Browse the repository at this point in the history
Signed-off-by: Sheng Chen <sheche@microsoft.com>
  • Loading branch information
jdneo committed Nov 29, 2023
1 parent 6ff284d commit 67ade2c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/views/dependencyDataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,7 @@ export class DependencyDataProvider implements TreeDataProvider<ExplorerNode> {
this._rootItems = rootItems;
}
}
if (_.isEmpty(rootItems)) {
contextManager.setContextValue(Context.NO_JAVA_PROJECT, true);
}
contextManager.setContextValue(Context.NO_JAVA_PROJECT, _.isEmpty(rootItems));
return rootItems;
} finally {
explorerLock.release();
Expand Down

0 comments on commit 67ade2c

Please sign in to comment.