Skip to content

Commit a782179

Browse files
author
Akos Kitta
committed
Fixed EditorManager binding.
Do not create a new instance per preferences transaction. Closes #1062 Signed-off-by: Akos Kitta <[email protected]>
1 parent f61a160 commit a782179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)