Skip to content

Commit

Permalink
Bump codemirror-addon-toggle-comment to 0.2.0 (#153)
Browse files Browse the repository at this point in the history
Also fix grunt task and actually ignore the file
ficristo authored Dec 26, 2018
1 parent 2e03b5f commit d029124
Showing 5 changed files with 5 additions and 805 deletions.
1 change: 1 addition & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -200,6 +200,7 @@ module.exports = function (grunt) {
dest: "dist/www/thirdparty/codemirror-addon-toggle-comment",
cwd: "dist/www/node_modules/codemirror-addon-toggle-comment/dist",
src: [
"toggle-comment-simple.js",
"toggle-comment-simple.min.js",
"toggle-comment-simple.js.map"
]
13 changes: 3 additions & 10 deletions src/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
"dependencies": {
"acorn": "5.1.1",
"codemirror": "~5.42.0",
"codemirror-addon-toggle-comment": "^0.1.1",
"codemirror-addon-toggle-comment": "~0.2.0",
"create-react-class": "15.6.3",
"immutable": "3.8.2",
"less": "2.7.3",

This file was deleted.

20 changes: 0 additions & 20 deletions test/spec/EditorCommandHandlers-test.js
Original file line number Diff line number Diff line change
@@ -401,26 +401,6 @@ define(function (require, exports, module) {
testToggleLine(expectedText, {start: {line: 0, ch: 0}, end: {line: 7, ch: 3}});
});

it("should comment/uncomment lines that were partially commented out already, our style", function () {

// Start with line 3 commented out, with "//" at column 0
var lines = defaultContent.split("\n");
lines[3] = "// a();";
var startingContent = lines.join("\n");
myDocument.setText(startingContent);

// select lines 1-3
myEditor.setSelection({line: 1, ch: 0}, {line: 4, ch: 0});

lines = defaultContent.split("\n");
lines[1] = " //function bar() {";
lines[2] = " // ";
lines[3] = "//// a();";
var expectedText = lines.join("\n");

testToggleLine(expectedText, {start: {line: 1, ch: 0}, end: {line: 4, ch: 0}});
});

it("should comment/uncomment lines that were partially commented out already, comment closer to code", function () {

// Start with line 3 commented out, with "//" snug against the code

0 comments on commit d029124

Please sign in to comment.