mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-08 09:38:26 -05:00
revert vscode cahnges (#4879)
This commit is contained in:
@@ -106,18 +106,6 @@ export class ActivitybarPart extends Part implements IActivityBarService {
|
||||
this.onDidRegisterViewlets(viewletService.getViewlets());
|
||||
}
|
||||
|
||||
// {{SQL CARBON EDIT}}
|
||||
private getViewlets(): ViewletDescriptor[] {
|
||||
const pinnedViewlets = JSON.parse(this.storageService.get(ActivitybarPart.PINNED_VIEWLETS, StorageScope.GLOBAL, null)) as string[];
|
||||
const allViewLets = this.viewletService.getViewlets();
|
||||
|
||||
if (!pinnedViewlets) {
|
||||
return allViewLets.filter(viewlet => viewlet.id !== 'workbench.view.extensions') ;
|
||||
}
|
||||
|
||||
return allViewLets;
|
||||
}
|
||||
|
||||
private registerListeners(): void {
|
||||
|
||||
// Viewlet registration
|
||||
@@ -523,4 +511,4 @@ export class ActivitybarPart extends Part implements IActivityBarService {
|
||||
}
|
||||
}
|
||||
|
||||
registerSingleton(IActivityBarService, ActivitybarPart);
|
||||
registerSingleton(IActivityBarService, ActivitybarPart);
|
||||
|
||||
@@ -123,7 +123,7 @@ class UntitledEditorInputFactory implements IEditorInputFactory {
|
||||
|
||||
// {{SQL CARBON EDIT}}
|
||||
if (!untitledEditorInput.getResource()) {
|
||||
return null;
|
||||
return undefined;
|
||||
}
|
||||
|
||||
let resource = untitledEditorInput.getResource();
|
||||
@@ -927,4 +927,4 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
||||
title: nls.localize({ key: 'miSwitchGroup', comment: ['&& denotes a mnemonic'] }, "Switch &&Group"),
|
||||
submenu: MenuId.MenubarSwitchGroupMenu,
|
||||
order: 2
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user