lib/actions/toggle-block-comment.js
function comment(editor, range, modelType) {
	const commentParts = modelComments[modelType];
	editor.setTextInBufferRange(new Range(range.end, range.end), ` ${commentParts.after}`);
	editor.setTextInBufferRange(new Range(range.start, range.start), `${commentParts.before} `);
}
function comment(editor, range, modelType) {
	const commentParts = modelComments[modelType];
	editor.setTextInBufferRange(new Range(range.end, range.end), ` ${commentParts.after}`);
	editor.setTextInBufferRange(new Range(range.start, range.start), `${commentParts.before} `);
}
function comment ( editor , range , modelType ) { const commentParts = modelComments [ modelType ] ; editor . setTextInBufferRange ( new Range ( range . end , range . end ) , ` ${ commentParts . after } ` ) ; editor . setTextInBufferRange ( new Range ( range . start , range . start ) , ` ${ commentParts . before } ` ) ; }
Comments given node in text editor
@param  {TextEditor} editor
@param  {Range}      range
@param  {String}     modelType
Comments given node in text editor