eclipse-theia/theia

textEditor.commands.showReferences command fails after assigning keybinding

Open

#5,559 opened on 2019年6月21日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)TypeScript (18,676 stars) (2,478 forks)batch import
bughelp wantedkeybindingsmonaco

説明

Description

When you run the textEditor.commands.showReferences command after assigning it a keybinding it fails with:

TypeError: Cannot read property 'map' of undefined
    at Object.execute (/home/joshpinkney/Documents/Work/theia/packages/monaco/src/browser/monaco-command.ts:138:31)
    at MonacoCommandRegistry.execute (/home/joshpinkney/Documents/Work/theia/packages/monaco/src/browser/monaco-command-registry.ts:72:57)
    at Object.execute (/home/joshpinkney/Documents/Work/theia/packages/monaco/src/browser/monaco-command-registry.ts:61:47)
    at KeybindingRegistry.tryKeybindingExecution (/home/joshpinkney/Documents/Work/theia/packages/core/src/browser/keybinding.ts:570:44)
    at KeybindingRegistry.run (/home/joshpinkney/Documents/Work/theia/packages/core/src/browser/keybinding.ts:619:18)
    at HTMLDocument.<anonymous> (/home/joshpinkney/Documents/Work/theia/packages/core/src/browser/frontend-application.ts:164:72)

Reproduction Steps

Opening the keybinding shortcuts widget, assign keybinding, open a typescript file and put it over something you would expect to work with show references.

Expected: showReferences is brought up

Result: The error listed above

コントリビューターガイド

textEditor.commands.showReferences command fails after assigning keybinding · eclipse-theia/theia#5559 | Good First Issue