mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 09:35:39 -05:00
Merge from vscode merge-base (#22780)
* Revert "Revert "Merge from vscode merge-base (#22769)" (#22779)"
This reverts commit 47a1745180.
* Fix notebook download task
* Remove done call from extensions-ci
This commit is contained in:
@@ -10,9 +10,10 @@ import { MenuItemAction } from 'vs/platform/actions/common/actions';
|
||||
import { ICommandAction } from 'vs/platform/action/common/action';
|
||||
import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding';
|
||||
import { INotificationService } from 'vs/platform/notification/common/notification';
|
||||
import { ThemeIcon } from 'vs/platform/theme/common/themeService';
|
||||
import { IThemeService, ThemeIcon } from 'vs/platform/theme/common/themeService';
|
||||
import { MenuEntryActionViewItem } from 'vs/platform/actions/browser/menuEntryActionViewItem';
|
||||
import { IContextKeyService } from 'vs/platform/contextkey/common/contextkey';
|
||||
import { IContextMenuService } from 'vs/platform/contextview/browser/contextView';
|
||||
|
||||
const ids = new IdGenerator('menu-item-action-item-icon-');
|
||||
|
||||
@@ -32,8 +33,10 @@ export class LabeledMenuItemActionItem extends MenuEntryActionViewItem {
|
||||
@IKeybindingService labeledkeybindingService: IKeybindingService,
|
||||
@INotificationService _notificationService: INotificationService,
|
||||
@IContextKeyService _contextKeyService: IContextKeyService,
|
||||
@IThemeService _themeService: IThemeService,
|
||||
@IContextMenuService _contextMenuService: IContextMenuService
|
||||
) {
|
||||
super(_action, undefined, labeledkeybindingService, _notificationService, _contextKeyService);
|
||||
super(_action, undefined, labeledkeybindingService, _notificationService, _contextKeyService, _themeService, _contextMenuService);
|
||||
}
|
||||
|
||||
override updateLabel(): void {
|
||||
@@ -104,9 +107,11 @@ export class MaskedLabeledMenuItemActionItem extends MenuEntryActionViewItem {
|
||||
action: MenuItemAction,
|
||||
@IKeybindingService keybindingService: IKeybindingService,
|
||||
@INotificationService notificationService: INotificationService,
|
||||
@IContextKeyService contextKeyService: IContextKeyService
|
||||
@IContextKeyService contextKeyService: IContextKeyService,
|
||||
@IThemeService _themeService: IThemeService,
|
||||
@IContextMenuService _contextMenuService: IContextMenuService
|
||||
) {
|
||||
super(action, undefined, keybindingService, notificationService, contextKeyService);
|
||||
super(action, undefined, keybindingService, notificationService, contextKeyService, _themeService, _contextMenuService);
|
||||
}
|
||||
|
||||
override updateLabel(): void {
|
||||
|
||||
@@ -42,14 +42,14 @@ export class ConnectionStore {
|
||||
@ICapabilitiesService private capabilitiesService: ICapabilitiesService
|
||||
) {
|
||||
try {
|
||||
const configRaw = this.storageService.get(RECENT_CONNECTIONS_STATE_KEY, StorageScope.GLOBAL, '[]');
|
||||
const configRaw = this.storageService.get(RECENT_CONNECTIONS_STATE_KEY, StorageScope.APPLICATION, '[]');
|
||||
this.mru = JSON.parse(configRaw);
|
||||
} catch (e) {
|
||||
this.mru = [];
|
||||
}
|
||||
|
||||
this.storageService.onWillSaveState(() =>
|
||||
this.storageService.store(RECENT_CONNECTIONS_STATE_KEY, JSON.stringify(this.mru), StorageScope.GLOBAL, StorageTarget.MACHINE));
|
||||
this.storageService.store(RECENT_CONNECTIONS_STATE_KEY, JSON.stringify(this.mru), StorageScope.APPLICATION, StorageTarget.MACHINE));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user