提交 3b1d3ff3 编写于 作者: A Alexandru Dima 提交者: GitHub

Merge pull request #21969 from delftswa2017/Proposal-to-fix-issue-21657

Fixed keybinding json for backslash
......@@ -107,6 +107,11 @@ export class DefineKeybindingController implements editorCommon.IEditorContribut
}
private _onAccepted(keybinding: string): void {
let regexp = new RegExp(/\\/g);
let backslash = regexp.test(keybinding);
if (backslash) {
keybinding = keybinding.slice(0, -1) + '\\\\';
}
let snippetText = [
'{',
'\t"key": ' + JSON.stringify(keybinding) + ',',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册