Skip to content

Commit 30966b7

Browse files
authored
fix: typo in java profile ui command (#156)
1 parent 3442006 commit 30966b7

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ Yep! That's all :)
118118
- `JavaTestDebugCurrentMethod` - Debug the test method on the cursor
119119
- `JavaTestViewLastReport` - Open the last test report in a popup window
120120

121+
### Profiles
122+
123+
- `JavaProfile` - Opens the profiles UI
124+
121125
</details>
122126

123127
## :computer: APIs
@@ -189,6 +193,12 @@ require('java').test.debug_current_method()
189193
require('java').test.view_last_report()
190194
```
191195

196+
### Profiles
197+
198+
```lua
199+
require('java').profile.ui()
200+
```
201+
192202
</details>
193203

194204
## :clamp: How to Use JDK X.X Version?

plugin/java.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ local cmd_map = {
1515

1616
JavaTestViewLastReport = { java.test.view_last_report },
1717

18-
JavaRunnerRunMain = { java.runner.built_in.run_app , { nargs = '?' } },
18+
JavaRunnerRunMain = { java.runner.built_in.run_app, { nargs = '?' } },
1919
JavaRunnerStopMain = { java.runner.built_in.stop_app },
20-
JavaRunnerToggleLogs = {java.runner.built_in.toggle_logs},
20+
JavaRunnerToggleLogs = { java.runner.built_in.toggle_logs },
2121

22-
JavaPofile = { java.profile.ui }
22+
JavaProfile = { java.profile.ui },
2323
}
2424

2525
for cmd, details in pairs(cmd_map) do

0 commit comments

Comments
 (0)