( editor: MonacoType.editor.IStandaloneCodeEditor, model: MonacoType.editor.ITextModel | null | undefined )
| 31 | }; |
| 32 | |
| 33 | export const storeViewState = ( |
| 34 | editor: MonacoType.editor.IStandaloneCodeEditor, |
| 35 | model: MonacoType.editor.ITextModel | null | undefined |
| 36 | ) => { |
| 37 | if (!model) return; |
| 38 | viewStateMapByUri.set(model.uri.toString(), editor.saveViewState()); |
| 39 | }; |
| 40 | |
| 41 | export const restoreViewState = ( |
| 42 | editor: MonacoType.editor.IStandaloneCodeEditor, |
no test coverage detected