eclipse-theia/theia

textEditor.commands.showReferences command fails after assigning keybinding

オープン

#5,559 opened on 2019/06/21

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (2,478 件のフォーク)batch import
bughelp wantedkeybindingsmonaco

Repository metrics

Stars
 (18,676 個のスター)
PR merge metrics
 (平均マージ 15d 4h) (30d で 75 merged PRs)

説明

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

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