MCPcopy Create free account
hub / github.com/VSpaceCode/VSpaceCode / configKeyBindings

Function configKeyBindings

src/configuration/configuration.ts:82–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80}
81
82export 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
92function getFilename(uri: Uri) {
93 const pieces = uri.fsPath.split(/[/\\]/g);

Callers 1

configureFunction · 0.90

Calls 2

editBindingsDocFunction · 0.85
getFilenameFunction · 0.70

Tested by

no test coverage detected