@@ -65,7 +65,7 @@ import { ListItemRenderer } from './widgets/component-list/list-item-renderer';
65
65
import { ColorContribution } from '@theia/core/lib/browser/color-application-contribution' ;
66
66
import { MonacoThemingService } from '@theia/monaco/lib/browser/monaco-theming-service' ;
67
67
import { ArduinoDaemonPath , ArduinoDaemon } from '../common/protocol/arduino-daemon' ;
68
- import { EditorManager as TheiaEditorManager } from '@theia/editor/lib/browser' ;
68
+ import { EditorManager as TheiaEditorManager , EditorCommandContribution as TheiaEditorCommandContribution } from '@theia/editor/lib/browser' ;
69
69
import { EditorManager } from './theia/editor/editor-manager' ;
70
70
import { FrontendConnectionStatusService , ApplicationConnectionStatusContribution } from './theia/core/connection-status-service' ;
71
71
import {
@@ -124,6 +124,7 @@ import { NotificationServicePath, NotificationServiceServer } from '../common/pr
124
124
import { About } from './contributions/about' ;
125
125
import { IconThemeService } from '@theia/core/lib/browser/icon-theme-service' ;
126
126
import { TabBarRenderer } from './theia/core/tab-bars' ;
127
+ import { EditorCommandContribution } from './theia/editor/editor-command' ;
127
128
128
129
const ElementQueries = require ( 'css-element-queries/src/ElementQueries' ) ;
129
130
@@ -341,4 +342,9 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
341
342
const iconThemeService = context . container . get < IconThemeService > ( IconThemeService ) ;
342
343
return new TabBarRenderer ( contextMenuRenderer , decoratorService , iconThemeService ) ;
343
344
} ) ;
345
+
346
+ // Workaround for https://github.com/eclipse-theia/theia/issues/8722
347
+ // Do not trigger a save on IDE startup if `"editor.autoSave": "on"` was set as a preference.
348
+ bind ( EditorCommandContribution ) . toSelf ( ) . inSingletonScope ( ) ;
349
+ rebind ( TheiaEditorCommandContribution ) . toService ( EditorCommandContribution ) ;
344
350
} ) ;
0 commit comments