-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read property 'toCustomLabel' of undefined #40
Comments
@wallverb are you using windows or macOS, since from the command you use, it seems macOS. Anyway, can you click the tab on VS Code: Help -> Toggle Developer Tools, and then you press the failed command, it will show error details in the Console in the developer tools view. |
@Huachao - macOS, here is the info: Conflict detected, command `toggleSearchRegex` cannot be triggered by alt+cmd+r due to rest-client.request
workbench.main.js:62 Conflict detected, command `toggleFindRegex` cannot be triggered by alt+cmd+r due to rest-client.request
workbench.main.js:93 Cannot read property 'toCustomLabel' of undefined: TypeError: Cannot read property 'toCustomLabel' of undefined
at t.getLabelFor (file:////Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:92:28490)
at Object.w [as appendKeyBindingLabel] (file:////Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:114:31225)
at t.renderSearchInput (file:////Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:115:17546)
at t.render (file:////Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:115:16649)
at new t (file:////Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:115:15296)
at t.createSearchWidget (file:////Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:115:31681)
at t.create (file:////Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:115:28453)
at e.<anonymous> (file:////Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:116:26052)
at e.doElement (file:////Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:35:14008)
at e.div (file:////Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:35:13050) |
@wallverb it seems the keyboard shortcut I defined for request conflicts with the command |
@wallverb can you help to try to add below code in Preferences -> keybindings.json, and check it will work?
|
FYI: this helps: (to cancel first that global command) { "key": "alt+cmd+r", "command": "-rest-client.request"},
{ "key": "cmd+alt+r", "command": "rest-client.request",
"when": "editorTextFocus" } |
@wallverb I will publish a release right now and after that you can remove the hack, and sorry for the inconvenience. |
Awesome, no worries, thanks a lot |
@wallverb you can try the latest version 0.8.4 now, thanks 😄 |
Sure, I just did - works great 👍 |
Extension causes this issue:
microsoft/vscode#12709
The text was updated successfully, but these errors were encountered: