revert vscode cahnges (#4879)

This commit is contained in:
Anthony Dresser
2019-04-05 09:15:38 -07:00
committed by GitHub
parent 572010ded1
commit 9bd7e30d18
9 changed files with 14 additions and 28 deletions

View File

@@ -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> {

View File

@@ -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",

View File

@@ -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);
} }

View File

@@ -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

View File

@@ -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();

View File

@@ -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!);
} }
} }
}); });

View File

@@ -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 {

View File

@@ -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();
} }

View File

@@ -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>;
} }