File tree 1 file changed +29
-29
lines changed
1 file changed +29
-29
lines changed Original file line number Diff line number Diff line change @@ -89,35 +89,35 @@ export type GenericClassDecorator<T> = (target: T) => void;`,
89
89
} ;
90
90
91
91
molecule . editor . onUpdateTab ( ( newTab ) => {
92
- const { current } = molecule . editor . getState ( ) ;
93
- const tab = current ?. tab ! ;
94
- molecule . editor . updateTab (
95
- {
96
- id : tab . id ,
97
- data : {
98
- ...tab . data ,
99
- modified : true ,
100
- } ,
101
- } ,
102
- current ?. id || - 1
103
- ) ;
104
- // TODO editorService add onSaveEditor() event.
105
- current ?. editorInstance . addCommand (
106
- monaco . KeyMod . CtrlCmd | monaco . KeyCode . KEY_S ,
107
- ( ) => {
108
- // ctrl + s
109
- molecule . editor . updateTab (
110
- {
111
- id : tab . id ,
112
- data : {
113
- ...tab . data ,
114
- modified : false ,
115
- } ,
116
- } ,
117
- current ?. id || - 1
118
- ) ;
119
- }
120
- ) ;
92
+ // const { current } = molecule.editor.getState();
93
+ // const tab = current?.tab!;
94
+ // molecule.editor.updateTab(
95
+ // {
96
+ // id: tab.id,
97
+ // data: {
98
+ // ...tab.data,
99
+ // modified: true,
100
+ // },
101
+ // },
102
+ // current?.id || -1
103
+ // );
104
+ // // TODO editorService add onSaveEditor() event.
105
+ // current?.editorInstance.addCommand(
106
+ // monaco.KeyMod.CtrlCmd | monaco.KeyCode.KEY_S,
107
+ // () => {
108
+ // // ctrl + s
109
+ // molecule.editor.updateTab(
110
+ // {
111
+ // id: tab.id,
112
+ // data: {
113
+ // ...tab.data,
114
+ // modified: false,
115
+ // },
116
+ // },
117
+ // current?.id || -1
118
+ // );
119
+ // }
120
+ // );
121
121
} ) ;
122
122
let notify ;
123
123
const addANotification = function ( ) {
You can’t perform that action at this time.
0 commit comments