format-javascript-comment
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -39,3 +39,3 @@ 'use babel'; | ||
curRow = range.end.row; | ||
while (curRow < 1000) { | ||
while (curRow < editor.getLineCount()) { | ||
if (doesRowMatch(curRow)) range.end.row = curRow; | ||
@@ -42,0 +42,0 @@ else break; |
{ | ||
"name": "format-javascript-comment", | ||
"main": "./lib/index", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"author": "Jan Amann <jan@amann.me>", | ||
@@ -6,0 +6,0 @@ "description": "Format your JavaScript comments", |
@@ -15,2 +15,4 @@ # Format JavaScript comment for Atom | ||
- If some selection is made, only the lines that are within the selection will be processed. However, lines can be selected partially. | ||
- Completely empty comment lines will be preserved. | ||
- Processing of multiple comments at once using multiple cursors. | ||
@@ -22,8 +24,1 @@ ## How? | ||
4. Press enter. | ||
## TODO | ||
- Configurable line length | ||
- Retain blank lines (already supported if the line is completely empty) | ||
- Ignore non-comment lines | ||
- Create a selection range across all modified lines at the end | ||
- Support multiple cursors |
@@ -13,2 +13,5 @@ 'use babel'; | ||
return lines[row]; | ||
}, | ||
getLineCount() { | ||
return lines.length; | ||
} | ||
@@ -15,0 +18,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
477945
15
325
23