Closed Bug 1138518 Opened 9 years ago Closed 9 years ago

Add JS template strings to the autoclose brackets list

Categories

(DevTools :: Source Editor, defect)

defect
Not set
normal

Tracking

(firefox39 fixed)

RESOLVED FIXED
Firefox 39
Tracking Status
firefox39 --- fixed

People

(Reporter: Kwan, Assigned: Kwan)

Details

Attachments

(1 file, 2 obsolete files)

bz already filed this upstream https://github.com/codemirror/CodeMirror/issues/3110 after a discussion in #devtools, but it turns out we override the list locally anyway in 
https://hg.mozilla.org/mozilla-central/file/eea6188b9b05/browser/devtools/sourceeditor/editor.js#l158
so can just add them there.  Patch incoming.
Attachment #8571437 - Flags: review?(bgrinstead)
Comment on attachment 8571437 [details] [diff] [review]
Add JS template string (`) to autoCloseBrackets

Review of attachment 8571437 [details] [diff] [review]:
-----------------------------------------------------------------

Sounds good, but this test will need to be updated or else it will fail with the patch applied: https://dxr.mozilla.org/mozilla-central/source/browser/devtools/sourceeditor/test/browser_editor_prefs.js#74.
Attachment #8571437 - Flags: review?(bgrinstead) → review-
(In reply to Brian Grinstead [:bgrins] from comment #2)
> Comment on attachment 8571437 [details] [diff] [review]
> Add JS template string (`) to autoCloseBrackets
> 
> Review of attachment 8571437 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Sounds good, but this test will need to be updated or else it will fail with
> the patch applied:
> https://dxr.mozilla.org/mozilla-central/source/browser/devtools/sourceeditor/
> test/browser_editor_prefs.js#74.

Ah, apologies for missing this.  Updated and run tests locally and passes, and try run at 
https://treeherder.mozilla.org/#/jobs?repo=try&revision=04bb87cb4e00
Attachment #8571437 - Attachment is obsolete: true
Attachment #8571461 - Flags: review?(bgrinstead)
Comment on attachment 8571461 [details] [diff] [review]
Add JS template string (`) to autoCloseBrackets, with test update

Review of attachment 8571461 [details] [diff] [review]:
-----------------------------------------------------------------

Nice.  Would you mind updating the commit message to mention that this is for the devtools source editor, and alsoadd r=bgrins at the end of the message?
Attachment #8571461 - Flags: review?(bgrinstead) → review+
(In reply to Brian Grinstead [:bgrins] from comment #4)
> Comment on attachment 8571461 [details] [diff] [review]
> Add JS template string (`) to autoCloseBrackets, with test update
> 
> Review of attachment 8571461 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Nice.  Would you mind updating the commit message to mention that this is
> for the devtools source editor, and alsoadd r=bgrins at the end of the
> message?

Sure, done.
Attachment #8571461 - Attachment is obsolete: true
Attachment #8571484 - Flags: review+
Try run in comment #3 all-green.
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/cf9240526d96
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 39
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: