File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,15 @@ class LanguageServerApiManager {
65
65
} ) ) ;
66
66
}
67
67
68
+ if ( extensionApi . onDidProjectsDelete ) {
69
+ const onDidProjectsDelete : Event < Uri [ ] > = extensionApi . onDidProjectsDelete ;
70
+ contextManager . context . subscriptions . push ( onDidProjectsDelete ( ( ) => {
71
+ commands . executeCommand ( Commands . VIEW_PACKAGE_INTERNAL_REFRESH , /* debounce = */ true ) ;
72
+ syncHandler . updateFileWatcher ( Settings . autoRefresh ( ) ) ;
73
+ } ) ) ;
74
+
75
+ }
76
+
68
77
if ( this . extensionApi ?. serverMode === LanguageServerMode . LightWeight ) {
69
78
if ( extensionApi . onDidServerModeChange ) {
70
79
const onDidServerModeChange : Event < string > = extensionApi . onDidServerModeChange ;
Original file line number Diff line number Diff line change @@ -197,9 +197,7 @@ export class DependencyDataProvider implements TreeDataProvider<ExplorerNode> {
197
197
this . _rootItems = rootItems ;
198
198
}
199
199
}
200
- if ( _ . isEmpty ( rootItems ) ) {
201
- contextManager . setContextValue ( Context . NO_JAVA_PROJECT , true ) ;
202
- }
200
+ contextManager . setContextValue ( Context . NO_JAVA_PROJECT , _ . isEmpty ( rootItems ) ) ;
203
201
return rootItems ;
204
202
} finally {
205
203
explorerLock . release ( ) ;
You can’t perform that action at this time.
0 commit comments