File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,15 @@ class LanguageServerApiManager {
6565 } ) ) ;
6666 }
6767
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+
6877 if ( this . extensionApi ?. serverMode === LanguageServerMode . LightWeight ) {
6978 if ( extensionApi . onDidServerModeChange ) {
7079 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> {
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 ( ) ;
You can’t perform that action at this time.
0 commit comments