Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Factor the root folder into account when revealing the active file - #1167

Merged
winstliu merged 1 commit into
masterfrom
wl-reveal-active-file
Aug 22, 2017
Merged

winstliu merged 1 commit into
masterfrom
wl-reveal-active-file

Conversation

@winstliu

Copy link
Copy Markdown
Contributor

Requirements

  • Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
  • All new code requires tests to ensure against regressions

Description of the Change

Previously, if the root folder was collapsed and the tree-view:reveal-active-file command was triggered, the function wouldn't attempt to explicitly expand the root folder, leading to an off-by-one error and the file not getting focused. To fix this, some manual adjustment of the paths has been introduced.

Alternate Designs

None.

Benefits

tree-view:reveal-active-file will work correctly when the root folder is collapsed.

Possible Drawbacks

None.

Applicable Issues

Fixes #188

@winstliu
winstliu merged commit a0e553f into master Aug 22, 2017
@winstliu
winstliu deleted the wl-reveal-active-file branch August 22, 2017 20:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reveal in tree view does not highlight file if project folder is collapsed

1 participant