Skip to content

Commit 99aae3f

Browse files
authored
Merge pull request microsoft#95910 from microsoft/tyriar/default_kb_args
Show args in default keybindings
2 parents 1722ad5 + b592fc1 commit 99aae3f

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/vs/workbench/services/keybinding/common/keybindingIO.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,16 @@ export class KeybindingIO {
3131
if (quotedSerializedWhen.length > 0) {
3232
out.write(`${quotedSerializeCommand},`);
3333
out.writeLine();
34-
out.write(` "when": ${quotedSerializedWhen} `);
34+
out.write(` "when": ${quotedSerializedWhen}`);
3535
} else {
36-
out.write(`${quotedSerializeCommand} `);
36+
out.write(`${quotedSerializeCommand}`);
3737
}
38-
// out.write(String(item.weight1 + '-' + item.weight2));
39-
out.write('}');
38+
if (item.commandArgs) {
39+
out.write(',');
40+
out.writeLine();
41+
out.write(` "args": ${JSON.stringify(item.commandArgs)}`);
42+
}
43+
out.write(' }');
4044
}
4145

4246
public static readUserKeybindingItem(input: IUserFriendlyKeybinding): IUserKeybindingItem {

0 commit comments

Comments
 (0)