mirror of
https://github.com/Microsoft/vscode
synced 2024-09-18 01:58:27 +00:00
quick access - fix bug with options merging
This commit is contained in:
parent
c12bd56a88
commit
02bc4e2928
|
@ -35,8 +35,10 @@ export abstract class AbstractGotoSymbolQuickAccessProvider extends AbstractEdit
|
|||
static SCOPE_PREFIX = ':';
|
||||
static PREFIX_BY_CATEGORY = `${AbstractGotoSymbolQuickAccessProvider.PREFIX}${AbstractGotoSymbolQuickAccessProvider.SCOPE_PREFIX}`;
|
||||
|
||||
constructor(protected options?: IGotoSymbolQuickAccessProviderOptions) {
|
||||
super({ ...options, canAcceptInBackground: true });
|
||||
constructor(protected options: IGotoSymbolQuickAccessProviderOptions = Object.create(null)) {
|
||||
super(options);
|
||||
|
||||
options.canAcceptInBackground = true;
|
||||
}
|
||||
|
||||
protected provideWithoutTextEditor(picker: IQuickPick<IGotoSymbolQuickPickItem>): IDisposable {
|
||||
|
|
|
@ -27,7 +27,7 @@ export class ExtensionTipsService implements IExtensionTipsService {
|
|||
|
||||
constructor(
|
||||
@IFileService private readonly fileService: IFileService,
|
||||
@IEnvironmentService private readonly environmentService: IEnvironmentService,
|
||||
@IEnvironmentService private readonly environmentService: INativeEnvironmentService,
|
||||
@IProductService private readonly productService: IProductService,
|
||||
@IRequestService private readonly requestService: IRequestService,
|
||||
@ILogService private readonly logService: ILogService,
|
||||
|
@ -76,7 +76,7 @@ export class ExtensionTipsService implements IExtensionTipsService {
|
|||
}
|
||||
} else {
|
||||
exePaths.push(join('/usr/local/bin', exeName));
|
||||
exePaths.push(join((this.environmentService as INativeEnvironmentService).userHome.fsPath, exeName));
|
||||
exePaths.push(join(this.environmentService.userHome.fsPath, exeName));
|
||||
}
|
||||
|
||||
for (const exePath of exePaths) {
|
||||
|
|
|
@ -233,7 +233,6 @@ export {
|
|||
create,
|
||||
IWorkbenchConstructionOptions,
|
||||
|
||||
|
||||
// Basic Types
|
||||
URI,
|
||||
UriComponents,
|
||||
|
|
Loading…
Reference in a new issue