question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enhance unused reference feature to support undo/redo

See original GitHub issue

We would like the API implemented in https://github.com/dotnet/project-system/pull/6692 enhanced with the ability to re-add a reference that has been removed.

One possibility is a new UpdateAction.Add In particular the call to IProjectSystemReferenceCleanupService.GetProjectReferenceAsync would need to be enhanced so that we capture enough information about each reference that it could be recreated from the ProjectSystemReferenceInfo model. This information may need to include the position in the project file where the reference would be inserted. Next the IProjectSystemReferenceCleanupService.TryUpdateReferenceAsync would need to be updated to support an ProjectSystemUpdateAction.Add scenario where, given this enhacned ReferenceInfo model, a reference is added to the project file.

Another possibility is that we share the same undo context The IProjectSystemReferenceCleanupService.TryUpdateReferenceAsync could return a OleUndoUnit or we could pass in a UndoTransaction of sorts.

Tracked in DevOps 1348735

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:20 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
JoeRobichcommented, Mar 24, 2021

@jjmew It would be coarse-grained but we could have the proposed Undo() and Redo() methods return bool indicating success. We would then inform the user on our end.

0reactions
drewnoakescommented, Nov 24, 2022

@ocallesp do you recall which version this was fixed in?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Undo/Redo with server support in ngrx 4 - angular
Goal: Implementing undo/redo functionality with server side support in Angular 4 project. For example, deleting an item from the server must be ...
Read more >
Multilevel Undo and Redo Implementation in C# - Part I ...
To support Undo /Redo for insert and delete, we will keep the reference of the geometric object. Step 3. Now we will make ......
Read more >
Edit > Undo, Redo, Repeat - Autodesk Maya Online Help
Edit > Undo, Redo, Repeat · Edit > Recent Commands List · Edit > Cut · Edit > Copy · Edit > Paste...
Read more >
Undo, redo, or repeat an action
You can undo, redo, or repeat many actions in Microsoft Word, PowerPoint, and Excel. You can undo changes, even after you have saved,...
Read more >
Precedents & Dependents
The Pro Dependents dialog navigates an audited cell's dependencies similar to how Pro Precedents navigates precedents. Other features include:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found