@theia/core 1.67.0-next.0 → 1.67.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/catalog.json +46 -9
- package/lib/browser/common-commands.d.ts +66 -0
- package/lib/browser/common-commands.d.ts.map +1 -0
- package/lib/browser/common-commands.js +271 -0
- package/lib/browser/common-commands.js.map +1 -0
- package/lib/browser/common-frontend-contribution.d.ts +5 -99
- package/lib/browser/common-frontend-contribution.d.ts.map +1 -1
- package/lib/browser/common-frontend-contribution.js +157 -439
- package/lib/browser/common-frontend-contribution.js.map +1 -1
- package/lib/browser/common-menus.d.ts +35 -0
- package/lib/browser/common-menus.d.ts.map +1 -0
- package/lib/browser/common-menus.js +56 -0
- package/lib/browser/common-menus.js.map +1 -0
- package/lib/browser/index.d.ts +2 -0
- package/lib/browser/index.d.ts.map +1 -1
- package/lib/browser/index.js +2 -0
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/quick-input/quick-command-frontend-contribution.js +3 -3
- package/lib/browser/quick-input/quick-command-frontend-contribution.js.map +1 -1
- package/lib/browser/shell/shell-layout-restorer.js +3 -3
- package/lib/browser/shell/shell-layout-restorer.js.map +1 -1
- package/lib/browser/shell/view-contribution.js +2 -2
- package/lib/browser/shell/view-contribution.js.map +1 -1
- package/lib/browser/tree/tree-widget.d.ts.map +1 -1
- package/lib/browser/tree/tree-widget.js +3 -4
- package/lib/browser/tree/tree-widget.js.map +1 -1
- package/lib/browser/window-contribution.js +2 -2
- package/lib/browser/window-contribution.js.map +1 -1
- package/lib/common/preferences/preference-service.d.ts.map +1 -1
- package/lib/common/preferences/preference-service.js +6 -1
- package/lib/common/preferences/preference-service.js.map +1 -1
- package/package.json +4 -4
- package/src/browser/common-commands.ts +281 -0
- package/src/browser/common-frontend-contribution.ts +4 -306
- package/src/browser/common-menus.ts +60 -0
- package/src/browser/index.ts +2 -0
- package/src/browser/quick-input/quick-command-frontend-contribution.ts +1 -1
- package/src/browser/shell/shell-layout-restorer.ts +1 -1
- package/src/browser/shell/view-contribution.ts +1 -1
- package/src/browser/tree/tree-widget.tsx +3 -4
- package/src/browser/window-contribution.ts +1 -1
- package/src/common/preferences/preference-service.ts +6 -1
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import { injectable, inject, optional } from 'inversify';
|
|
17
17
|
import { CommandRegistry, CommandContribution, MenuContribution, MenuModelRegistry, nls } from '../../common';
|
|
18
18
|
import { KeybindingRegistry, KeybindingContribution } from '../keybinding';
|
|
19
|
-
import { CommonMenus } from '../common-
|
|
19
|
+
import { CommonMenus } from '../common-menus';
|
|
20
20
|
import { CLOSE_QUICK_OPEN, CLEAR_COMMAND_HISTORY, quickCommand, QuickCommandService } from './quick-command-service';
|
|
21
21
|
import { QuickInputService } from './quick-input-service';
|
|
22
22
|
import { ConfirmDialog, Dialog } from '../dialogs';
|
|
@@ -24,7 +24,7 @@ import { CommandContribution, CommandRegistry, Command } from '../../common/comm
|
|
|
24
24
|
import { ThemeService } from '../theming';
|
|
25
25
|
import { ContributionProvider } from '../../common/contribution-provider';
|
|
26
26
|
import { ApplicationShell, applicationShellLayoutVersion, ApplicationShellLayoutVersion } from './application-shell';
|
|
27
|
-
import { CommonCommands } from '../common-
|
|
27
|
+
import { CommonCommands } from '../common-commands';
|
|
28
28
|
import { WindowService } from '../window/window-service';
|
|
29
29
|
import { StopReason } from '../../common/frontend-application-state';
|
|
30
30
|
import { isFunction, isObject, MaybePromise } from '../../common';
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from '../../common';
|
|
23
23
|
import { KeybindingContribution, KeybindingRegistry } from '../keybinding';
|
|
24
24
|
import { WidgetManager } from '../widget-manager';
|
|
25
|
-
import { CommonMenus } from '../common-
|
|
25
|
+
import { CommonMenus } from '../common-menus';
|
|
26
26
|
import { ApplicationShell } from './application-shell';
|
|
27
27
|
import { QuickViewService } from '../quick-input';
|
|
28
28
|
|
|
@@ -1668,10 +1668,9 @@ export namespace TreeWidget {
|
|
|
1668
1668
|
protected readonly scrollIntoViewIfNeeded = () => {
|
|
1669
1669
|
const { scrollToRow } = this.props;
|
|
1670
1670
|
if (this.list && scrollToRow !== undefined) {
|
|
1671
|
-
this.list.
|
|
1671
|
+
this.list.scrollIntoView({
|
|
1672
1672
|
index: scrollToRow,
|
|
1673
|
-
align: 'center'
|
|
1674
|
-
behavior: 'smooth'
|
|
1673
|
+
align: 'center'
|
|
1675
1674
|
});
|
|
1676
1675
|
}
|
|
1677
1676
|
};
|
|
@@ -1681,7 +1680,7 @@ export namespace TreeWidget {
|
|
|
1681
1680
|
}
|
|
1682
1681
|
|
|
1683
1682
|
override componentDidUpdate(prevProps: ViewProps): void {
|
|
1684
|
-
if (this.props.scrollToRow !== prevProps.scrollToRow
|
|
1683
|
+
if (this.props.scrollToRow !== prevProps.scrollToRow) {
|
|
1685
1684
|
this.scrollIntoViewIfNeeded();
|
|
1686
1685
|
}
|
|
1687
1686
|
}
|
|
@@ -19,7 +19,7 @@ import { Command, CommandContribution, CommandRegistry, environment } from '../c
|
|
|
19
19
|
import { WindowService } from './window/window-service';
|
|
20
20
|
import { KeybindingContribution, KeybindingRegistry } from './keybinding';
|
|
21
21
|
import { MenuContribution, MenuModelRegistry } from '../common/menu';
|
|
22
|
-
import { CommonMenus } from '
|
|
22
|
+
import { CommonMenus } from './common-menus';
|
|
23
23
|
|
|
24
24
|
export namespace WindowCommands {
|
|
25
25
|
|
|
@@ -361,8 +361,13 @@ export class PreferenceServiceImpl implements PreferenceService {
|
|
|
361
361
|
const provider = this.getProvider(scope);
|
|
362
362
|
if (provider) {
|
|
363
363
|
const scopeValue: JSONValue | undefined = provider.get(preferenceName);
|
|
364
|
-
// Skip if a more specific scope has this preference defined
|
|
365
364
|
if (scope > change.scope && scopeValue !== undefined) {
|
|
365
|
+
const preference = this.schemaService.getSchemaProperty(change.preferenceName);
|
|
366
|
+
if (!preference?.type || preference.type === 'object' || preference.type === 'array'
|
|
367
|
+
|| Array.isArray(preference.type) && preference.type.some(candidate => candidate === 'object' || candidate === 'array')) {
|
|
368
|
+
// Merge object/array preferences
|
|
369
|
+
acceptChange(change);
|
|
370
|
+
}
|
|
366
371
|
break;
|
|
367
372
|
}
|
|
368
373
|
// Handle changes in the same scope
|