You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# Show Implicit Parentheses (JavaScript)
2
2
3
+
Clarify operator precedence by showing implicit parentheses as inline decorations.
4
+
3
5
When reading complex expressions, it can be hard to understand how the subexpressions will be grouped. This extensions shows you how the sub expression are grouped by visually including the implicit parentheses as decorations.
4
6
5
7
## Command Pallet Commands
@@ -12,17 +14,22 @@ When reading complex expressions, it can be hard to understand how the subexpres
12
14
13
15
This extension contributes the following settings:
14
16
15
-
-`implicitparens.enabled`: enable/disable this extension
17
+
-`Implicit Parentheses.Enable`: Show implicit parentheses
18
+
-`Implicit Parentheses.Show in Menu Bar`: Show a button in the menu bar to show/hide implicit parentheses
19
+
-`Implicit Parentheses.Parser Config`: Paser configuration to use
20
+
-`Implicit Parentheses.Debounce Timeout`: Number of milliseconds that the plugin will wait after a file changes before it parses the file.
16
21
17
22
## TODO
18
23
19
24
-[ ] Figure out how to configure colors
20
-
-[ ] Set default color for light mode
21
25
-[ ] Ensure plugin has name
26
+
-[ ] Do we need to ignore non-js files?
27
+
-[ ] Log to output when parse fails
22
28
23
29
## Possible Future Features
24
30
25
-
- Enable/disable menu bar item in config
26
31
- Allow user to configure which parens are shown
27
32
- Provide automated fixes for adding parens, or even extracting expressions to variables.
28
33
- Use the menu bar item to indicate if parsing has failed.
34
+
- Suggest changing parser when we get a parse error that indicates we're using the wrong parser
35
+
- Use Flow/Typescript parser when possible to get increpental parsing.
0 commit comments