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

Unify our various places where resources are being saved #29025

Closed
10 tasks
bpasero opened this issue Jun 19, 2017 · 4 comments
Closed
10 tasks

Unify our various places where resources are being saved #29025

bpasero opened this issue Jun 19, 2017 · 4 comments
Assignees
Labels
debt Code quality issues remote Remote system operations issues
Milestone

Comments

@bpasero
Copy link
Member

bpasero commented Jun 19, 2017

To enable full support of virtual document saving (starting with #10547):

  • make our dirty indicators outside the editor fit for this
  • support auto save (or not?)
  • support hot exit
  • support save participants
  • support to set the encoding for saving
  • support undo properly (undo enough to get back to saved state)
  • support to search through resources (today we only search file & untitled)
  • revisit our hardcoded assumptions in places like actions that only think file & untitled resources are editable
  • debt: make the confirmation dialog reusable
  • debt: reuse more code between file saving and resource saving
@bpasero bpasero added the debt Code quality issues label Jun 19, 2017
@bpasero bpasero added this to the On Deck milestone Jun 19, 2017
@bpasero bpasero self-assigned this Jun 19, 2017
@bpasero bpasero modified the milestones: On Deck, Backlog Aug 16, 2017
@bpasero bpasero modified the milestones: On Deck, Backlog Sep 12, 2017
@bpasero
Copy link
Member Author

bpasero commented Sep 12, 2017

/cc @jrieken @egamma this is the issue I captured on enabling resources to be writeable. It seems that we are picking this up again in September, so should I reserve time for it?

@jrieken
Copy link
Member

jrieken commented Sep 12, 2017

Well, at least the assumption for file and untitled need to be revisited. I have come a long way with my changes in #34229 so most might be just debt

debt: reuse more code between file saving and resource saving

What puzzles me is that the text model contains a lot of save-dupe code while I would have assumed that such things belong into the service

@jrieken jrieken added the remote Remote system operations issues label Sep 12, 2017
@bpasero
Copy link
Member Author

bpasero commented Sep 12, 2017

What puzzles me is that the text model contains a lot of save-dupe code while I would have assumed that such things belong into the service

Yeah, a lot of that code is from time where we had no services ;)

@bpasero
Copy link
Member Author

bpasero commented Sep 13, 2017

@jrieken so it seems your changes basically enable to use ITextFileEditorModel with resources that are not file:// scheme. Maybe we should just rename our ResourceInput/Model to ReadonlyResourceInput/Model and the file related classes to EditableResourceInput/Model at some point. If so, it seems that there is remaining work left to:

  • revisit our various toResource calls and assumptions
  • make sure we are not using URI.file unless the client is really about dealing only with files

@bpasero bpasero modified the milestones: On Deck, Backlog Oct 10, 2017
@bpasero bpasero closed this as completed Nov 15, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debt Code quality issues remote Remote system operations issues
Projects
None yet
Development

No branches or pull requests

2 participants