Nathan Sobo
ac463143dd
Add 1 pixel to scrollWidth to account for cursor if not soft-wrapped
2015-02-03 15:05:13 -07:00
Nathan Sobo
2296d2d378
Account for overdrawMargin of startRow when computing the endRow
2015-02-03 15:05:13 -07:00
Nathan Sobo
143183aa25
🎨
2015-02-03 15:05:13 -07:00
Nathan Sobo
0f4bcac8d4
Add 1 to the last row to ensure it’s visible
2015-02-03 15:05:12 -07:00
Nathan Sobo
b09b54800f
Include line text in presenter state
2015-02-03 15:05:12 -07:00
Nathan Sobo
2120c3c298
Instantiate presenter in TextEditorComponent and update measurements
2015-02-03 15:05:12 -07:00
Nathan Sobo
f4d8ef8315
Add width to lines state based on the computed scrollWidth
...
This is based on the ::baseCharacterWidth property for now. To be fully
correct, we need to base the scrollWidth on the actual width of
individual characters.
2015-02-03 15:05:12 -07:00
Nathan Sobo
a1c2e1bb66
Update TextEditorPresenter when the editor’s content changes
2015-02-03 15:05:12 -07:00
Nathan Sobo
5a2bbc945b
Handle changing ::lineHeight in TextEditorPresenter
2015-02-03 15:05:12 -07:00
Nathan Sobo
9c2ed478cd
Handle changing ::clientHeight in TextEditorPresenter
2015-02-03 15:05:11 -07:00
Nathan Sobo
880e1ce1f0
Handle changing ::scrollTop in TextEditorPresenter
2015-02-03 15:05:11 -07:00
Nathan Sobo
f0920bf63b
Start on TextEditorPresenter with lines state
2015-02-03 15:05:11 -07:00
Kevin Sawicki
47bd093d68
🐎 Load 6to5 version directly from package.json
...
This prevents the entire library from being required just to check the
cache so when 6to5 is being used and all files are cached it should shave
~250ms off startup.
2015-02-03 13:36:26 -08:00
Kevin Sawicki
6ad704c1e4
Defer requiring 6to5 until it is used
...
It seems to have a require time of ~250ms
2015-02-03 09:05:34 -08:00
Kevin Sawicki
312e4e0e8a
Be graceful about pathsToOpen string value
...
Gently convert it to an array of strings before opening
Closes #5340
2015-02-02 18:17:15 -08:00
Kevin Sawicki
853ad9cee3
Re-throw stylesheet compile errors
...
This makes it consistent with other read errors. Previously a Notification
was returned in the error case causing errors downstream where the package's
stylesheets array was assumed to be a path/content tuple.
Closes atom/deprecation-cop#22
2015-02-02 17:55:36 -08:00
Lee Dohm
23b8b15261
📝 Fix broken json-schema.org link
2015-02-02 17:22:29 -08:00
Max Brunsfeld
3739995ddb
Merge pull request #5277 from atom/mb-package-json-services
...
Allow packages to specify services in their package.json files
2015-02-02 17:07:41 -08:00
Kevin Sawicki
9858916c31
🎨
2015-02-02 14:10:53 -08:00
Kevin Sawicki
18ed76f111
Add transpiler name dir segment
2015-02-02 14:09:49 -08:00
Kevin Sawicki
feb35e710c
Make 6to5 first cache segment
...
Makes it easier to blow away if needed.
2015-02-02 14:08:50 -08:00
Kevin Sawicki
2e989b502a
Remove unneeded try/catch
2015-02-02 14:08:35 -08:00
Kevin Sawicki
434c9e60a8
Remove console logging
2015-02-02 14:08:00 -08:00
Kevin Sawicki
84453d5441
Ignore errors writing to the cache
2015-02-02 14:07:39 -08:00
Kevin Sawicki
9e11914b8b
Add helper to cache without requiring
2015-02-02 14:07:11 -08:00
Kevin Sawicki
f9f7cf6d34
Add more 6to5 specs
2015-02-02 13:29:20 -08:00
Kevin Sawicki
8365ccb064
Merge pull request #5299 from bolinfest/6to5
...
Transpile all .js files beginning with the "use 6to5"; pragma with 6to5.
2015-02-02 13:11:33 -08:00
Max Brunsfeld
b24b338b2c
Add deprecated shim for atom.services global
2015-02-02 10:01:57 -08:00
Max Brunsfeld
65f2ffa55e
Rename service keys in package.json
...
* serviceProvisions -> providedServices
* serviceDependencies -> consumedServices
Signed-off-by: Nathan Sobo <nathan@github.com >
2015-02-02 10:01:50 -08:00
Max Brunsfeld
5638c7fb6a
Remove atom.services global
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2015-02-02 10:01:34 -08:00
Max Brunsfeld
027ebc78c4
Respect service{Provisions,Dependencies} in packages' metadata
2015-02-02 10:00:53 -08:00
Ben Ogle
9cb67a6def
📝 Fix doc reference in config
2015-01-30 16:52:19 -08:00
Ben Ogle
d3f29c4580
🎨 Fix wording
2015-01-29 17:54:41 -08:00
Ben Ogle
cd812e7a65
Transact on resetting the settings when a schema changes
2015-01-29 17:54:41 -08:00
Ben Ogle
4e6e636b8b
🎨 Reorder args to be consistent with other methods
2015-01-29 17:54:41 -08:00
Ben Ogle
083bafdb33
Handle unschema’d items in objects.
...
This is required for packages that still use configDefaults
2015-01-29 17:54:41 -08:00
Ben Ogle
adbe151c5d
Fix up the linter error
2015-01-29 17:54:41 -08:00
Ben Ogle
b9b2b4bca2
Adhere to the schemas when loading the user’s config
2015-01-29 17:54:41 -08:00
Ben Ogle
79094ee889
Reset all user config values when the schema changes.
2015-01-29 17:54:40 -08:00
Michael Bolin
52f2c0ec69
rename esnext to 6to5
2015-01-29 17:29:02 -08:00
Michael Bolin
fed2bd6ab8
fixed a bug in updateDigestForJsonValue with how null was handled
2015-01-29 12:33:14 -08:00
Michael Bolin
d29b5b20cd
Prefer Object.defineProperty()
2015-01-29 12:27:31 -08:00
Michael Bolin
a0bb9d88e0
remove parens
2015-01-29 12:21:59 -08:00
Michael Bolin
32b3c4076f
More fixes for @kevinsawicki
2015-01-29 12:15:10 -08:00
Michael Bolin
acd1d31480
Address @kevinsawicki's comments.
2015-01-29 12:10:25 -08:00
Michael Bolin
242fce3d79
Transpile all .js files with 6to5.
...
In the spirit of supporting JavaScript development for Atom packages,
this adds default support for es.next transpilation support in the way
that Atom already has default support for CoffeeScript transpilation.
There are many new features in ES6+ that make JavaScript development
easier and more enjoyable, particularly in terms of support for async code.
For reference, this was a much faster way to iterate on this than running `./script/build`
each time:
```
cp /Users/mbolin/src/atom/static/index.js /Applications/Atom.app/Contents/Resources/app/static/index.js
coffee --output /Applications/Atom.app/Contents/Resources/app/src --compile /Users/mbolin/src/atom/src/esnext.coffee
```
Run the following in the console to see how warm the cache was after startup:
```
global.require('../src/esnext/').getCacheHits()
global.require('../src/esnext/').getCacheMisses()
```
2015-01-29 11:56:32 -08:00
Kevin Sawicki
3ca5495690
Merge pull request #5279 from paulcbetts/patch-1
...
Enable DirectWrite
2015-01-28 16:11:15 -08:00
Cheng Zhao
93181d8a54
Array::find is undefined in Chrome 40
2015-01-28 14:06:14 -08:00
Cheng Zhao
87c2f4496f
🐧 Set window icon, fixes #5281
2015-01-27 20:34:36 -08:00
Paul Betts
a743e8d058
Enable DirectWrite
...
Chrome 39 proper now has DirectWrite as the default renderer, which makes a huge difference in text clarity, especially on High DPI monitors.
2015-01-27 14:38:50 -08:00