mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-10 10:12:34 -05:00
revert vscode cahnges (#4879)
This commit is contained in:
@@ -117,7 +117,7 @@ class RemoteSearchProvider implements ISearchResultProvider, IDisposable {
|
||||
return this.doSearch(query, undefined, token);
|
||||
}
|
||||
|
||||
textSearch(query: ITextQuery, onProgress?: (p: ISearchProgressItem) => void, token: CancellationToken = CancellationToken.None): Promise<ISearchComplete | undefined> {
|
||||
textSearch(query: ITextQuery, onProgress?: (p: ISearchProgressItem) => void, token: CancellationToken = CancellationToken.None): Promise<ISearchComplete> {
|
||||
return this.doSearch(query, onProgress, token);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
});
|
||||
});
|
||||
|
||||
@@ -256,8 +256,8 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
||||
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KEY_K, KeyMod.CtrlCmd | KeyCode.KEY_E),
|
||||
handler: (accessor, args: any) => {
|
||||
const control = accessor.get(IEditorService).activeControl as IKeybindingsEditor;
|
||||
if (control && control instanceof KeybindingsEditor && control.activeKeybindingEntry.keybindingItem.keybinding) {
|
||||
control.defineWhenExpression(control.activeKeybindingEntry);
|
||||
if (control && control instanceof KeybindingsEditor && control.activeKeybindingEntry!.keybindingItem.keybinding) {
|
||||
control.defineWhenExpression(control.activeKeybindingEntry!);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -71,7 +71,7 @@ export function getSearchView(viewletService: IViewletService, panelService: IPa
|
||||
return (activePanel as SearchPanel).getSearchView();
|
||||
}
|
||||
|
||||
return null;
|
||||
return undefined;
|
||||
}
|
||||
|
||||
function doAppendKeyBindingLabel(label: string, keyBinding: ResolvedKeybinding | undefined): string {
|
||||
|
||||
@@ -111,11 +111,6 @@ export class ExtensionHostProcessWorker implements IExtensionHostStarter {
|
||||
}));
|
||||
}
|
||||
|
||||
// {{SQL CARBON EDIT}}
|
||||
public getExtenstionHostProcess(): ChildProcess {
|
||||
return this._extensionHostProcess;
|
||||
}
|
||||
|
||||
public dispose(): void {
|
||||
this.terminate();
|
||||
}
|
||||
|
||||
@@ -48,8 +48,8 @@ export const enum SearchProviderType {
|
||||
}
|
||||
|
||||
export interface ISearchResultProvider {
|
||||
textSearch(query: ITextQuery, onProgress?: (p: ISearchProgressItem) => void, token?: CancellationToken): Promise<ISearchComplete | undefined>;
|
||||
fileSearch(query: IFileQuery, token?: CancellationToken): Promise<ISearchComplete | undefined>;
|
||||
textSearch(query: ITextQuery, onProgress?: (p: ISearchProgressItem) => void, token?: CancellationToken): Promise<ISearchComplete>;
|
||||
fileSearch(query: IFileQuery, token?: CancellationToken): Promise<ISearchComplete>;
|
||||
clearCache(cacheKey: string): Promise<void>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user