Skip to content

Commit bd088da

Browse files
author
Akos Kitta
committed
Do not create a new EditorManager instance per
preferences transaction. Closes #1062 Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
1 parent 7abb8cd commit bd088da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino-ide-extension/src/browser/arduino-ide-frontend-module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
572572

573573
// Disabled reference counter in the editor manager to avoid opening the same editor (with different opener options) multiple times.
574574
bind(EditorManager).toSelf().inSingletonScope();
575-
rebind(TheiaEditorManager).to(EditorManager);
575+
rebind(TheiaEditorManager).toService(EditorManager);
576576

577577
// replace search icon
578578
rebind(TheiaSearchInWorkspaceFactory)

0 commit comments

Comments
 (0)