Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 487617

Summary: Markdown editor loses content on a name change
Product: [ECD] Orion Reporter: Eric Moffatt <emoffatt>
Component: ClientAssignee: Grant Gayed <grant_gayed>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 13.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
State before renaming the .md file
none
State after renaming the file none

Description Eric Moffatt CLA 2016-02-10 13:48:57 EST
Just noticed that renaming a '.md' file causes it to lose its original display state.

Take a '.md' file, click on it so see the markdown editor
Now right-click the file in the nav and select 'Rename' (F2 doesn't work, next defect...;-). Type a new name an hit enter.

Notice that the content has been replaced. Hitting F5 doesn't restore the state but clicking on a folder then back on the file will bring back the correct display.
Comment 1 Eric Moffatt CLA 2016-02-10 13:50:54 EST
Created attachment 259691 [details]
State before renaming the .md file
Comment 2 Eric Moffatt CLA 2016-02-10 13:51:18 EST
Created attachment 259692 [details]
State after renaming the file
Comment 3 Grant Gayed CLA 2016-08-24 14:55:48 EDT
The url params were being dropped on the re-load, one of which specified the editor to open the file with.  JSON files opened with the JSON editor showed the same problem.

Fixed with commit: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=5d7a4fd8acdc95ee9f1c3a9ff139818ee86f4cba .