We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1722ad5 + b592fc1 commit 99aae3fCopy full SHA for 99aae3f
1 file changed
src/vs/workbench/services/keybinding/common/keybindingIO.ts
@@ -31,12 +31,16 @@ export class KeybindingIO {
31
if (quotedSerializedWhen.length > 0) {
32
out.write(`${quotedSerializeCommand},`);
33
out.writeLine();
34
- out.write(` "when": ${quotedSerializedWhen} `);
+ out.write(` "when": ${quotedSerializedWhen}`);
35
} else {
36
- out.write(`${quotedSerializeCommand} `);
+ out.write(`${quotedSerializeCommand}`);
37
}
38
- // out.write(String(item.weight1 + '-' + item.weight2));
39
- out.write('}');
+ if (item.commandArgs) {
+ out.write(',');
40
+ out.writeLine();
41
+ out.write(` "args": ${JSON.stringify(item.commandArgs)}`);
42
+ }
43
+ out.write(' }');
44
45
46
public static readUserKeybindingItem(input: IUserFriendlyKeybinding): IUserKeybindingItem {
0 commit comments