提交 02bc4e29 编写于 作者: B Benjamin Pasero

quick access - fix bug with options merging

上级 c12bd56a
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册