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

listen on rootFolderChanged #2353

Merged
merged 1 commit into from
Sep 25, 2019
Merged

listen on rootFolderChanged #2353

merged 1 commit into from
Sep 25, 2019

Conversation

yann300
Copy link
Collaborator

@yann300 yann300 commented Sep 19, 2019

That happen when remixd is started and change its target folder: the explorer need to be warned and update accordingly: reload the root folder.
EDIT: this is used when we run remix IDE with electron

@@ -42,6 +42,9 @@ module.exports = class RemixDProvider {
this.event.trigger('fileExternallyChanged', [path, content])
}
})
} else if (data.name === 'rootFolderChanged') {
// new path has been set, we should reset
this.event.trigger('folderAdded', [this.type + '/'])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we remove the old one?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think that 's ok

@yann300 yann300 merged commit d364658 into master Sep 25, 2019
@yann300 yann300 deleted the yann300-patch-79 branch September 29, 2019 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants