@@ -141,8 +141,6 @@ import { WorkspaceDeleteHandler } from './theia/workspace/workspace-delete-handl
141141import { TabBarToolbar } from './theia/core/tab-bar-toolbar' ;
142142import { EditorWidgetFactory as TheiaEditorWidgetFactory } from '@theia/editor/lib/browser/editor-widget-factory' ;
143143import { EditorWidgetFactory } from './theia/editor/editor-widget-factory' ;
144- import { OutputWidget as TheiaOutputWidget } from '@theia/output/lib/browser/output-widget' ;
145- import { OutputWidget } from './theia/output/output-widget' ;
146144import { BurnBootloader } from './contributions/burn-bootloader' ;
147145import {
148146 ExamplesServicePath ,
@@ -215,7 +213,10 @@ import { SearchInWorkspaceFactory } from './theia/search-in-workspace/search-in-
215213import { SearchInWorkspaceResultTreeWidget as TheiaSearchInWorkspaceResultTreeWidget } from '@theia/search-in-workspace/lib/browser/search-in-workspace-result-tree-widget' ;
216214import { SearchInWorkspaceResultTreeWidget } from './theia/search-in-workspace/search-in-workspace-result-tree-widget' ;
217215import { MonacoEditorProvider } from './theia/monaco/monaco-editor-provider' ;
218- import { MonacoEditorProvider as TheiaMonacoEditorProvider } from '@theia/monaco/lib/browser/monaco-editor-provider' ;
216+ import {
217+ MonacoEditorFactory ,
218+ MonacoEditorProvider as TheiaMonacoEditorProvider ,
219+ } from '@theia/monaco/lib/browser/monaco-editor-provider' ;
219220import { StorageWrapper } from './storage-wrapper' ;
220221import { NotificationManager } from './theia/messages/notifications-manager' ;
221222import { NotificationManager as TheiaNotificationManager } from '@theia/messages/lib/browser/notifications-manager' ;
@@ -332,6 +333,7 @@ import {
332333 LibraryFilterRenderer ,
333334} from './widgets/component-list/filter-renderer' ;
334335import { CheckForUpdates } from './contributions/check-for-updates' ;
336+ import { OutputEditorFactory } from './theia/output/output-editor-factory' ;
335337
336338const registerArduinoThemes = ( ) => {
337339 const themes : MonacoThemeJson [ ] = [
@@ -587,8 +589,6 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
587589 return container . get ( TabBarToolbar ) ;
588590 }
589591 ) ;
590- bind ( OutputWidget ) . toSelf ( ) . inSingletonScope ( ) ;
591- rebind ( TheiaOutputWidget ) . toService ( OutputWidget ) ;
592592 bind ( OutputChannelManager ) . toSelf ( ) . inSingletonScope ( ) ;
593593 rebind ( TheiaOutputChannelManager ) . toService ( OutputChannelManager ) ;
594594 bind ( OutputChannelRegistryMainImpl ) . toSelf ( ) . inTransientScope ( ) ;
@@ -657,6 +657,11 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
657657 bind ( EditorMenuContribution ) . toSelf ( ) . inSingletonScope ( ) ;
658658 rebind ( TheiaEditorMenuContribution ) . toService ( EditorMenuContribution ) ;
659659
660+ // To disable the highlighting of non-unicode characters in the _Output_ view
661+ bind ( OutputEditorFactory ) . toSelf ( ) . inSingletonScope ( ) ;
662+ // Rebind to `TheiaOutputEditorFactory` when https://github.com/eclipse-theia/theia/pull/11615 is available.
663+ rebind ( MonacoEditorFactory ) . toService ( OutputEditorFactory ) ;
664+
660665 bind ( ArduinoDaemon )
661666 . toDynamicValue ( ( context ) =>
662667 WebSocketConnectionProvider . createProxy (
0 commit comments