Commit Graph

68 Commits

Author SHA1 Message Date
Andrew Dupont
71d4ad1d07 Restore core.useTreeSitterParsers setting…
…along with a temporary `core.useExperimentalModernTreeSitter` setting.

If we truly planned to keep three different language modes around indefinitely,
changing `core.useTreeSitterParsers` to an enum would make sense. But we don't,
so it'd actually just be a gigantic pain in the ass to migrate one setting to
another of a different type.

When we ship modern-tree-sitter experimentally, we'll make it opt-in via the
temporary setting. When we make it the official tree-sitter implementation and
remove the legacy node-tree-sitter version, we'll remove the temporary setting
and just change the semantics around `core.useTreeSitterParsers`.

Reverting the addition of the `core.languageParser` setting is a chore, but it
prevents a _gigantic_ future headache.
2023-04-26 17:46:02 -07:00
Maurício Szabo
beb1701753 Changed config for tree-sitter to be grammar-based 2023-01-14 17:53:41 -03:00
sadick254
c8f3f86db9
Fix text-editor failing spec
Compare against the platforms eol marker.
2021-09-29 14:03:50 +03:00
Ikko Ashimine
08226f27b2
Fix typo in text-editor-spec.js
preceeding -> preceding
2021-04-29 02:32:29 +09:00
Rafael Oleza
7f3f040628 Reformat all JS files using prettier 2019-05-31 18:33:56 +02:00
Nathan Sobo
513a38bcea Unfocus test 🙈 2019-04-09 10:54:01 -06:00
Nathan Sobo
397d427568 Fix lint error 2019-04-08 17:16:50 -06:00
Nathan Sobo
6277cefa07 Clean up assertion style
I prefer to express only one assertion per line rather than &&-ing 
together multiple assertions into a condition. I also prefer to use 
equality assertions so that failure messages include more information 
about the actual and expected values.

I used nested scope blocks so we could re-define the `range` constant in 
a local scope without needing to mutate a variable across unrelated 
tests.
2019-04-08 16:57:35 -06:00
Nathan Sobo
47368136d8 Fix syntax error that caused test not to run and some problems with test 2019-04-08 16:45:34 -06:00
Nathan Sobo
218086d379 Merge branch 'master' into comment-cursor-placement 2019-04-08 16:19:25 -06:00
Rafael Oleza
a93808d1a8 Always use global it, beforeEach and afterEach methods 2019-02-28 20:39:21 +01:00
Rafael Oleza
6c46cf9243 Fix remaining linter issues 2019-02-28 19:30:03 +01:00
Rafael Oleza
d7d6d0838f Remove unused vars from specs 2019-02-28 19:30:03 +01:00
Rafael Oleza
c35ec012b4 Run prettier on spec/ folder 2019-02-28 19:30:03 +01:00
Ash Wilson
31f0174513
Correct expectations elsewhere in the test suite 2019-02-01 15:08:46 -05:00
Benjamin Gray
f74aa0eff9 Add more tests 2018-11-23 20:26:20 +11:00
Benjamin Gray
a835a154bb make change 2018-11-22 11:20:36 +11:00
Benjamin Gray
0eae7eb604 Try again 2018-11-21 19:49:19 +11:00
Benjamin Gray
dc44cda61a See how this goes 2018-11-21 17:26:21 +11:00
Benjamin Gray
3a8f95e670 Start to add specs (in wrong file though) 2018-11-21 17:09:07 +11:00
Max Brunsfeld
78cdabf692 Revert tests updates in #17949 2018-10-19 19:29:43 -07:00
Linus Eriksson
ad41476cbe Add tests for synaxTreeScopeDescriptor 2018-10-18 17:49:37 +02:00
ariasuni
81364b6a1c Make soft-wrap break words before a slash or space and after a dash 2018-09-26 14:05:38 +02:00
Max Brunsfeld
60c19afca2 Move more textmate-specific tests to TextMateLanguageMode spec 2018-09-04 11:37:30 -07:00
Max Brunsfeld
0db70b7865 Fix up text editor specs 2018-09-04 11:37:30 -07:00
Max Brunsfeld
467415af19
Merge branch 'master' into wl-rm-safe-clipboard 2018-08-24 11:57:36 -07:00
Ash Wilson
795c3b27aa
Use type instead of kind 2018-07-24 09:53:14 -04:00
Ash Wilson
dbace171df
Add a kind property to Gutters 2018-07-24 09:37:23 -04:00
Matthew Dapena-Tretter
f60f1692fd Reset goal column on all cursor changes
Previously, pressing the home key (move-to-first-character-of-line)
while on an empty line wouldn't clear the goal column. This is because
it was only cleared on cursor *change* and that didn't result in a
change. With this commit, it's *always* cleared. Operations that want
to preserve the goal column can reset it afterwards.
2018-07-05 20:13:59 -07:00
Ash Wilson
8fee5f8fb2
Merge remote-tracking branch 'origin/master' into aw/no-really-read-only 2018-03-21 11:55:52 -04:00
Ash Wilson
56a3f1bc41
Fill in missing ensureWritable() calls caught by the specs 2018-03-21 09:29:36 -04:00
t9md
38f080ef07 🔥 unnecessary async 2018-03-21 14:28:38 +09:00
t9md
f303d5906e undo/redo restore selection of change-initiated-editor 2018-03-21 14:26:05 +09:00
Ash Wilson
0f30f8d569
Specs for calling buffer modification methods on read-only editors 2018-03-20 16:31:06 -04:00
Max Brunsfeld
2100f90cf4 Provide a default scope descriptor if language mode doesn't provide them 2018-02-21 14:55:58 -08:00
Wliu
cd84216f11
Merge branch 'master' into wl-rm-safe-clipboard 2018-01-09 21:39:04 -05:00
Antonio Scandurra
450d6b12fa Don't add fully-contained selections above/below
This is slower than it needs to be and creates behavioral problems when
selections get merged in some cases.

Signed-off-by: Nathan Sobo <nathan@github.com>
2018-01-09 16:47:26 +01:00
Max Brunsfeld
3f710a1398 Merge pull request #12783 from vedharish/editor_delete_line 2018-01-08 15:58:22 -08:00
Wliu
a1668fc953
Remove old clipboard workaround on Linux 2018-01-04 20:59:32 -05:00
Max Brunsfeld
733d6381cc Fix handling of {undo: 'skip'} in TextEditor.insertText
Signed-off-by: Nathan Sobo <nathan@github.com>
2018-01-03 13:00:53 -08:00
Ford Hurley
065f4c48ec Avoid dependency on shared state
The test was passing only when run in isolation.
2017-12-27 16:37:55 -05:00
Ford Hurley
3ad3852dd6 Add a test for generated TextEditor ids 2017-12-27 15:16:22 -05: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
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
Max Brunsfeld
607ed74e7b Rename TokenizedBuffer to TextMateLanguageMode 2017-11-28 16:57:06 -08:00
Max Brunsfeld
74a2609216 Ensure stateStore isConnected for .shouldPromptToSave tests 2017-11-28 12:13:09 -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
bd4cc42daf Set the visible state on newly-assigned language modes 2017-11-22 09:35:39 -08:00
Max Brunsfeld
aa1f5dde83 Fix TextEditor tests 2017-11-20 16:49:56 -08:00