@@ -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 {
@@ -298,6 +298,8 @@ import {
298
298
} from '../common/protocol/survey-service' ;
299
299
import { WindowContribution } from './theia/core/window-contribution' ;
300
300
import { WindowContribution as TheiaWindowContribution } from '@theia/core/lib/browser/window-contribution' ;
301
+ import { WidgetManager } from './theia/core/widget-manager' ;
302
+ import { WidgetManager as TheiaWidgetManager } from '@theia/core/lib/browser/widget-manager' ;
301
303
302
304
MonacoThemingService . register ( {
303
305
id : 'arduino-theme' ,
@@ -506,9 +508,7 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
506
508
rebind ( TheiaKeymapsFrontendContribution )
507
509
. to ( KeymapsFrontendContribution )
508
510
. inSingletonScope ( ) ;
509
- rebind ( TheiaEditorPreviewContribution )
510
- . to ( EditorPreviewContribution )
511
- . inSingletonScope ( ) ;
511
+ rebind ( TheiaEditorContribution ) . to ( EditorContribution ) . inSingletonScope ( ) ;
512
512
rebind ( TheiaMonacoStatusBarContribution )
513
513
. to ( MonacoStatusBarContribution )
514
514
. inSingletonScope ( ) ;
@@ -787,6 +787,10 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
787
787
bind ( DebugConfigurationManager ) . toSelf ( ) . inSingletonScope ( ) ;
788
788
rebind ( TheiaDebugConfigurationManager ) . toService ( DebugConfigurationManager ) ;
789
789
790
+ // To avoid duplicate tabs use deepEqual instead of string equal: https://github.com/eclipse-theia/theia/issues/11309
791
+ bind ( WidgetManager ) . toSelf ( ) . inSingletonScope ( ) ;
792
+ rebind ( TheiaWidgetManager ) . toService ( WidgetManager ) ;
793
+
790
794
// Preferences
791
795
bindArduinoPreferences ( bind ) ;
792
796
0 commit comments