Skip to content

Commit f395b6a

Browse files
authored
Fix code action navigation (microsoft#167447)
Fixes microsoft#166997 Fixes microsoft#166996 This disables the default list keybindings so that we instead use our custom commands It also adds a `getPrototypeOf` implementation to proxy services, which fixes `instanceof` checks on services (we were using these in the action widget commands)
1 parent ed47a84 commit f395b6a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/vs/platform/actionWidget/browser/actionList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export class ActionList<T extends IActionItem> extends Disposable {
177177
new ActionItemRenderer<IListMenuItem<IActionItem>>(resolver, this._keybindingService),
178178
new HeaderRenderer()
179179
], {
180-
keyboardSupport: true,
180+
keyboardSupport: false,
181181
accessibilityProvider: {
182182
getAriaLabel: element => {
183183
if (element.kind === 'action') {

src/vs/platform/instantiation/common/instantiationService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,9 @@ export class InstantiationService implements IInstantiationService {
309309
set(_target: T, p: PropertyKey, value: any): boolean {
310310
idle.value[p] = value;
311311
return true;
312+
},
313+
getPrototypeOf(_target: T) {
314+
return ctor.prototype;
312315
}
313316
});
314317
}

0 commit comments

Comments
 (0)