-
Notifications
You must be signed in to change notification settings - Fork 77
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
Add sync settings for java dependency viewer #156
Conversation
can you share some background about the purpose of this PR? |
Use javaConfig.json instead for PDE development. This name is temporarily. |
src/settings.ts
Outdated
@@ -19,10 +20,13 @@ export class Settings { | |||
&& updatedConfig.syncWithFolderExplorer)) { | |||
this._dependencyConfig = updatedConfig; | |||
commands.executeCommand(Commands.VIEW_PACKAGE_REFRESH); | |||
} else if (updatedConfig.autoRefresh !== this._dependencyConfig.autoRefresh) { | |||
SyncHandler.updateFileWatcher(Settings.autoRefresh()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to SyncHandler.updateFileWatcher(updatedConfig.autoRefresh)
@@ -19,10 +20,13 @@ export class Settings { | |||
&& updatedConfig.syncWithFolderExplorer)) { | |||
this._dependencyConfig = updatedConfig; | |||
commands.executeCommand(Commands.VIEW_PACKAGE_REFRESH); | |||
} else if (updatedConfig.autoRefresh !== this._dependencyConfig.autoRefresh) { | |||
SyncHandler.updateFileWatcher(Settings.autoRefresh()); | |||
} else { | |||
this._dependencyConfig = updatedConfig; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this line to the outer, make sure the cached config is synced with the latest.
test this please |
No description provided.