Free cookie consent management tool by TermsFeed Policy Generator

Opened 5 years ago

Closed 5 years ago

#2967 closed defect (done)

Ctrl+Z removes all code in C# scripts

Reported by: abeham Owned by: jkarder
Priority: medium Milestone: HeuristicLab 3.3.16
Component: Scripting Version: trunk
Keywords: Cc:


Create a new script and press Ctrl+Z.

Expected: Nothing happens.

Result: The whole script is gone.

Probably, in some way the "before" state of the script is initialized to empty.

Change History (7)

comment:1 Changed 5 years ago by jkarder

  • Owner set to jkarder
  • Status changed from new to accepted

comment:2 Changed 5 years ago by jkarder

r16528: fixed ctrl+z removing all code and improved code handling in programmable operators

comment:3 Changed 5 years ago by jkarder

  • Version set to trunk

comment:4 Changed 5 years ago by jkarder

  • Owner changed from jkarder to abeham
  • Status changed from accepted to reviewing

I have also made some changes within the ProgrammableOperator and its view. The code editor that is used there creates some protected areas within the code that cannot be edited directly (e.g. the using directives) or at all (e.g. the method signature). Using directives can be added/removed by (un-)checking the respective tree nodes on the left. Previously, all using directives where shown in the code editor and adding/removing a directive was recorded in the edit history of the code editor. This lead to inconsistent states between tree view and code and also caused problems with the protected areas. Using directives are therefore not shown anymore.

comment:5 Changed 5 years ago by abeham

  • Owner changed from abeham to jkarder
  • Status changed from reviewing to readytorelease

Reviewed r16528, tested C# Script and ProgrammableAnalyzer in the GUI.

comment:6 Changed 5 years ago by gkronber

r16832: merged r16528 from trunk to stable

comment:7 Changed 5 years ago by gkronber

  • Resolution set to done
  • Status changed from readytorelease to closed
Note: See TracTickets for help on using tickets.