Skip to content

Commit 02bc4e2

Browse files
author
Benjamin Pasero
committed
quick access - fix bug with options merging
1 parent c12bd56 commit 02bc4e2

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/vs/editor/contrib/quickAccess/gotoSymbolQuickAccess.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ export abstract class AbstractGotoSymbolQuickAccessProvider extends AbstractEdit
3535
static SCOPE_PREFIX = ':';
3636
static PREFIX_BY_CATEGORY = `${AbstractGotoSymbolQuickAccessProvider.PREFIX}${AbstractGotoSymbolQuickAccessProvider.SCOPE_PREFIX}`;
3737

38-
constructor(protected options?: IGotoSymbolQuickAccessProviderOptions) {
39-
super({ ...options, canAcceptInBackground: true });
38+
constructor(protected options: IGotoSymbolQuickAccessProviderOptions = Object.create(null)) {
39+
super(options);
40+
41+
options.canAcceptInBackground = true;
4042
}
4143

4244
protected provideWithoutTextEditor(picker: IQuickPick<IGotoSymbolQuickPickItem>): IDisposable {

src/vs/platform/extensionManagement/node/extensionTipsService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class ExtensionTipsService implements IExtensionTipsService {
2727

2828
constructor(
2929
@IFileService private readonly fileService: IFileService,
30-
@IEnvironmentService private readonly environmentService: IEnvironmentService,
30+
@IEnvironmentService private readonly environmentService: INativeEnvironmentService,
3131
@IProductService private readonly productService: IProductService,
3232
@IRequestService private readonly requestService: IRequestService,
3333
@ILogService private readonly logService: ILogService,
@@ -76,7 +76,7 @@ export class ExtensionTipsService implements IExtensionTipsService {
7676
}
7777
} else {
7878
exePaths.push(join('/usr/local/bin', exeName));
79-
exePaths.push(join((this.environmentService as INativeEnvironmentService).userHome.fsPath, exeName));
79+
exePaths.push(join(this.environmentService.userHome.fsPath, exeName));
8080
}
8181

8282
for (const exePath of exePaths) {

src/vs/workbench/workbench.web.api.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ export {
233233
create,
234234
IWorkbenchConstructionOptions,
235235

236-
237236
// Basic Types
238237
URI,
239238
UriComponents,

0 commit comments

Comments
 (0)