Commit graph

17 commits

Author SHA1 Message Date
Aiday Marlen Kyzy d309e11579
Remove brackets from comments, strings and regexes before evaluating the indentation (#210641)
* wip

* polishing the code

* adding code

* adding the language

* reshuffling the code to avoid cyclic dependency

* polihsing code

* uncommenting tests

* also adopting the indentation rules within the reindentation operation

* using instead the sliced line tokens instead of the scoped line tokens

* polishing the code

* using start indices instead

* using value everywhere

* using the token data to type the tokens

* setting to number instead of standard token type

* using token data from autoindenttest.ts

* using same code in both test files

* placing instantiation service into the registerLanguage method

* copying object into the node js autoindent.ts
2024-05-27 11:18:00 +02:00
Aiday Marlen Kyzy f62931d09b
Making same changes to JavaScript language configuration file as for TypeScript (#209038)
making the language configuration file the same as for typescript
2024-03-28 18:25:55 +01:00
Russell Davis bac1926029 Fix decreaseIndentPattern for javascript and typescript
Fixes #201424

It wasn't matching closing parens, which resulted in these issues:
* Pressing enter with just a closing paren to the right of the caret
wouldn't result in a dedent on the next line
* With the caret at the start of the line below a line containing only a
closing paren, pressing tab would result in an extra level of
indentation
2023-12-22 20:15:13 -08:00
Stephen Sigwart 3894c48a02 JS/TS fixes 2022-11-21 21:41:18 -05:00
Matt Bierner 46caa3b490
Exclude @ from word pattern in js/ts (#165764)
Fixes #162862

#148874 Still seems to be working too after this change
2022-11-07 15:53:11 -08:00
Matt Bierner e6f42433cf
Include @ in JS/TS word pattern (#148962)
Fixes #148874

`@` is used both for decorators and in imports
2022-05-06 21:10:45 +00:00
Matt Bierner 2b92835853
Move js/ts language configs to json file
Fixes #125748
2022-02-03 11:38:09 -08:00
Matt Bierner ffd414feeb
Include < as surroundingPairs in JS
Fixes #136127

These are already listed in TS
2021-10-29 13:03:15 -07:00
Henning Dieterichs d6b2e78477
Fixes #132847 by configuring ${...} as bracket pair. 2021-09-21 12:28:25 +02:00
Jackson Kearl 4dff8da77b remove comments for more proper json 2018-08-08 10:43:16 -07:00
Jackson Kearl 763e939bdd Document jsx specialization 2018-07-24 00:38:38 -07:00
Jackson Kearl 629c05f1f8 Add special case for js(x) template strings 2018-07-24 00:07:42 -07:00
Martin Aeschlimann cf70385df5 Folding regions broken 2017-10-12 16:55:15 +02:00
Martin Aeschlimann 1fb361861f [folding] add work boundries to folding markers 2017-10-11 17:28:10 +02:00
Martin Aeschlimann 777fddd4f7 [folding] add folding marker to API and schema 2017-09-25 22:25:45 +02:00
Martin Aeschlimann 9e05d4b635 [folding] fold regions, initial, preconfigured support. For #12146 2017-09-22 13:50:03 +02:00
Martin Aeschlimann d826ad6e4f [jsx][tsx] Wrong type of comments for React code. Fixes #6461 2017-01-07 10:57:37 -04:00
Renamed from extensions/javascript/language-configuration.json (Browse further)