Skip to content

Commit 67ade2c

Browse files
committed
Update 'java:noJavaProjects' context when it's changed
Signed-off-by: Sheng Chen <[email protected]>
1 parent 6ff284d commit 67ade2c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/views/dependencyDataProvider.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,7 @@ export class DependencyDataProvider implements TreeDataProvider<ExplorerNode> {
197197
this._rootItems = rootItems;
198198
}
199199
}
200-
if (_.isEmpty(rootItems)) {
201-
contextManager.setContextValue(Context.NO_JAVA_PROJECT, true);
202-
}
200+
contextManager.setContextValue(Context.NO_JAVA_PROJECT, _.isEmpty(rootItems));
203201
return rootItems;
204202
} finally {
205203
explorerLock.release();

0 commit comments

Comments
 (0)