Antonio Scandurra
5e6938c1a8
Use core: instead of core/ when adding resources during snapshot
2017-03-28 13:35:35 +02:00
Antonio Scandurra
a25b58a559
Use @preloaded instead of checking if pack is bundled and dev mode is on
2017-03-28 11:52:25 +02:00
Antonio Scandurra
ab9326687d
Streamline path resolution for preloaded packages
2017-03-28 11:47:45 +02:00
Antonio Scandurra
672259ec51
Deactivate preloaded package when the same package has been linked
2017-03-28 10:22:29 +02:00
Antonio Scandurra
557fac226d
Read devMode from PackageManager in Package
2017-03-28 10:22:29 +02:00
Antonio Scandurra
19010b9424
Activate menus, context menus, keymaps and settings during preload
2017-03-28 10:22:29 +02:00
Antonio Scandurra
974e1b7f4a
Preload settings
2017-03-28 10:22:29 +02:00
Antonio Scandurra
ab1411b1d7
Preload bundled grammar paths
2017-03-28 10:22:29 +02:00
Antonio Scandurra
9c469eb337
Deactivate and delete preloaded packages if they are disabled
2017-03-28 10:22:29 +02:00
Antonio Scandurra
de47a26c5d
WIP: Start preloading packages
2017-03-28 10:22:29 +02:00
Antonio Scandurra
fd0cd13271
Fix typo
2017-03-28 10:22:29 +02:00
Antonio Scandurra
e9c13a92ed
Extract a loadAvailablePackage method and avoid doing work twice
...
This will reuse the information that comes from `getAvailablePackages`,
thus avoiding to resolve, for example, a package path twice.
`PackageManager.loadPackage` will still be supported for backward
compatibility, but it will use `loadAvailablePackage` under the hood.
2017-03-28 10:22:29 +02:00
Antonio Scandurra
b913ad8bb5
Extract a getAvailablePackages method and start using it
2017-03-28 10:22:29 +02:00
Michelle Tilley
1ff5c9e684
Merge pull request #13963 from atom/ku-mkt-restore-atom-env-when-adding-folder-to-fresh-window
...
Restore atom environment when adding project folders to a fresh window
2017-03-27 10:56:37 -07:00
Matthew Brener
11c06d44b8
Fix typo in comments of text-editor-registry.js
2017-03-26 19:46:43 +11:00
Michelle Tilley
1651f0fd76
👕
2017-03-23 23:57:53 -07:00
Michelle Tilley
f657bd13c6
👕
2017-03-23 23:44:38 -07:00
Michelle Tilley
cc2cbfbb0a
Emit event from AtomWindow when locations are loaded
2017-03-23 23:36:53 -07:00
Katrina Uychaco
4c1cb16e77
Merge remote-tracking branch 'origin/master' into ku-mkt-restore-atom-env-when-adding-folder-to-fresh-window
2017-03-22 20:36:59 -07:00
Michelle Tilley
d9b73fa645
Restore state when opening folders to applicable windows
...
Note: "clean window" is defined as 1) having an empty project and 2)
having no pane items or only empty unnamed buffers
When project is empty and there is saved state associated with the
opened/added folders...
* Open a file or folder (from command line or Open menu)
* If we have a clean window, restore project state in window
* If window is dirty, restore saved state in new window
2017-03-22 20:25:57 -07:00
Michelle Tilley
910fef97a0
Restore state when adding folders to applicable windows
...
Note: "clean window" is defined as 1) having an empty project and 2)
having no pane items or only empty unnamed buffers
Adding folder(s)
* If we have a clean window, restore project state in window
* If window is dirty, prompt user to
* add folder to the existing window LOSING state
* OR open project folder in a new window
2017-03-22 20:24:50 -07:00
Antonio Scandurra
2ce66a724c
Ensure packagesCache exists before accessing it
2017-03-20 17:23:06 +01:00
Antonio Scandurra
e2637aac78
🎨
2017-03-20 10:20:36 +01:00
Antonio Scandurra
95cf200a7c
Merge branch 'as-snapshot-atom-environment' into as-ns-optimize-stylesheets-loading
...
# Conflicts:
# script/tdd
2017-03-20 10:06:57 +01:00
Antonio Scandurra
31692f6e6c
Merge branch 'master' into as-snapshot-atom-environment
2017-03-20 09:58:15 +01:00
Antonio Scandurra
17611889d3
Use core/ instead of <embedded> for keymaps loaded during snapshot
2017-03-20 09:56:40 +01:00
Antonio Scandurra
6722450b7e
Merge pull request #14021 from atom/as-fix-snapshot-stack-traces
...
Use the generated snapshot source map in `source-map-support`
2017-03-17 18:05:42 +01:00
Antonio Scandurra
784d5043cf
Set also defaultSettings.core.projectHome when initializing Config
2017-03-17 17:40:08 +01:00
Antonio Scandurra
934c377af6
Fix tests
2017-03-17 17:04:11 +01:00
Antonio Scandurra
d94c8811f3
Replace CommandRegistry.addBundled with a boolean param in .add
2017-03-17 16:19:25 +01:00
Antonio Scandurra
2f9a9ed657
Merge branch 'master' into as-snapshot-atom-environment
2017-03-17 15:25:10 +01:00
Antonio Scandurra
7534fbbeb7
Fix lint errors
2017-03-17 14:58:36 +01:00
Antonio Scandurra
ccbb276bf5
Bake source maps into the snapshot
2017-03-17 13:25:00 +01:00
Antonio Scandurra
0c8e515f9f
Don't change on{Will,Did}ThrowError events parameter
2017-03-17 13:16:23 +01:00
Antonio Scandurra
bade347e01
Revert "Upgrade to Babel 6 and apply fewer transformations when transpiling babel files"
2017-03-17 12:40:38 +01:00
Antonio Scandurra
cbe60bd53d
Use the generated snapshot source map in source-map-support
...
This will report the correct file and line numbers on stack traces
instead of always showing `<embedded>:absoluteLineNumber`. As a result,
it will also fix the `notifications` package, which will be able again
to identify which package threw an exception and to create an issue on
its repository.
2017-03-17 12:28:22 +01:00
Antonio Scandurra
81af989f0d
Merge branch 'master' into as-snapshot-atom-environment
2017-03-16 21:08:41 +01:00
Antonio Scandurra
ad6a5ac3bf
Don't send did-resolve-proxy messages to destroyed windows
...
This should fix some main process test failures we are observing on
AppVeyor.
2017-03-16 15:58:54 +01:00
Antonio Scandurra
a8b885c4d5
Merge branch 'master' into as-ns-startup-snapshot
2017-03-16 10:52:34 +01:00
Antonio Scandurra
a1da6c9196
Resolve style sheets paths during script/build for bundled packages
2017-03-14 14:27:10 +01:00
Antonio Scandurra
b2ef8abf0a
Don't use cached less sources and imported files in dev mode
2017-03-14 13:50:22 +01:00
Antonio Scandurra
684d8bd42c
Provide importedFilePathsByRelativeImportPath to LessCache
2017-03-14 13:35:28 +01:00
Antonio Scandurra
dc76e2e144
Load base style sheets in AtomEnvironment again
2017-03-14 08:59:21 +01:00
Antonio Scandurra
abeedfe0c5
Skip deprecated selectors upgrade for base style sheets too
2017-03-14 08:58:31 +01:00
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
Antonio Scandurra
0d29004723
Speed up FileSystemBlobStore.load by not storing invalidation keys
...
This was unneeded because we can simply compute the cache key by
concatenating the v8 version and the file's contents.
2017-03-13 19:11:53 +01:00
Antonio Scandurra
70177e5a4d
Merge branch 'as-snapshot-atom-environment' into as-ns-optimize-stylesheets-loading
...
# Conflicts:
# script/package.json
# script/tdd
# src/atom-environment.coffee
# src/context-menu-manager.coffee
# src/keymap-extensions.coffee
# src/theme-manager.coffee
# src/workspace-element.coffee
2017-03-13 08:32:12 +01:00
Antonio Scandurra
ea440148d8
Fix remaining tests
2017-03-12 11:57:16 +01:00
Antonio Scandurra
284f2c62e5
Start fixing tests
2017-03-11 19:05:28 +01:00
Antonio Scandurra
fbcbfc4889
Validate selectors only in devMode
2017-03-11 18:56:29 +01:00