Please feel free to provide feedback or file bugs here.

Windows PowerShell ISE: Add ability to save/load session state

Votes from Connect: 33

Original Date Submitted: 6/20/2013 11:48:19 PM

Description:
********Contact Information********
Handle: deadlydog
Site Name: PowerShell
Feedback ID: 790578
***************************************

Frequency: Always Happens
Regression: Yes, this happens in all previous versions

Problem Description:
It would be great if PS ISE had the ability to allow you to save and restore all of your open tabs and files. Ideally, there would be an option to automatically save the session when ISE is closed, and automatically load it when ISE is started.

The PowerShell Team has blogged about how to save/load your session by writing an add-on (http://blogs.msdn.com/b/powershell/archive/2010/06/05/export-and-import-powershell-ise-opened-files.aspx), and I have blogged about how to automatically load the session when ISE starts using their solution (http://blog.danskingdom.com/powershell-ise-multiline-comment-and-uncomment-done-right-and-other-ise-gui-must-haves/), but it would be great if this functionality was provided out of the box.

Product Studio item created by Connect Synchronizer due to creation of feedback ID 790578 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=790578).

Repro Steps:
Open some files in PS ISE and then close ISE. When you open ISE again the tabs and files that you had open will not be automatically opened. You will need to go open each file again.

Expected Results:
When opening ISE any tabs and files that you had open previously should be restored.

Internal BugId: 4258

28 votes
Sign in
(thinking…)
Sign in with: Facebook Google
Signed in as (Sign out)

We’ll send you updates on this idea

AdminJoey Aiello [MSFT] (Program Manager, Windows Server) shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

2 comments

Sign in
(thinking…)
Sign in with: Facebook Google
Signed in as (Sign out)
Submitting...
  • LUVoice commented  ·   ·  Flag as inappropriate

    Funnily enough, a crashed powershell ISE session will re-open previously open documents. So, yeah, why not preserve this information on normal closure?

    (There was a bug, though, when a crash recovery happened to me recently - the session/file which I had originally opened in standard user context (no elevation) recovered in High integrity level (aka elevated/admin), but the session/files which I had originally opened in elevated mode recovered in Medium integrity level (aka standard user mode). Am logging it as a separate bug. Need to consider this issue for normal ISE closure/re-opening, too.

Feedback and Knowledge Base