-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add improved autocomplete when the document contains multiple unclose…
…d braces { in aggressive preprocessing, simply remove all trailing curly brackets { and } (and spread operators too). Round braces ( ) are already autoclosed. Mostly unrelated to this commit: Move coffee_in_js line transforms into separate pseudo_compile_coffee function and apply it also to raw coffee when all compilation has failed. This potentially improves autocomplete in many cases where there are multiple failing points in the source and tsserver is fed with cs code. So far, it has always been unmodified, but with these transforms, local variables, methods and objects are much more likely to be understood
- Loading branch information
Showing
6 changed files
with
102 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
var ; | ||
var ; | ||
const compilation_fail_var = 123 | ||
compilation_fail_var = 123 | ||
compilation_fail_var. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
do => | ||
d = => | ||
multiple_open_braces_prop_1: 1 | ||
multiple_open_braces_prop_2: 2 | ||
e = => | ||
multiple_open_braces_prop_3: 1 | ||
multiple_open_braces_prop_4: 2 | ||
o = d 'blblbdb' | ||
|
||
fewsd = { | ||
...d 'dff' | ||
o... | ||
foo: | ||
bar: (state) => | ||
boo: -> | ||
toot: | ||
l: { | ||
o: { | ||
m: | ||
'a' } | ||
} | ||
state: => { | ||
...o. | ||
uiui: 'uiui' |