ryu1kn / vscode-partial-diff

Visual Studio Code Extension. Take a diff of 2 parts of text(s)
https://marketplace.visualstudio.com/items?itemName=ryu1kn.partial-diff
MIT License
184 stars 15 forks source link

Feature request: Update diff view when toggling normalization rules #24

Open stepbeta opened 6 years ago

stepbeta commented 6 years ago

Re: #18

When in a diff view, toggling normalization rules appears to do nothing. Closing the view and re-applying the comparison gives the expected result, though.

It would be quite nice if the view could be updated automatically, without the need to close it and re-open it.

ryu1kn commented 6 years ago

Memo. Programmatically closing an editor is not allowed; so probably cannot reopen it. Wonder if replacing the virtual document content works.

https://github.com/Microsoft/vscode/issues/39214

ryu1kn commented 6 years ago

Virtual documents are not editable (cf. https://github.com/Microsoft/vscode/issues/10547), seems FileSystemProvider is something I might be able to use to implement this feature.

refs