53 Commits

Author SHA1 Message Date
Amanda Li
02fd34d269 Resolve Uncaught TypeError (#16392)
A `TypeError` raised when a certain file, or lack thereof, causes Atom to open improperly, without the side pane appearing. To fix this, users must clear their Atom window state, then reopen the program. Add a notification when this error occurs with information on how to resolve it.

Co-authored-by: Sadick <sadickjunior@gmail.com>
Co-authored-by: Amin Yahyaabadi <aminyahyaabadi74@gmail.com>
2021-02-01 11:04:32 +03:00
Rafael Oleza
7f3f040628 Reformat all JS files using prettier 2019-05-31 18:33:56 +02:00
Ash Wilson
0e8dde4c60 Merge branch 'pr-18394/jneuendorf/master' 2019-01-15 15:52:50 -05:00
Ash Wilson
b4fa03a4a0 It's event.action, not event.type 2019-01-15 15:52:08 -05:00
Ash Wilson
6d2e298de1 Extract a utility method on Project 2019-01-03 16:40:47 -05:00
Jim Neuendorf
bdb694cd44 fixed doc comment js syntax in project::onDidChangeFiles 2018-11-04 17:04:15 +01:00
Jason Rudolph
55da0d8f5d Introduce atom.project.observeRepositories(callback) 2018-07-20 14:05:56 -04:00
Jason Rudolph
806d9311bf Introduce atom.project.onDidAddRepository(callback) 2018-07-20 14:04:22 -04:00
Max Brunsfeld
6c85ff84a5 Start parsing right away when constructing a TreeSitterLanguageMode
Co-Authored-By: Ashi Krishnan <queerviolet@github.com>
2018-06-27 14:31:48 -07:00
Max Brunsfeld
d4d57c2c8e 🐎 Parse asynchronously when opening buffers 2018-05-23 09:42:36 -07:00
Ash Wilson
c578cd2bfa .type 👉 .action 2018-04-16 14:09:55 -04:00
Philip Weiss
d7eff0ec55 Merge branch 'master' into fb-pw-simple-project-config 2018-03-09 14:06:14 -08:00
Philip Weiss
e14ffb9420 set default path inside of project.replace 2018-03-09 14:04:21 -08:00
Wliu
2e19cf4a7c 📝 [ci skip] 2018-03-07 15:32:40 -05:00
Philip Weiss
062dfdea80 address PR comments 2018-03-06 11:06:22 -08:00
Philip Weiss
232f821c35 remove getProjectSettings 2018-03-01 19:45:40 -08:00
Philip Weiss
d5aaf9117a update with max's suggestions 2018-03-01 19:09:22 -08:00
Philip Weiss
9fb756feeb save entire settings object, rather than just the filename 2018-03-01 13:28:16 -08:00
Philip Weiss
5d6e531ede replace -> did-replace 2018-02-26 17:03:54 -08:00
Philip Weiss
8567b8feea fix linting issues 2018-02-26 15:56:36 -08:00
Philip Weiss
48d3677664 update project api names 2018-02-26 15:45:56 -08:00
Philip Weiss
547b067f3e add callback to onDidReplaceAtomProject and add tests 2018-02-26 14:38:50 -08:00
Philip Weiss
607b3ffe52 add callback to ondidreplaceatomproject 2018-02-26 10:34:12 -08:00
Philip Weiss
a9fd84d8e9 flesh out clearatomproject 2018-02-25 22:00:49 -08:00
Philip Weiss
e376096e8f use setpaths instead of command line paths 2018-02-25 21:57:18 -08:00
Philip Weiss
f2eede833e add onDidReplaceAtomProject api 2018-02-25 20:24:03 -08:00
Philip Weiss
89fbf1e25b change API to clearAtomProject 2018-02-24 18:23:31 -08:00
Philip Weiss
b1490e951c fix linting issues 2018-02-24 18:17:34 -08:00
Philip Weiss
1483c0c96d add more data passed through with projectSettings 2018-02-24 17:50:18 -08:00
Philip Weiss
bf6a4e3db4 add .atomProject files 2018-02-18 15:03:00 -08:00
Max Brunsfeld
0390548e2c Make FileRecoveryService async 2018-01-18 11:27:27 -08:00
Tony Brix
174672d00b Update all {Repository} to {GitRepository} 2018-01-15 23:34:43 -06:00
Max Brunsfeld
96e4018ef7 Resubscribe to grammar events after clearing grammar registry 2017-11-06 12:36:58 -08:00
Max Brunsfeld
4ec1d85aad Merge branch 'master' into mb-use-language-mode-api 2017-11-06 11:32:52 -08:00
Max Brunsfeld
351f96d5dd Iterate on GrammarRegistry APIs
Signed-off-by: Nathan Sobo <nathan@github.com>
2017-11-06 09:36:06 -08:00
Max Brunsfeld
140a783011 Start work on switching to new language mode API 2017-11-03 00:12:33 -07:00
Max Brunsfeld
0d6c746572 Add grammar registry as an injected dependency of Project 2017-11-02 12:24:11 -07:00
Max Brunsfeld
b7ae57bdbe Inline unnecessary addBufferAtIndex method 2017-11-02 11:56:54 -07:00
hansonw
303cf30b51 Allow directory providers to implement onDidChangeFiles for custom pathwatchers 2017-11-02 11:43:33 -07:00
Jason Rudolph
a4ea46c57e Rename local variable
/xref: https://github.com/atom/atom/pull/15898#discussion_r144850427
2017-10-16 11:04:56 -04:00
Jason Rudolph
5ec9d0f134 🐛 Fix bug disposing watchers in Project::addPath
`this.rootDirectories` is an Array of Directory objects. `path` is a
String. Therefore, `this.rootDirectories.includes(path)` will always
evaluate to `false`. We instead need to look for an entry in
`this.rootDirectories` where the Directory object's path is equal to the
given path.
2017-10-15 10:00:14 -04:00
Jason Rudolph
5937b95b49 Fix loop contructs that got borked by decaffeinate 2017-10-15 10:00:02 -04:00
Jason Rudolph
790e202549 🎨 2017-10-15 10:00:02 -04:00
Jason Rudolph
8df4cfbe58 🎨 2017-10-15 10:00:02 -04:00
Jason Rudolph
48625584e4 🎨 Use shorter variations of null checks 2017-10-15 10:00:02 -04:00
Jason Rudolph
b2571e8976 Avoid inline assignments 2017-10-15 10:00:02 -04:00
Jason Rudolph
99aaafed1b DS103: Rewrite code to no longer use __guard__ 2017-10-15 10:00:02 -04:00
Jason Rudolph
94a552149d Remove unnecessary use of Array.from 2017-10-15 10:00:01 -04:00
Jason Rudolph
c1b0afe969 Remove unnecessary code created because of implicit returns 2017-10-15 10:00:01 -04:00
Jason Rudolph
8f40af16a9 🎨 2017-10-14 17:07:09 -04:00