@@ -141,8 +141,6 @@ import { WorkspaceDeleteHandler } from './theia/workspace/workspace-delete-handl
141
141
import { TabBarToolbar } from './theia/core/tab-bar-toolbar' ;
142
142
import { EditorWidgetFactory as TheiaEditorWidgetFactory } from '@theia/editor/lib/browser/editor-widget-factory' ;
143
143
import { 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' ;
146
144
import { BurnBootloader } from './contributions/burn-bootloader' ;
147
145
import {
148
146
ExamplesServicePath ,
@@ -215,7 +213,10 @@ import { SearchInWorkspaceFactory } from './theia/search-in-workspace/search-in-
215
213
import { SearchInWorkspaceResultTreeWidget as TheiaSearchInWorkspaceResultTreeWidget } from '@theia/search-in-workspace/lib/browser/search-in-workspace-result-tree-widget' ;
216
214
import { SearchInWorkspaceResultTreeWidget } from './theia/search-in-workspace/search-in-workspace-result-tree-widget' ;
217
215
import { 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' ;
219
220
import { StorageWrapper } from './storage-wrapper' ;
220
221
import { NotificationManager } from './theia/messages/notifications-manager' ;
221
222
import { NotificationManager as TheiaNotificationManager } from '@theia/messages/lib/browser/notifications-manager' ;
@@ -332,6 +333,7 @@ import {
332
333
LibraryFilterRenderer ,
333
334
} from './widgets/component-list/filter-renderer' ;
334
335
import { CheckForUpdates } from './contributions/check-for-updates' ;
336
+ import { OutputEditorFactory } from './theia/output/output-editor-factory' ;
335
337
336
338
const registerArduinoThemes = ( ) => {
337
339
const themes : MonacoThemeJson [ ] = [
@@ -587,8 +589,6 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
587
589
return container . get ( TabBarToolbar ) ;
588
590
}
589
591
) ;
590
- bind ( OutputWidget ) . toSelf ( ) . inSingletonScope ( ) ;
591
- rebind ( TheiaOutputWidget ) . toService ( OutputWidget ) ;
592
592
bind ( OutputChannelManager ) . toSelf ( ) . inSingletonScope ( ) ;
593
593
rebind ( TheiaOutputChannelManager ) . toService ( OutputChannelManager ) ;
594
594
bind ( OutputChannelRegistryMainImpl ) . toSelf ( ) . inTransientScope ( ) ;
@@ -657,6 +657,11 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
657
657
bind ( EditorMenuContribution ) . toSelf ( ) . inSingletonScope ( ) ;
658
658
rebind ( TheiaEditorMenuContribution ) . toService ( EditorMenuContribution ) ;
659
659
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
+
660
665
bind ( ArduinoDaemon )
661
666
. toDynamicValue ( ( context ) =>
662
667
WebSocketConnectionProvider . createProxy (
0 commit comments