diff --git a/src/vs/editor/contrib/defineKeybinding/browser/defineKeybinding.ts b/src/vs/editor/contrib/defineKeybinding/browser/defineKeybinding.ts index 05f7a56b581a1fe8f3f8c79cecbebeaa178d679f..bb1c32453f875a3de02e19ff8a1cc13c7cf60b2f 100644 --- a/src/vs/editor/contrib/defineKeybinding/browser/defineKeybinding.ts +++ b/src/vs/editor/contrib/defineKeybinding/browser/defineKeybinding.ts @@ -110,16 +110,16 @@ export class DefineKeybindingController implements editorCommon.IEditorContribut let snippetText = [ '{', '\t"key": "' + keybinding + '",', - '\t"command": "{{commandId}}",', - '\t"when": "{{editorTextFocus}}"', - '}{{}}' + '\t"command": "${1:commandId}",', + '\t"when": "${2:editorTextFocus}"', + '}$0' ].join('\n'); let smartInsertInfo = SmartSnippetInserter.insertSnippet(this._editor.getModel(), this._editor.getPosition()); snippetText = smartInsertInfo.prepend + snippetText + smartInsertInfo.append; this._editor.setPosition(smartInsertInfo.position); - SnippetController.get(this._editor).run(CodeSnippet.fromInternal(snippetText), 0, 0); + SnippetController.get(this._editor).run(CodeSnippet.fromTextmate(snippetText), 0, 0); } private _onModel(): void {