mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
revert vscode cahnges (#4879)
This commit is contained in:
@@ -20,7 +20,7 @@ export class OpenGettingStartedInBrowserAction extends Action {
|
|||||||
constructor(
|
constructor(
|
||||||
@IOpenerService private openerService: IOpenerService
|
@IOpenerService private openerService: IOpenerService
|
||||||
) {
|
) {
|
||||||
super('update.openGettingStartedGuide', nls.localize('gettingStarted', "Get Started"), null, true);
|
super('update.openGettingStartedGuide', nls.localize('gettingStarted', "Get Started"), undefined, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
run(): Promise<any> {
|
run(): Promise<any> {
|
||||||
|
|||||||
@@ -7,7 +7,10 @@
|
|||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"./typings",
|
"./typings",
|
||||||
"./vs/**.*.ts",
|
"./vs/vscode.d.ts",
|
||||||
|
"./vs/vscode.proposed.d.ts",
|
||||||
|
"./sql/azdata.d.ts",
|
||||||
|
"./sql/azdata.proposed.d.ts",
|
||||||
"./sql/base/browser/ui/breadcrumb/*.ts",
|
"./sql/base/browser/ui/breadcrumb/*.ts",
|
||||||
"./sql/base/browser/ui/button/*.ts",
|
"./sql/base/browser/ui/button/*.ts",
|
||||||
"./sql/base/browser/ui/checkbox/*.ts",
|
"./sql/base/browser/ui/checkbox/*.ts",
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ class RemoteSearchProvider implements ISearchResultProvider, IDisposable {
|
|||||||
return this.doSearch(query, undefined, token);
|
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);
|
return this.doSearch(query, onProgress, token);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -106,18 +106,6 @@ export class ActivitybarPart extends Part implements IActivityBarService {
|
|||||||
this.onDidRegisterViewlets(viewletService.getViewlets());
|
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 {
|
private registerListeners(): void {
|
||||||
|
|
||||||
// Viewlet registration
|
// Viewlet registration
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ class UntitledEditorInputFactory implements IEditorInputFactory {
|
|||||||
|
|
||||||
// {{SQL CARBON EDIT}}
|
// {{SQL CARBON EDIT}}
|
||||||
if (!untitledEditorInput.getResource()) {
|
if (!untitledEditorInput.getResource()) {
|
||||||
return null;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
let resource = untitledEditorInput.getResource();
|
let resource = untitledEditorInput.getResource();
|
||||||
|
|||||||
@@ -256,8 +256,8 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|||||||
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KEY_K, KeyMod.CtrlCmd | KeyCode.KEY_E),
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KEY_K, KeyMod.CtrlCmd | KeyCode.KEY_E),
|
||||||
handler: (accessor, args: any) => {
|
handler: (accessor, args: any) => {
|
||||||
const control = accessor.get(IEditorService).activeControl as IKeybindingsEditor;
|
const control = accessor.get(IEditorService).activeControl as IKeybindingsEditor;
|
||||||
if (control && control instanceof KeybindingsEditor && control.activeKeybindingEntry.keybindingItem.keybinding) {
|
if (control && control instanceof KeybindingsEditor && control.activeKeybindingEntry!.keybindingItem.keybinding) {
|
||||||
control.defineWhenExpression(control.activeKeybindingEntry);
|
control.defineWhenExpression(control.activeKeybindingEntry!);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ export function getSearchView(viewletService: IViewletService, panelService: IPa
|
|||||||
return (activePanel as SearchPanel).getSearchView();
|
return (activePanel as SearchPanel).getSearchView();
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
function doAppendKeyBindingLabel(label: string, keyBinding: ResolvedKeybinding | undefined): string {
|
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 {
|
public dispose(): void {
|
||||||
this.terminate();
|
this.terminate();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,8 +48,8 @@ export const enum SearchProviderType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ISearchResultProvider {
|
export interface ISearchResultProvider {
|
||||||
textSearch(query: ITextQuery, onProgress?: (p: ISearchProgressItem) => void, token?: CancellationToken): Promise<ISearchComplete | undefined>;
|
textSearch(query: ITextQuery, onProgress?: (p: ISearchProgressItem) => void, token?: CancellationToken): Promise<ISearchComplete>;
|
||||||
fileSearch(query: IFileQuery, token?: CancellationToken): Promise<ISearchComplete | undefined>;
|
fileSearch(query: IFileQuery, token?: CancellationToken): Promise<ISearchComplete>;
|
||||||
clearCache(cacheKey: string): Promise<void>;
|
clearCache(cacheKey: string): Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user