Skip to content

Commit 6aafb90

Browse files
output: fix runtime-import-check errors
The commit fixes `runtime-import-check` errors in `@theia/output`, but properly organizing code that should be browser-specific outside of common. Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
1 parent 23e09c2 commit 6aafb90

14 files changed

+18
-21
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
- [task] `TaskDefinition.properties.required` is now optional to align with the specification [#10015](https://github.com/eclipse-theia/theia/pull/10015)
1414
- [core] `setTopPanelVisibily` renamed to `setTopPanelVisibility` [#10020](https://github.com/eclipse-theia/theia/pull/10020)
1515
- [application-manager] break `rebuild` API: second argument is now an optional object instead of an optional array.
16+
- [output] moved `output-channel` from `common` to `browser` []()
17+
- [output] moved `output-preferences` from `common` to `core` []()
1618

1719
## v1.17.2 - 9/1/2021
1820

examples/api-samples/src/browser/output/sample-output-channel-with-severity.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
********************************************************************************/
1616
import { FrontendApplicationContribution } from '@theia/core/lib/browser';
1717
import { inject, injectable, interfaces } from '@theia/core/shared/inversify';
18-
import { OutputChannelManager, OutputChannelSeverity } from '@theia/output/lib/common/output-channel';
18+
import { OutputChannelManager, OutputChannelSeverity } from '@theia/output/lib/browser/output-channel';
1919

2020
@injectable()
2121
export class SampleOutputChannelWithSeverity

packages/debug/src/browser/debug-session-connection.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import { DebugProtocol } from 'vscode-debugprotocol';
2020
import { Deferred } from '@theia/core/lib/common/promise-util';
2121
import { Event, Emitter, DisposableCollection, Disposable, MaybePromise } from '@theia/core';
22-
import { OutputChannel } from '@theia/output/lib/common/output-channel';
22+
import { OutputChannel } from '@theia/output/lib/browser/output-channel';
2323
import { IWebSocket } from '@theia/core/shared/vscode-ws-jsonrpc';
2424

2525
export interface DebugExitEvent {

packages/debug/src/browser/debug-session-contribution.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { WebSocketConnectionProvider } from '@theia/core/lib/browser/messaging/w
2323
import { DebugSession } from './debug-session';
2424
import { BreakpointManager } from './breakpoint/breakpoint-manager';
2525
import { DebugSessionOptions } from './debug-session-options';
26-
import { OutputChannelManager, OutputChannel } from '@theia/output/lib/common/output-channel';
26+
import { OutputChannelManager, OutputChannel } from '@theia/output/lib/browser/output-channel';
2727
import { DebugPreferences } from './debug-preferences';
2828
import { DebugSessionConnection } from './debug-session-connection';
2929
import { IWebSocket } from '@theia/core/shared/vscode-ws-jsonrpc';

packages/output/src/common/output-channel.ts packages/output/src/browser/output-channel.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@ import URI from '@theia/core/lib/common/uri';
2020
import { Deferred } from '@theia/core/lib/common/promise-util';
2121
import { Resource, ResourceResolver } from '@theia/core/lib/common/resource';
2222
import { Emitter, Event, Disposable, DisposableCollection } from '@theia/core';
23-
// eslint-disable-next-line @theia/runtime-import-check
2423
import { MonacoEditorModel } from '@theia/monaco/lib/browser/monaco-editor-model';
25-
// eslint-disable-next-line @theia/runtime-import-check
2624
import { MonacoTextModelService, IReference } from '@theia/monaco/lib/browser/monaco-text-model-service';
27-
import { OutputUri } from './output-uri';
28-
// eslint-disable-next-line @theia/runtime-import-check
25+
import { OutputUri } from '../common/output-uri';
2926
import { OutputResource } from '../browser/output-resource';
3027
import { OutputPreferences } from './output-preferences';
3128

packages/output/src/browser/output-contribution.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { OutputWidget } from './output-widget';
2525
import { OutputContextMenu } from './output-context-menu';
2626
import { OutputUri } from '../common/output-uri';
2727
import { ClipboardService } from '@theia/core/lib/browser/clipboard-service';
28-
import { OutputChannelManager, OutputChannel } from '../common/output-channel';
28+
import { OutputChannelManager, OutputChannel } from './output-channel';
2929
import { OutputCommands } from './output-commands';
3030
import { QuickPickService } from '@theia/core/lib/common/quick-pick-service';
3131

packages/output/src/browser/output-frontend-module.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import { OutputWidget, OUTPUT_WIDGET_KIND } from './output-widget';
1919
import { TabBarToolbarContribution } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
2020
import { ResourceResolver } from '@theia/core/lib/common';
2121
import { WidgetFactory, bindViewContribution, OpenHandler } from '@theia/core/lib/browser';
22-
import { OutputChannelManager } from '../common/output-channel';
23-
import { bindOutputPreferences } from '../common/output-preferences';
22+
import { OutputChannelManager } from './output-channel';
23+
import { bindOutputPreferences } from './output-preferences';
2424
import { OutputToolbarContribution } from './output-toolbar-contribution';
2525
import { OutputContribution } from './output-contribution';
2626
import { MonacoEditorFactory } from '@theia/monaco/lib/browser/monaco-editor-provider';

packages/output/src/common/output-preferences.ts packages/output/src/browser/output-preferences.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@
1515
********************************************************************************/
1616

1717
import { interfaces } from '@theia/core/shared/inversify';
18-
1918
import {
20-
createPreferenceProxy,
19+
PreferenceContribution,
2120
PreferenceProxy,
21+
PreferenceSchema,
2222
PreferenceService,
23-
PreferenceContribution,
24-
PreferenceSchema
25-
// eslint-disable-next-line @theia/runtime-import-check
23+
createPreferenceProxy
2624
} from '@theia/core/lib/browser/preferences';
2725

2826
export const OutputConfigSchema: PreferenceSchema = {

packages/output/src/browser/output-toolbar-contribution.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { TabBarToolbarContribution, TabBarToolbarRegistry } from '@theia/core/li
2121
import { OutputWidget } from './output-widget';
2222
import { OutputCommands } from './output-commands';
2323
import { OutputContribution } from './output-contribution';
24-
import { OutputChannelManager } from '../common/output-channel';
24+
import { OutputChannelManager } from './output-channel';
2525

2626
@injectable()
2727
export class OutputToolbarContribution implements TabBarToolbarContribution {

packages/output/src/browser/output-widget.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { MonacoEditorProvider } from '@theia/monaco/lib/browser/monaco-editor-pr
2525
import { Disposable, DisposableCollection } from '@theia/core/lib/common/disposable';
2626
import { Message, BaseWidget, DockPanel, Widget, MessageLoop, StatefulWidget, codicon } from '@theia/core/lib/browser';
2727
import { OutputUri } from '../common/output-uri';
28-
import { OutputChannelManager, OutputChannel } from '../common/output-channel';
28+
import { OutputChannelManager, OutputChannel } from './output-channel';
2929
import { Emitter, Event, deepClone } from '@theia/core';
3030

3131
@injectable()

packages/plugin-dev/src/browser/hosted-plugin-log-viewer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
********************************************************************************/
1616

1717
import { injectable, inject, postConstruct } from '@theia/core/shared/inversify';
18-
import { OutputChannel, OutputChannelManager } from '@theia/output/lib/common/output-channel';
18+
import { OutputChannel, OutputChannelManager } from '@theia/output/lib/browser/output-channel';
1919
import { OutputContribution } from '@theia/output/lib/browser/output-contribution';
2020
import { LogPart } from '@theia/plugin-ext/lib/common/types';
2121
import { HostedPluginWatcher } from '@theia/plugin-ext/lib/hosted/browser/hosted-plugin-watcher';

packages/plugin-ext/src/main/browser/debug/debug-main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import { DebugProtocol } from 'vscode-debugprotocol';
3838
import { DebugConfigurationManager } from '@theia/debug/lib/browser/debug-configuration-manager';
3939
import { TerminalService } from '@theia/terminal/lib/browser/base/terminal-service';
4040
import { MessageClient } from '@theia/core/lib/common/message-service-protocol';
41-
import { OutputChannelManager } from '@theia/output/lib/common/output-channel';
41+
import { OutputChannelManager } from '@theia/output/lib/browser/output-channel';
4242
import { DebugPreferences } from '@theia/debug/lib/browser/debug-preferences';
4343
import { PluginDebugAdapterContribution } from './plugin-debug-adapter-contribution';
4444
import { PluginDebugSessionContributionRegistrator, PluginDebugSessionContributionRegistry } from './plugin-debug-session-contribution-registry';

packages/plugin-ext/src/main/browser/debug/plugin-debug-session-factory.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { EditorManager } from '@theia/editor/lib/browser/editor-manager';
2020
import { BreakpointManager } from '@theia/debug/lib/browser/breakpoint/breakpoint-manager';
2121
import { LabelProvider } from '@theia/core/lib/browser/label-provider';
2222
import { MessageClient } from '@theia/core/lib/common/message-service-protocol';
23-
import { OutputChannelManager } from '@theia/output/lib/common/output-channel';
23+
import { OutputChannelManager } from '@theia/output/lib/browser/output-channel';
2424
import { DebugPreferences } from '@theia/debug/lib/browser/debug-preferences';
2525
import { DebugSessionOptions } from '@theia/debug/lib/browser/debug-session-options';
2626
import { DebugSession } from '@theia/debug/lib/browser/debug-session';

packages/plugin-ext/src/main/browser/webview/webview.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import { Schemes } from '../../../common/uri-components';
4040
import { PluginSharedStyle } from '../plugin-shared-style';
4141
import { WebviewThemeDataProvider } from './webview-theme-data-provider';
4242
import { ExternalUriService } from '@theia/core/lib/browser/external-uri-service';
43-
import { OutputChannelManager } from '@theia/output/lib/common/output-channel';
43+
import { OutputChannelManager } from '@theia/output/lib/browser/output-channel';
4444
import { WebviewPreferences } from './webview-preferences';
4545
import { WebviewResourceCache } from './webview-resource-cache';
4646
import { Endpoint } from '@theia/core/lib/browser/endpoint';

0 commit comments

Comments
 (0)