MCPcopy
hub / github.com/VSCodeVim/Vim / setupWithBindings

Function setupWithBindings

test/configuration/remapper.test.ts:94–116  ·  view source on GitHub ↗
({
    insertModeKeyBindings,
    normalModeKeyBindings,
    normalModeKeyBindingsNonRecursive,
    visualModeKeyBindings,
  }: {
    insertModeKeyBindings?: IKeyRemapping[];
    normalModeKeyBindings?: IKeyRemapping[];
    normalModeKeyBindingsNonRecursive?: IKeyRemapping[];
    visualModeKeyBindings?: IKeyRemapping[];
  })

Source from the content-addressed store, hash-verified

92 }
93
94 const setupWithBindings = async ({
95 insertModeKeyBindings,
96 normalModeKeyBindings,
97 normalModeKeyBindingsNonRecursive,
98 visualModeKeyBindings,
99 }: {
100 insertModeKeyBindings?: IKeyRemapping[];
101 normalModeKeyBindings?: IKeyRemapping[];
102 normalModeKeyBindingsNonRecursive?: IKeyRemapping[];
103 visualModeKeyBindings?: IKeyRemapping[];
104 }) => {
105 await setupWorkspace({
106 config: {
107 leader: leaderKey,
108 insertModeKeyBindings: insertModeKeyBindings || [],
109 normalModeKeyBindings: normalModeKeyBindings || [],
110 normalModeKeyBindingsNonRecursive: normalModeKeyBindingsNonRecursive || [],
111 visualModeKeyBindings: visualModeKeyBindings || [],
112 },
113 });
114 modeHandler = (await getAndUpdateModeHandler())!;
115 vimState = modeHandler.vimState;
116 };
117
118 test('getLongestedRemappedKeySequence', async () => {
119 // setup

Callers 1

remapper.test.tsFile · 0.85

Calls 2

setupWorkspaceFunction · 0.90
getAndUpdateModeHandlerFunction · 0.90

Tested by

no test coverage detected