Nathan Sobo
8b088926bb
Merge pull request #7602 from atom/ns-mixed-indent
...
Restore support for mixed tabs and spaces in line indentation
2015-06-30 15:54:47 -05:00
Nathan Sobo
82e25872b2
Handle indentation with mixed tabs and spaces
2015-06-30 15:31:11 -05:00
Nathan Sobo
c9a8585b49
🎨
2015-06-30 15:30:58 -05:00
Nathan Sobo
1d8035c3cc
Back out changes to onDidThrowError API
2015-06-30 15:30:58 -05:00
Nathan Sobo
5d957b677b
Revert "Merge pull request #7373 from atom/revert-7350-ns-assertions"
...
This reverts commit 1a3441a503 , reversing
changes made to 1aab5e74d9 .
2015-06-30 15:30:58 -05:00
Antonio Scandurra
6735357dd1
Retrieve backgroundColor from the correct object
...
Thanks, @nathansobo! ✨
2015-06-30 14:46:29 +02:00
Antonio Scandurra
8cd9128bec
Merge branch 'master' into as-tiled-gutter
2015-06-30 14:40:44 +02:00
Nathan Sobo
b580012173
Merge pull request #7563 from atom/ns-tabs-or-spaces-pick-one
...
Consider tabs or spaces mutually exclusively as indentation
2015-06-29 19:19:44 -05:00
Nathan Sobo
4af7f1e29d
Merge branch 'master' into as-tiled-gutter
2015-06-29 18:37:17 -05:00
Nathan Sobo
32705ab372
Merge branch 'master' into as-tiled-gutter
2015-06-29 17:10:45 -05:00
Nathan Sobo
b6d099ac78
Consider tabs or spaces mutually exclusively as indentation
...
Previously, we allowed a mix of tabs and spaces to be counted toward the
indentation of a line. This caused problems when auto-indenting lines in
a hard-tabbed file that contained “alignment spaces”, such as occurs in
aligned comment blocks. For this case, it makes more sense to assume
that the line is indented via tabs only, and consider the subsequent
alignment space as part of the line’s content. Since it’s hard to
imagine actual source code in which a mixed treatment of tabs and spaces
is desirable, I’m going with this over any more complex approach.
2015-06-29 17:05:28 -05:00
Kevin Sawicki
9c4dd71de2
Remove deferred browser process requires
2015-06-29 13:30:37 -07:00
Kevin Sawicki
85a4ae7fea
Remove --include-deprecated-apis command line option
2015-06-24 16:51:48 -04:00
Kevin Sawicki
0fa514b6e1
Remove open with deprecated APIs commands
2015-06-24 16:51:47 -04:00
Nathan Sobo
b7a8ddd153
Revert "Add assertion mechanism"
2015-06-22 14:27:05 -05:00
Kevin Sawicki
aa2530cb4e
Merge pull request #7360 from atom/iz-blow-up-on-undefined-command-callback
...
Throw error for commands registered with non-function callbacks
2015-06-22 11:10:17 -07:00
Kevin Sawicki
2192099d0f
Merge pull request #7351 from atom/mq-optional-clipboard-metadata
...
Mark Clipboard::write's metadata argument as optional
2015-06-22 11:02:01 -07:00
Nathan Sobo
1fe873740f
Merge pull request #7350 from atom/ns-assertions
...
Add assertion mechanism
2015-06-22 12:18:44 -05:00
Ivan Zuzak
9aa78606b3
Catch both string and object targets
2015-06-22 18:47:41 +02:00
Kevin Sawicki
648b46eb39
Merge pull request #7348 from tony612/fix-doc-for-text-editor-setText
...
fix doc for TextEditor setText
2015-06-22 09:28:03 -07:00
Ivan Zuzak
d47737718b
Throw error for commands with non-function callbacks
2015-06-22 08:30:01 +02:00
Ivan Žužak
852456fafe
Merge pull request #7173 from atom/ns-prompt-on-large-files
...
Show a warning prompt when opening files over 20MB
2015-06-21 18:17:59 +02:00
Ivan Žužak
d32f30780a
Massage the message a bit more
2015-06-21 17:48:32 +02:00
Machisté N. Quintana
4e1d47b09f
📝 Mark Clipboard::write's metadata argument as optional
2015-06-20 12:45:47 -04:00
Nathan Sobo
d1057b5de7
Fill error message in if needed for package specs
2015-06-20 18:37:54 +02:00
Nathan Sobo
a24816f76b
Handle null errors to support existing uses in tests
2015-06-20 18:37:54 +02:00
Nathan Sobo
64fca5db20
Absorb exception in isFoldableCodeAtRow and report assertion failure
...
Can’t figure out what’s going on in this bug, but we can hopefully make
it less damaging and collect more information via the new assertion
system.
Refs #5905
2015-06-20 18:37:53 +02:00
Nathan Sobo
11c3b3444b
Return a boolean from atom.assert
2015-06-20 18:37:53 +02:00
Nathan Sobo
a1f6a15c0b
Add atom.assert and atom.onDidFailAssertion
2015-06-20 18:37:53 +02:00
Nathan Sobo
cd35107f8c
Call atom.onDidThrowError handlers with the error object
...
…and remove a bunch of dead source maps handling. Source map handling
for stack traces is now built into Chromium so it shouldn’t be needed
here.
Original event properties maintained for backward compatibility with the
1.0 API. Can be deprecated for 2.0 once we transition
exception-reporter.
2015-06-20 18:37:53 +02:00
Tony Han
776eee2413
📝 fix doc for TextEditor setText
2015-06-20 17:58:31 +08:00
Antonio Scandurra
d6ac7863c9
Merge branch 'master' into as-tiled-gutter
2015-06-19 20:12:43 +02:00
Max Brunsfeld
ca146c991a
Merge pull request #7341 from atom/as-remove-orphaned-gutter-events
...
Remove event listeners from orphaned gutters
2015-06-19 10:52:17 -07:00
Kevin Sawicki
bde74dee0b
Merge pull request #7281 from atom/sm-default-editor-font
...
New default editor font
2015-06-19 09:12:18 -07:00
simurai
533abc5a63
Increase default line height even a bit more
2015-06-19 21:31:36 +09:00
Antonio Scandurra
d7156ff387
Remove event listeners from orphaned gutters
2015-06-19 10:24:48 +02:00
Antonio Scandurra
26b1d166fd
Merge pull request #7320 from atom/as-remove-gutter-from-view-registry
...
Fix TextEditorComponent Race Condition
2015-06-19 09:01:59 +02:00
simurai
2017e3fe23
Increase default line height
2015-06-19 10:22:26 +09:00
Antonio Scandurra
a3a8d8417b
Merge branch 'as-remove-gutter-from-view-registry' into as-tiled-gutter
2015-06-18 19:58:33 +02:00
Antonio Scandurra
c8f24d2358
Revert " 🐛 Remove Gutter from ViewRegistry"
...
This reverts commit b0d93accf7 .
2015-06-18 19:54:37 +02:00
Max Brunsfeld
64dfda572d
Use raw buffer text (w/o invisibles) when testing decreaseIndentRegex
2015-06-17 12:07:42 -07:00
Max Brunsfeld
3cdeaa8b51
Don't auto-indent when pasting text w/ no line breaks
2015-06-17 10:57:21 -07:00
Antonio Scandurra
b04b0a8dc4
🐛 Fix race condition as well
2015-06-17 13:48:31 +02:00
Antonio Scandurra
b0d93accf7
🐛 Remove Gutter from ViewRegistry
...
Closes #7306
We started noticing that when a `TextEditor` pane got split, the same view for
`Gutter` was being shared amongst several models, thereby making the same DOM
element accessible simultaneously by more than one object. This made us
experience *orphaned line numbers*, caused by two instances of
`LineNumberGutterComponent` mutating `.line-numbers` at the same time.
This is a typical race condition which I would normally address by understanding
and possibly locking the correct order in which operations should happen.
However, I believe in this situation we shouldn’t actually care about ordering
at all, since I think views should be kept “local”, thus avoiding to expose them
to the world and/or reusing them across other views (either accidentally as in
this case or on purpose).
2015-06-17 12:28:10 +02:00
Max Brunsfeld
dbb1200e1b
🔥 unused method
2015-06-16 14:54:01 -07:00
aki
449c03cb35
Fix destroy listeners
2015-06-16 18:05:45 +09:00
Max Brunsfeld
41773b0861
Fix incorrect state save when exiting
2015-06-15 14:14:08 -07:00
simurai
e4ba689e40
Replaces default editor font
...
Only affects OS X
2015-06-15 16:03:50 +09:00
Antonio Scandurra
a7ff49ebaa
🎨
2015-06-13 17:36:20 +02:00
Antonio Scandurra
e190d441ed
🔥
2015-06-13 14:25:50 +02:00