Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ Yep! That's all :)
- `JavaTestDebugCurrentMethod` - Debug the test method on the cursor
- `JavaTestViewLastReport` - Open the last test report in a popup window

### Profiles

- `JavaProfile` - Opens the profiles UI

</details>

## :computer: APIs
Expand Down Expand Up @@ -189,6 +193,12 @@ require('java').test.debug_current_method()
require('java').test.view_last_report()
```

### Profiles

```lua
require('java').profile.ui()
```

</details>

## :clamp: How to Use JDK X.X Version?
Expand Down
6 changes: 3 additions & 3 deletions plugin/java.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ local cmd_map = {

JavaTestViewLastReport = { java.test.view_last_report },

JavaRunnerRunMain = { java.runner.built_in.run_app , { nargs = '?' } },
JavaRunnerRunMain = { java.runner.built_in.run_app, { nargs = '?' } },
JavaRunnerStopMain = { java.runner.built_in.stop_app },
JavaRunnerToggleLogs = {java.runner.built_in.toggle_logs},
JavaRunnerToggleLogs = { java.runner.built_in.toggle_logs },

JavaPofile = { java.profile.ui }
JavaProfile = { java.profile.ui },
}

for cmd, details in pairs(cmd_map) do
Expand Down