Skip to content

Commit 16f6e42

Browse files
Merge pull request #5 from kdmnk/main
Add WLS inline-var
2 parents eb91363 + 92270a2 commit 16f6e42

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

wrangler/wls/wrangler_language_server.markdown

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ wrangler:
2929
- "new-var"
3030
- "rename-fun"
3131
- "rename-var"
32+
- "inline-var"
3233
```
3334
- Only `enabled` and `enabled_refactorings` are required properties.
3435
- `path` can be omitted if Wrangler is added to the PATH environment variable.
@@ -66,6 +67,9 @@ This can be initiated by a code lens at the beginning of the file:\
6667
### Fold expression - `fold-expression`
6768
With Wrangler form, replace instances of the function body by the corresponding function definition.
6869

70+
### Inline variable - `inline-var`
71+
With Wrangler form, replace instances of a variable with its corresponding value.
72+
6973
### Generalise function - `generalise-fun`
7074
Refactor the highlighted expression as the function's new argument.
7175

0 commit comments

Comments
 (0)