-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Conversation
Assigning to @peterflynn |
@@ -148,6 +148,7 @@ define({ | |||
// Edit menu commands | |||
"EDIT_MENU" : "Edit", | |||
"CMD_SELECT_ALL" : "Select All", | |||
"CMD_SELECT_ALL" : "Select Line", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copy-paste error: the key should be "CMD_SELECT_LINE"
function selectLine() { | ||
var editor = EditorManager.getFocusedEditor(); | ||
if (editor) { | ||
from = {line: editor.getSelection().start.line, ch: 0}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing var
keyword, so this will crash when you run it (due to strict mode)
Also needs a merge with master. |
Done reviewing |
var editor = EditorManager.getFocusedEditor(); | ||
if (editor) { | ||
var from = {line: editor.getSelection().start.line, ch: 0}, | ||
var to = {line: editor.getSelection().end.line + 1, ch: 0}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Also removed toggleUseTabChars()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Syntax error again -- Brackets fails to start up because of this. Please correct the code, and test to make sure it runs before submitting the update.
My bad. I should've been careful. :) |
Alright, looks in good shape now -- merging. Thanks for finishing this off! |
Unit tests for new Select Line command (pull #2002)
…s-scope * origin/master: (206 commits) Update 'de' locale Add cleanup bug number to TODO. Improve docs on Resizer. update recent projects extension. remove reference to settings button. encode the URLs Fix Menu.removeMenuItem() unit tests: update for new setup where all tests in spec share one window (use unique ids for everything). Code cleanup in removeMenuItem(): use existing utility method to compute menu item id. Plus some docs tweaks. also check status 0 Fix bug with Select Line around end of inline editor range, and add unit tests for it. Remove unused argument to highlightMatch() Fix edge case with string range reporting from stringMatch() trap status from XMLHttpRequest and fail accordingly Unit tests for new Select Line command (pull #2002) pass return value Comment formatting tweak per code review Fix Quick Open so discontiguous matches are highlighted in modes other than file search: - Hoist out generic highlightMatch() utility to generate bolded strings - Use it in both defaultResultsFormatter() and _filenameResultsFormatter() Also: - Clarify stringMatch() docs a bit - Fix an older glitch in basicMatchSort(): the sort field precedence list had a gap, leading to a no-op comparison step fix margin/padding in recent project drop down add Project Settings... item to file menu code review changes More focus bug fixes remove commented out code Tweaks to docs in various files: clarifications & added/fixed type annotations. Fix lots of JSLint errors in CSSUtils-test. Remove unused dependencies in WorkingSetView. ... Conflicts: src/command/Menus.js
Same thing as #1450 (comment)