Ian Olsen
4ef9a0502f
Merge pull request #11803 from lexicalunit/lexicalunit/replace-selected-text-tweak
...
Following replaceSelectedText(), update the selected text range accordingly.
2017-03-13 14:46:50 -07:00
Dirk Thomas
348553049a
update specs
2017-03-10 10:41:20 -08:00
Antonio Scandurra
11961b09ac
Merge pull request #13949 from atom/as-minimize-startup-sync-io
...
Minimize synchronous I/O during startup
2017-03-10 15:00:30 +01:00
Antonio Scandurra
7e761d39af
Fall back to local storage when no history can be found
2017-03-10 14:37:37 +01:00
Antonio Scandurra
5f9b62c603
💚
2017-03-10 09:31:59 +01:00
Antonio Scandurra
33f96bf6cb
Fix workspace-spec.js
2017-03-10 09:01:10 +01:00
Antonio Scandurra
9e864fac30
Merge branch 'master' into as-update-fs-plus
2017-03-09 20:33:13 +01:00
Amy Troschinetz
ac7bb27e22
Select the replaced text post replacement.
2017-03-08 20:24:31 -06:00
Nathan Sobo
206bcac1bc
Merge pull request #13955 from atom/fb-mdt-workspace-element-to-js
...
Convert workspace element and spec to JavaScript
2017-03-07 19:49:32 -07:00
Matthew Dapena-Tretter
3017b28ef7
Convert workspace element to JS: Cleanup
2017-03-07 16:31:00 -08:00
Matthew Dapena-Tretter
ca4d55954b
Convert workspace element to JS: Lint
2017-03-07 15:56:57 -08:00
Matthew Dapena-Tretter
ede4a2972a
Convert workspace element to JS: Decaffeinate
2017-03-07 15:49:22 -08:00
Matthew Dapena-Tretter
d6a354d6ba
Convert panel container to JS: Cleanup
2017-03-07 14:52:32 -08:00
Matthew Dapena-Tretter
f56865b6f8
Convert panel container to JS: Lint
2017-03-07 14:30:33 -08:00
Matthew Dapena-Tretter
228b24b68b
Convert panel container to JS: Decaffeinate
2017-03-07 14:20:27 -08:00
Antonio Scandurra
cf9a5b13e3
Replace localStorage with StateStore in HistoryManager
...
Instead of using `localStorage` to store and retrieve the project
history, with this commit we will use `StateStore` so that we can
retrieve state asynchronously without blocking Atom during startup.
2017-03-07 11:02:40 +01:00
Antonio Scandurra
a9f91cc96e
Delete test verifying that GitRepository.open works with file paths
...
With the upgrade of git-utils libgit2 was updated too and the behavior
tested by the deleted spec doesn't seem to be supported anymore.
However, we believe we can delete this test because the only entry point
for creating `GitRepository` instances is `repositoryForDirectorySync`
in `GitRepositoryProvider`, which only allows `Directory` objects to be
supplied as its input arguments.
2017-03-06 16:18:40 +01:00
Antonio Scandurra
e74737d38e
Fix ThemeManager specs
2017-03-06 14:39:04 +01:00
Antonio Scandurra
778db180db
Fix Workspace specs
2017-03-06 13:34:43 +01:00
Antonio Scandurra
ed9a101de2
Fix destroying a PanelContainer containing multiple panels
...
Previously, when calling `destroy` on a `PanelContainer` containing
multiple panels, Atom would throw a `Cannot read property 'destroy' of
undefined` exception. This was due to iterating over the panels while at
the same time destroying them, which caused the iterated array to be
modified during the loop.
With this commit we slice the array before iterating over it so that
destroying a `PanelContainer` doesn't throw exceptions anymore.
2017-03-04 15:39:38 +01:00
Max Brunsfeld
4f261731ae
Merge pull request #13922 from atom/fb-mdt-workspace-to-js
...
Convert workspace to JavaScript
2017-03-03 13:03:36 -08:00
Wliu
5f2dc226b5
Merge pull request #13912 from atom/wl-remove-workaround
...
Remove macOS emoji workaround
2017-03-03 10:51:46 -05:00
Matthew Dapena-Tretter
53ec839ae5
Convert workspace to JavaScript: cleanup
2017-03-02 18:11:22 -08:00
Matthew Dapena-Tretter
7a0d7f8b4c
Convert workspace to JavaScript: lint
2017-03-02 18:01:40 -08:00
Matthew Dapena-Tretter
cb71ce64ae
Convert workspace to JavaScript: decaffeinate
2017-03-02 18:01:40 -08:00
Max Brunsfeld
c1d1bbcb18
Provide a fresh environment when deserializing in specs
2017-03-02 11:54:00 -08:00
Max Brunsfeld
d6981dfcab
Avoid throwing intentional errors in DOMElementPool test
2017-03-02 10:19:48 -08:00
Max Brunsfeld
c26509cfab
Throw an error when assertions fail if built from source
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2017-03-02 10:14:59 -08:00
Wliu
fabc38162b
Remove macOS emoji workaround
...
No longer needed now that we are on Chrome 53
2017-03-01 17:32:31 -05:00
Wliu
82faad9f92
Merge pull request #13825 from atom/wl-relativize-specs-more
...
Relativize spec paths more when reporting
2017-02-23 17:44:47 -05:00
Damien Guard
e04c31445d
Merge pull request #13754 from hron/normalize-disk-drive-letter
...
Normalize disk drive letter in path on Windows
2017-02-20 09:54:19 -08:00
Aleksei Gusev
fd9dbb6e87
Normalize disk drive letter in path on Windows
...
Currently atom creates two buffers for the same file if passed
paths use difference case for disk drive letter,
e.g. d:\file.txt and D:\file.txt
2017-02-18 11:32:44 +03:00
Antonio Scandurra
4acd477559
Merge pull request #13818 from atom/ns-as-return-all-decorations
...
Return decorations for markers from *all* marker layers from decorationsForScreenRowRange
2017-02-17 11:15:15 +01:00
Antonio Scandurra
85dde00e82
Merge branch 'master' into as-use-babel6
2017-02-16 12:59:05 +01:00
Max Brunsfeld
97340ee4c5
Merge pull request #13810 from atom/mb-fix-state-key-when-opening-new-files
...
Restore correct directory's project state when opening a new file from the CLI
2017-02-15 14:13:28 -08:00
Max Brunsfeld
0c3b774c94
Avoid sending file path to renderer process in main process test
...
On windows, because the path contains backslashes, evaling a string containing
the path can interpret the backslashes as escape sequences
2017-02-15 13:53:08 -08:00
Max Brunsfeld
13055c8620
Wait on loadedPromise for workspace to deserialize in main process test
2017-02-15 11:05:21 -08:00
Wliu
b8a08affc6
Relativize spec paths more when reporting
...
* `[object Object].anonymous` changed a while back to just `.anonymous`
* Windows uses `file:///path` notation, so take that into account
* Also relativize paths in parentheses
2017-02-15 11:36:57 -05:00
Antonio Scandurra
cf329d0f63
Use octal integer literal
2017-02-15 17:19:55 +01:00
Nathan Sobo
c427daaadd
Fix spurious rename
2017-02-14 14:12:20 -07:00
Max Brunsfeld
ec0270b250
Explicitly save window states in main process test
2017-02-14 12:40:00 -08:00
Max Brunsfeld
ee962052b2
Tweak naming in main process test
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2017-02-14 12:05:17 -08:00
Nathan Sobo
e736656380
Don't pass default marker layer to decoration manager
2017-02-14 11:44:56 -07:00
Nathan Sobo
28508d9a3f
Make decorationsForScreenRowRange return all decorations
...
Even if they are for markers that aren't on the default marker layer
2017-02-14 11:44:38 -07:00
Nathan Sobo
4abcace5c3
Throw exceptions when decorating destroyed marker layers
2017-02-14 09:44:02 -07:00
Max Brunsfeld
aea6896c2b
Restore correct directory's project state when opening a new file from the command line
2017-02-13 17:23:11 -08:00
Nathan Sobo
ee749bf286
Assign className in DOMElementPool when building new elements
...
Also, improve test coverage
2017-02-13 11:27:44 -07:00
Nathan Sobo
1528561c9b
Only free elements that the DOMElementPool created
2017-02-13 10:46:37 -07:00
Nathan Sobo
5753b75f09
Fail assertion with content metadata if the same element is freed twice
...
This changes the element pool to only remove elements' children right
before we use an element again in order to preserve the structure of
double-freed elements. This will aid in debugging double-free
occurrences. It's also less work in cases where nodes aren't reused.
2017-02-13 10:30:51 -07:00
Nathan Sobo
2ad6f83239
Allow metadata to be passed to atom.assert
2017-02-13 10:29:04 -07:00