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
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,24 @@ The plugin activates on `.res` and `.resi` files. If you've already got Reason-L
50
50
-`try`, `for`, etc.
51
51
- Folding, and [custom folding](https://code.visualstudio.com/docs/editor/codebasics#_folding) through `//#region` and `//#endregion`.
52
52
53
+
### Experimental Features
54
+
55
+
#### Dead Code Analysis mode
56
+
57
+
Runs dead code analysis via [reanalyze](https://github.com/rescript-association/reanalyze).
58
+
59
+
##### Usage
60
+
61
+
Open the command palette and run `> ReScript: Start dead code analysis.`. This will start dead code analysis in the ReScript project of the file you run the command from.
62
+
63
+
Dead code is highlighted in the editor, and code actions for suppressing dead code warnings are available in most cases.
64
+
65
+
When done, stop the dead code analysis mode by clicking the `Stop Dead Code Analysis mode` button in the editor status bar. This will clear all reported dead code warnings.
66
+
67
+
##### Caveats
68
+
69
+
Currently does not work for full monorepo dead code analysis (although it should work for each monorepo package individually).
70
+
53
71
## Use with Other Editors
54
72
55
73
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