Skip to content

Commit

Permalink
Fixed #211 Ctrl+F12 keybinding is not working
Browse files Browse the repository at this point in the history
  • Loading branch information
kasecato committed Mar 5, 2021
1 parent 80682fc commit da207fb
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 44 deletions.
22 changes: 9 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,15 @@
],
"main": "./out/extension",
"contributes": {
"commands": [{
"command": "intellij.importKeyMapsSchema",
"title": "Import IntelliJ Keybindngs (XML)",
"category": "IntelliJ Keybindings"
}],
"keybindings": [{
"commands": [
{
"command": "intellij.importKeyMapsSchema",
"title": "Import IntelliJ Keybindngs (XML)",
"category": "IntelliJ Keybindings"
}
],
"keybindings": [
{
"key": "enter",
"mac": "enter",
"command": "acceptSelectedSuggestion",
Expand Down Expand Up @@ -645,7 +648,6 @@
"key": "ctrl+b",
"mac": "cmd+b",
"command": "editor.action.goToDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus",
"intellij": "Go to declaration"
},
{
Expand All @@ -659,21 +661,18 @@
"key": "ctrl+shift+i",
"mac": "alt+space",
"command": "editor.action.previewDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor",
"intellij": "Open quick definition lookup"
},
{
"key": "",
"mac": "cmd+y",
"command": "editor.action.previewDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor",
"intellij": "Open quick definition lookup"
},
{
"key": "ctrl+shift+b",
"mac": "ctrl+shift+b",
"command": "editor.action.goToTypeDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus",
"intellij": "Go to type declaration",
"todo": "not working"
},
Expand All @@ -687,7 +686,6 @@
"key": "ctrl+f12",
"mac": "cmd+f12",
"command": "workbench.action.gotoSymbol",
"when": "editorHasDefinitionProvider && editorTextFocus",
"intellij": "File structure popup"
},
{
Expand All @@ -713,14 +711,12 @@
"key": "f4",
"mac": "f4",
"command": "editor.action.goToDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus",
"intellij": "Edit source"
},
{
"key": "ctrl+enter",
"mac": "cmd+down",
"command": "editor.action.goToDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus",
"intellij": "View source"
},
{
Expand Down
12 changes: 4 additions & 8 deletions resource/default/Linux/VSCode.json
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,7 @@
},
{
"key": "",
"command": "editor.action.goToDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus"
"command": "editor.action.goToDeclaration"
},
{
"key": "ctrl+f12",
Expand All @@ -353,22 +352,19 @@
},
{
"key": "",
"command": "editor.action.previewDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor"
"command": "editor.action.previewDeclaration"
},
{
"key": "",
"command": "editor.action.goToTypeDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus"
"command": "editor.action.goToTypeDefinition"
},
{
"key": "",
"command": "outline.focus"
},
{
"key": "ctrl+shift+o",
"command": "workbench.action.gotoSymbol",
"when": "editorHasDefinitionProvider && editorTextFocus"
"command": "workbench.action.gotoSymbol"
},
{
"key": "alt+f8",
Expand Down
12 changes: 4 additions & 8 deletions resource/default/Mac/VSCode.json
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,7 @@
},
{
"key": "",
"command": "editor.action.goToDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus"
"command": "editor.action.goToDeclaration"
},
{
"key": "cmd+f12",
Expand All @@ -373,22 +372,19 @@
},
{
"key": "",
"command": "editor.action.previewDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor"
"command": "editor.action.previewDeclaration"
},
{
"key": "",
"command": "editor.action.goToTypeDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus"
"command": "editor.action.goToTypeDefinition"
},
{
"key": "",
"command": "outline.focus"
},
{
"key": "shift+cmd+o",
"command": "workbench.action.gotoSymbol",
"when": "editorHasDefinitionProvider && editorTextFocus"
"command": "workbench.action.gotoSymbol"
},
{
"key": "alt+f8",
Expand Down
12 changes: 4 additions & 8 deletions resource/default/Windows/VSCode.json
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,7 @@
},
{
"key": "",
"command": "editor.action.goToDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus"
"command": "editor.action.goToDeclaration"
},
{
"key": "ctrl+f12",
Expand All @@ -361,22 +360,19 @@
},
{
"key": "",
"command": "editor.action.previewDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor"
"command": "editor.action.previewDeclaration"
},
{
"key": "",
"command": "editor.action.goToTypeDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus"
"command": "editor.action.goToTypeDefinition"
},
{
"key": "",
"command": "outline.focus"
},
{
"key": "ctrl+shift+o",
"command": "workbench.action.gotoSymbol",
"when": "editorHasDefinitionProvider && editorTextFocus"
"command": "workbench.action.gotoSymbol"
},
{
"key": "alt+f8",
Expand Down
7 changes: 0 additions & 7 deletions src/package-with-comment.json
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,6 @@
"key": "ctrl+b",
"mac": "cmd+b",
"command": "editor.action.goToDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus",
"intellij": "Go to declaration"
},
{
Expand All @@ -1014,21 +1013,18 @@
"key": "ctrl+shift+i",
"mac": "alt+space",
"command": "editor.action.previewDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor",
"intellij": "Open quick definition lookup"
},
{
"key": "",
"mac": "cmd+y",
"command": "editor.action.previewDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor",
"intellij": "Open quick definition lookup"
},
{
"key": "ctrl+shift+b",
"mac": "ctrl+shift+b",
"command": "editor.action.goToTypeDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus",
"intellij": "Go to type declaration",
"todo": "not working"
},
Expand Down Expand Up @@ -1092,7 +1088,6 @@
"key": "ctrl+f12",
"mac": "cmd+f12",
"command": "workbench.action.gotoSymbol",
"when": "editorHasDefinitionProvider && editorTextFocus",
"intellij": "File structure popup"
},
/*
Expand Down Expand Up @@ -1148,14 +1143,12 @@
"key": "f4",
"mac": "f4",
"command": "editor.action.goToDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus",
"intellij": "Edit source"
},
{
"key": "ctrl+enter",
"mac": "cmd+down",
"command": "editor.action.goToDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus",
"intellij": "View source"
},
{
Expand Down

0 comments on commit da207fb

Please sign in to comment.