@@ -42,8 +42,8 @@ import { FileNavigatorContribution as TheiaFileNavigatorContribution } from '@th
42
42
import { KeymapsFrontendContribution } from './theia/keymaps/keymaps-frontend-contribution' ;
43
43
import { KeymapsFrontendContribution as TheiaKeymapsFrontendContribution } from '@theia/keymaps/lib/browser/keymaps-frontend-contribution' ;
44
44
import { ArduinoToolbarContribution } from './toolbar/arduino-toolbar-contribution' ;
45
- import { EditorPreviewContribution as TheiaEditorPreviewContribution } from '@theia/editor-preview /lib/browser/editor-preview -contribution' ;
46
- import { EditorPreviewContribution } from './theia/editor/editor-contribution' ;
45
+ import { EditorContribution as TheiaEditorContribution } from '@theia/editor/lib/browser/editor-contribution' ;
46
+ import { EditorContribution } from './theia/editor/editor-contribution' ;
47
47
import { MonacoStatusBarContribution as TheiaMonacoStatusBarContribution } from '@theia/monaco/lib/browser/monaco-status-bar-contribution' ;
48
48
import { MonacoStatusBarContribution } from './theia/monaco/monaco-status-bar-contribution' ;
49
49
import {
@@ -300,6 +300,8 @@ import { WindowContribution } from './theia/core/window-contribution';
300
300
import { WindowContribution as TheiaWindowContribution } from '@theia/core/lib/browser/window-contribution' ;
301
301
import { CoreErrorHandler } from './contributions/core-error-handler' ;
302
302
import { CompilerErrors } from './contributions/compiler-errors' ;
303
+ import { WidgetManager } from './theia/core/widget-manager' ;
304
+ import { WidgetManager as TheiaWidgetManager } from '@theia/core/lib/browser/widget-manager' ;
303
305
304
306
MonacoThemingService . register ( {
305
307
id : 'arduino-theme' ,
@@ -509,9 +511,7 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
509
511
rebind ( TheiaKeymapsFrontendContribution )
510
512
. to ( KeymapsFrontendContribution )
511
513
. inSingletonScope ( ) ;
512
- rebind ( TheiaEditorPreviewContribution )
513
- . to ( EditorPreviewContribution )
514
- . inSingletonScope ( ) ;
514
+ rebind ( TheiaEditorContribution ) . to ( EditorContribution ) . inSingletonScope ( ) ;
515
515
rebind ( TheiaMonacoStatusBarContribution )
516
516
. to ( MonacoStatusBarContribution )
517
517
. inSingletonScope ( ) ;
@@ -791,6 +791,10 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
791
791
bind ( DebugConfigurationManager ) . toSelf ( ) . inSingletonScope ( ) ;
792
792
rebind ( TheiaDebugConfigurationManager ) . toService ( DebugConfigurationManager ) ;
793
793
794
+ // To avoid duplicate tabs use deepEqual instead of string equal: https://github.com/eclipse-theia/theia/issues/11309
795
+ bind ( WidgetManager ) . toSelf ( ) . inSingletonScope ( ) ;
796
+ rebind ( TheiaWidgetManager ) . toService ( WidgetManager ) ;
797
+
794
798
// Preferences
795
799
bindArduinoPreferences ( bind ) ;
796
800
0 commit comments