Damien Guard
016c321bba
Merge pull request #15081 from mortenpi/multiple-instances
...
Independent Atom instances (per $ATOM_HOME)
2017-12-17 16:52:20 -08:00
Segev Finer
5490a8b258
Initialize ProtocolHandlerInstaller after initializing Config
...
This allows it to correctly read `core.uriHandlerRegistration` and
avoids popping the notification even if set to 'never'.
Fixes #16201
2017-12-16 23:34:37 +02:00
Katrina Uychaco
2d6750cae3
Remove input enabled check for 'is-focused' class
...
vim-mode-plus relies on this behavior
2017-12-14 11:56:23 +01:00
Damien Guard
ca53cf9ec1
Remove the texteditor isModified/isReadOnly handling intended for unsavable edit buffers as causes issues with vim-mode-plus
2017-12-13 09:17:30 -08:00
Max Brunsfeld
e669152841
Merge pull request #16074 from UziTech/patch-4
...
Make notifications.clear public and emit event
2017-12-08 14:20:33 -08:00
GilTeixeira
2369219c87
Changed atom safe mode theme to One Dark.
2017-12-07 16:53:38 +00:00
Katrina Uychaco
b3cee41f28
Merge remote-tracking branch 'origin/master' into ku-add-readonly-editor-attribute
2017-12-05 14:02:39 -08:00
Damien Guard
70e773fa7b
Ensure read-only text editors are not considered 'modified'. Also clear read-only flag on successful save.
2017-12-04 13:12:08 -08:00
Justin Ratner
d4dd08da22
Use buildIndentString method instead of hard-coding spaces
2017-12-04 12:51:01 -07:00
Max Brunsfeld
6e2ac3548f
Ensure that all opened editors' buffers are added to the project
...
Assigning a language mode happens when adding a buffer to the project,
so we need to guarantee this happens to all buffers used by visible editors.
2017-12-01 09:58:19 -08:00
Max Brunsfeld
c4b38c615f
Fix misplaced default chunkSize property
2017-11-29 13:10:00 -08:00
Max Brunsfeld
1a1ee134cf
Merge pull request #16297 from atom/mb-remove-grammar-registry-inheritance
...
Remove GrammarRegistry's inheritance from first-mate's GrammarRegistry
2017-11-29 12:26:02 -08:00
Max Brunsfeld
3053069ab1
Merge pull request #16199 from atom/mb-decaffeinate-package
...
Convert Package to JS
2017-11-29 11:45:39 -08:00
Max Brunsfeld
515ed5602e
Add a shim for the GrammarRegistry.grammars property
2017-11-29 11:23:56 -08:00
Max Brunsfeld
1af6da0b76
Don't use underscore in Package
2017-11-29 11:08:54 -08:00
Max Brunsfeld
9006d05d4f
Remove GrammarRegistry's inheritance from first-mate's registry
2017-11-29 10:36:49 -08:00
Katrina Uychaco
a993742f7f
👕 🔥 semicolon
2017-11-28 22:06:33 -08:00
Katrina Uychaco
aeb9af63df
Store readOnly state on the TextEditor model
2017-11-28 21:14:40 -08:00
Katrina Uychaco
909caa2a59
Add 'readonly' attribute to <atom-text-editor> element
2017-11-28 20:01:31 -08:00
Max Brunsfeld
607ed74e7b
Rename TokenizedBuffer to TextMateLanguageMode
2017-11-28 16:57:06 -08:00
Max Brunsfeld
61ac366491
Replace TokenizedBuffer.setVisible with simpler .startTokenizing
...
We will still wait to tokenize a buffer until it is visible in *some*
tab, but we no longer enable and disable tokenization as different
editors become visible.
2017-11-28 12:12:40 -08:00
Max Brunsfeld
e08091f193
Make assignLanguageMode take a language id instead of a language name
2017-11-28 11:14:29 -08:00
Max Brunsfeld
bffdeb461f
Remove handling of old grammarOverridesByPath serialization key
2017-11-27 09:36:43 -08:00
Max Brunsfeld
d1468fddd9
Implement .setGrammar in terms of .setLanguageMode
2017-11-22 16:27:29 -08:00
Max Brunsfeld
59ed55e898
Don't deprecate old TextEditorRegistry methods yet
2017-11-22 16:11:39 -08:00
Max Brunsfeld
af8848fb86
Document new GrammarRegistry methods
2017-11-22 15:53:13 -08:00
Max Brunsfeld
4810d13094
Fix memory leak in .maintainLanguageMode
2017-11-22 11:41:55 -08:00
Max Brunsfeld
cbdae916dd
Don't deprecate setGrammar yet
2017-11-22 11:18:09 -08:00
Max Brunsfeld
fd292f57f6
Fix deprecated TextEditorRegistry methods
2017-11-22 09:37:31 -08:00
Max Brunsfeld
bd4cc42daf
Set the visible state on newly-assigned language modes
2017-11-22 09:35:39 -08:00
Max Brunsfeld
578b4f0281
Merge branch 'master' into mb-use-language-mode-api
2017-11-21 15:00:22 -08:00
Max Brunsfeld
be3010e8f7
Use atom's null grammar when assignLanguageMode is called w/ null
2017-11-21 14:59:42 -08:00
Max Brunsfeld
93f5ab4780
Don't set TextEditor class's schedule in AtomEnvironment constructor
...
We construct multiple AtomEnvironment instances in the tests. I don't
know how the tests ever worked with this code in there.
2017-11-21 13:32:28 -08:00
Wliu
ebf23ec3e1
Do not clobber recent project history when running specs
2017-11-21 21:19:05 +01:00
Max Brunsfeld
19aeabf312
Set the language mode when constructing a TextEditor w/ no buffer
2017-11-21 11:04:51 -08:00
Max Brunsfeld
a18848e569
👕
2017-11-20 17:10:21 -08:00
Max Brunsfeld
aa1f5dde83
Fix TextEditor tests
2017-11-20 16:49:56 -08:00
Max Brunsfeld
d52c4bc33b
Serialize the grammar registry
2017-11-20 14:50:00 -08:00
Max Brunsfeld
8a52fd1237
Get TokenizedBuffer tests passing
2017-11-20 13:33:09 -08:00
Max Brunsfeld
503d239bc3
Make the language mode the source of nonWordCharacters
2017-11-20 09:48:00 -08:00
Max Brunsfeld
f6c2e0eba4
Allow setting the null language mode w/ assignLanguageMode(buffer, null)
2017-11-20 09:48:00 -08:00
Wliu
bace929083
Use native Array.isArray in application-delegate
2017-11-17 23:08:19 +01:00
Max Brunsfeld
3d5cc6993c
Merge branch 'master' into mb-use-language-mode-api
2017-11-17 14:03:37 -08:00
Michelle Tilley
cb1d529d64
Merge remote-tracking branch 'origin/master' into wl-async-context-menu
2017-11-17 10:16:30 -08:00
Michelle Tilley
b3e9989cd2
Translate line and column numbers from URI handlers
...
The URI query string should specify line and column numbers as a user
would, starting at 1, while the Atom API starts at 0.
2017-11-16 14:26:21 -08:00
Tony Brix
076308ab73
fix linting
2017-11-16 00:10:13 -06:00
Max Brunsfeld
00bea43840
📝 Fix comment on GrammarRegistry class
2017-11-15 17:15:50 -08:00
Max Brunsfeld
f3ff490836
Convert Package to JS
2017-11-15 15:51:48 -08:00
Max Brunsfeld
653ecd7f52
Merge branch 'master' into mb-use-language-mode-api
2017-11-15 12:52:36 -08:00
Wliu
3569a11574
Rework didMouseDownOnContent to always position cursor
2017-11-15 12:42:27 +01:00