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
Switches between the implementation and interface file. If you're in a `.res` file, the command will open the corresponding `.resi` file (if it exists), and if you're in a `.resi` file the command will open the corresponding `.res` file.
65
+
66
+
> This can also be triggered with the keybinding `Alt+O`.
67
+
52
68
### Experimental Features
53
69
54
70
#### Dead Code Analysis mode
@@ -69,6 +85,24 @@ When done, stop the dead code analysis mode by clicking the `Stop Dead Code Anal
69
85
70
86
Currently does not work for full monorepo dead code analysis (although it should work for each monorepo package individually).
71
87
88
+
## Configuration
89
+
90
+
### Hide generated files
91
+
92
+
You can configure VSCode to collapse the JavaScript files ReScript generates under its source ReScript file. This will "hide" the generated files in the VSCode file explorer, but still leaving them accessible by expanding the source ReScript file they belong to.
93
+
94
+
Open your VSCode settings and type `editor.filenesting`. Enable the feature and scroll down to patterns.
95
+
96
+
The example has two patterns added:
97
+
98
+

99
+
100
+
This nests implementations under interfaces if they're present and nests all generated files under the main ReScript file. Adapt and tweak to your liking.
101
+
102
+
A screenshot of the result:
103
+
104
+

105
+
72
106
## Use with Other Editors
73
107
74
108
This repo also contains a language server that can power other editors. **However, the language server in this project is a pure implementation detail. We don't guarantee its stability for other editors' consumption** apart from Vim and Sublime Text.
0 commit comments