Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Issue 402433007: DevTools: [CodeMirror] remove auto-inserted whitespaces (Closed)

Created:
6 years, 5 months ago by lushnikov
Modified:
6 years, 5 months ago
Reviewers:
apavlov, vsevik
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, malch+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, sergeyv+blink_chromium.org, aandrey+blink_chromium.org
Project:
blink
Visibility:
Public.

Description

DevTools: [CodeMirror] remove auto-inserted whitespaces Currently, text editor auto-inserts spaces/tabs in certain cases. For example, if you hit "enter" when your cursor is located on indented line, the new line will be auto-indented. If you hit "enter" one more time, a new line will be added, but the previous empty line with trailing auto-added whitespaces will persist. This patch suggests removing auto-added indents on every next "enter" keypress. Note, that they will be removed only if they have not been edited. R=vsevik, apavlov Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178515

Patch Set 1 #

Patch Set 2 : reupload with --no-find-copies #

Total comments: 2

Patch Set 3 : rebaseline inspector/editor/text-editor-formatter.html #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -4 lines) Patch
A LayoutTests/inspector/editor/text-editor-auto-whitespace-removing.html View 1 1 chunk +117 lines, -0 lines 0 comments Download
A LayoutTests/inspector/editor/text-editor-auto-whitespace-removing-expected.txt View 1 chunk +43 lines, -0 lines 0 comments Download
M LayoutTests/inspector/editor/text-editor-formatter-expected.txt View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js View 1 2 4 chunks +24 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
lushnikov
6 years, 5 months ago (2014-07-18 13:44:55 UTC) #1
vsevik
lgtm https://chromiumcodereview.appspot.com/402433007/diff/20001/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js File Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js (right): https://chromiumcodereview.appspot.com/402433007/diff/20001/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js#newcode329 Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js:329: _onAutoAppendedSpaces: function() Let's split this into two methods ...
6 years, 5 months ago (2014-07-18 13:55:42 UTC) #2
lushnikov
https://chromiumcodereview.appspot.com/402433007/diff/20001/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js File Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js (right): https://chromiumcodereview.appspot.com/402433007/diff/20001/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js#newcode329 Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js:329: _onAutoAppendedSpaces: function() On 2014/07/18 13:55:42, vsevik wrote: > Let's ...
6 years, 5 months ago (2014-07-18 16:34:40 UTC) #3
lushnikov
The CQ bit was checked by lushnikov@chromium.org
6 years, 5 months ago (2014-07-18 16:34:43 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lushnikov@chromium.org/402433007/20001
6 years, 5 months ago (2014-07-18 16:35:14 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-18 17:38:29 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-18 18:06:19 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/16720)
6 years, 5 months ago (2014-07-18 18:06:20 UTC) #8
lushnikov
The CQ bit was checked by lushnikov@chromium.org
6 years, 5 months ago (2014-07-19 10:22:48 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lushnikov@chromium.org/402433007/20001
6 years, 5 months ago (2014-07-19 10:23:42 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-19 11:25:14 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-19 11:46:54 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/16802)
6 years, 5 months ago (2014-07-19 11:46:56 UTC) #13
lushnikov
The CQ bit was checked by lushnikov@chromium.org
6 years, 5 months ago (2014-07-19 12:05:44 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lushnikov@chromium.org/402433007/40001
6 years, 5 months ago (2014-07-19 12:05:52 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 5 months ago (2014-07-19 13:04:35 UTC) #16
commit-bot: I haz the power
6 years, 5 months ago (2014-07-19 13:36:25 UTC) #17
Message was sent while issue was closed.
Change committed as 178515

Powered by Google App Engine
This is Rietveld 408576698