Skip to content
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

Merged
merged 2 commits into from
May 22, 2019
Merged

Add sync settings for java dependency viewer #156

merged 2 commits into from
May 22, 2019

Conversation

yaohaizh
Copy link
Contributor

No description provided.

@testforstephen
Copy link
Contributor

can you share some background about the purpose of this PR?

@yaohaizh
Copy link
Contributor Author

Use javaConfig.json instead for PDE development. This name is temporarily.

testforstephen
testforstephen previously approved these changes May 20, 2019
@yaohaizh yaohaizh changed the title Make the project suitable for VSCode PDE. Add sync settings for java dependency viewer May 21, 2019
jdneo
jdneo previously approved these changes May 21, 2019
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());
Copy link
Contributor

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;
Copy link
Contributor

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.

@yaohaizh
Copy link
Contributor Author

test this please

@yaohaizh yaohaizh merged commit ed676ce into master May 22, 2019
@Eskibear Eskibear deleted the sync branch August 15, 2019 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants