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

quick access - fix bug with options merging

上级 c12bd56a
...@@ -35,8 +35,10 @@ export abstract class AbstractGotoSymbolQuickAccessProvider extends AbstractEdit ...@@ -35,8 +35,10 @@ export abstract class AbstractGotoSymbolQuickAccessProvider extends AbstractEdit
static SCOPE_PREFIX = ':'; static SCOPE_PREFIX = ':';
static PREFIX_BY_CATEGORY = `${AbstractGotoSymbolQuickAccessProvider.PREFIX}${AbstractGotoSymbolQuickAccessProvider.SCOPE_PREFIX}`; static PREFIX_BY_CATEGORY = `${AbstractGotoSymbolQuickAccessProvider.PREFIX}${AbstractGotoSymbolQuickAccessProvider.SCOPE_PREFIX}`;
constructor(protected options?: IGotoSymbolQuickAccessProviderOptions) { constructor(protected options: IGotoSymbolQuickAccessProviderOptions = Object.create(null)) {
super({ ...options, canAcceptInBackground: true }); super(options);
options.canAcceptInBackground = true;
} }
protected provideWithoutTextEditor(picker: IQuickPick<IGotoSymbolQuickPickItem>): IDisposable { protected provideWithoutTextEditor(picker: IQuickPick<IGotoSymbolQuickPickItem>): IDisposable {
......
...@@ -27,7 +27,7 @@ export class ExtensionTipsService implements IExtensionTipsService { ...@@ -27,7 +27,7 @@ export class ExtensionTipsService implements IExtensionTipsService {
constructor( constructor(
@IFileService private readonly fileService: IFileService, @IFileService private readonly fileService: IFileService,
@IEnvironmentService private readonly environmentService: IEnvironmentService, @IEnvironmentService private readonly environmentService: INativeEnvironmentService,
@IProductService private readonly productService: IProductService, @IProductService private readonly productService: IProductService,
@IRequestService private readonly requestService: IRequestService, @IRequestService private readonly requestService: IRequestService,
@ILogService private readonly logService: ILogService, @ILogService private readonly logService: ILogService,
...@@ -76,7 +76,7 @@ export class ExtensionTipsService implements IExtensionTipsService { ...@@ -76,7 +76,7 @@ export class ExtensionTipsService implements IExtensionTipsService {
} }
} else { } else {
exePaths.push(join('/usr/local/bin', exeName)); 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) { for (const exePath of exePaths) {
......
...@@ -233,7 +233,6 @@ export { ...@@ -233,7 +233,6 @@ export {
create, create,
IWorkbenchConstructionOptions, IWorkbenchConstructionOptions,
// Basic Types // Basic Types
URI, URI,
UriComponents, UriComponents,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册