()
| 80 | } |
| 81 | |
| 82 | export async function configKeyBindings() { |
| 83 | await commands.executeCommand("workbench.action.openGlobalKeybindingsFile"); |
| 84 | if (window.activeTextEditor) { |
| 85 | const document = window.activeTextEditor.document; |
| 86 | if (getFilename(document.uri) === "keybindings.json") { |
| 87 | await editBindingsDoc(document); |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | function getFilename(uri: Uri) { |
| 93 | const pieces = uri.fsPath.split(/[/\\]/g); |
no test coverage detected