diff --git a/coc-mappings.vim b/coc-mappings.vim index 238b5b8..fd513d0 100644 --- a/coc-mappings.vim +++ b/coc-mappings.vim @@ -142,5 +142,5 @@ nnoremap t :CocCommand metals.tvp nnoremap tb :CocCommand metals.tvp metalsBuild " Toggle Tree View 'metalsCompile' nnoremap tc :CocCommand metals.tvp metalsCompile -" Reveal current current class (trait or object) in Tree View 'metalsBuild' -nnoremap tf :CocCommand metals.revealInTreeView metalsBuild +" Reveal current current class (trait or object) in Tree View 'metalsProject' +nnoremap tf :CocCommand metals.revealInTreeView metalsProject diff --git a/package.json b/package.json index 2d3bbee..d2ede12 100644 --- a/package.json +++ b/package.json @@ -156,16 +156,16 @@ "type": "object", "default": [ { - "name": "metalsCompile", + "name": "metalsBuild", "size": 10, "expanded": [ [ - "metals://ongoing-compilations" + "projects:" ] ] }, { - "name": "metalsBuild", + "name": "metalsProject", "size": 40, "expanded": [ [ diff --git a/readme.md b/readme.md index a8b4e1d..1abfcb4 100644 --- a/readme.md +++ b/readme.md @@ -238,15 +238,15 @@ coc-metals has a built-in implementation of the [Tree View Protocol](https://sca If you have the [recommended mappings](coc-mappings.vim) copied, you'll notice that in the bottom you'll have some TVP related settings. You can start by opening the TVP panel by using the default ` t`. Once open, you'll see -there are two parts to the panel. The first being the `MetalsCompile` where you -can see the status of ongoing compilations for your modules and also options to -compile. +there are two parts to the panel. The first being the `MetalsBuild` where you +can find multiple build-related commands. -![MetalsCompile](https://i.imgur.com/QBPHNQo.gif) +![metalsBuild](https://i.imgur.com/cwm2asx.png) You are able to trigger the compiles while being on top of the option you are attempting to trigger and pressing `r`. You can change this default in the -settings. You can find all the relevant TVP settings below in the [Available Configuration Options](#available-configuration-options). +settings. You can find all the relevant TVP settings below in the [Available +Configuration Options](#available-configuration-options). The second part of the TVP panel is a view of your project and external dependencies. You can navigate through them by jumping to the next or previous nodes, the last @@ -330,7 +330,7 @@ install [coc-json](https://github.com/neoclide/coc-json). `metals.superMethodLensesEnabled` | Enable/disable goto super method code lens (default is true) `metals.treeviews.toggleNode` | Expand / Collapse tree node (default ``) `metals.treeviews.initialWidth` | Initial Tree Views panels (default `40`) -`metals.treeviews.initialViews` | Initial views that the Tree View Panel Dispalys. Done mess with this unless you know what you're doing. +`metals.treeviews.initialViews` | Initial views that the Tree View Panel Displays. Don't mess with this unless you know what you're doing. `metals.treeviews.gotoLastChild` | Go to the last child Node (defalt `J`) `metals.treeviews.gotoParentNode` | Go to parent Node (default `p`) `metals.treeviews.gotoFirstChild` | Go to first child Node (default `K`) diff --git a/src/index.ts b/src/index.ts index 3222b58..81d4bef 100644 --- a/src/index.ts +++ b/src/index.ts @@ -244,6 +244,7 @@ function launchMetals( "doctor-run", "compile-cascade", "compile-cancel", + "compile-clean", ]; commands.forEach((command) => { diff --git a/src/tvp/treeview.ts b/src/tvp/treeview.ts index 00afcbb..ef07b53 100644 --- a/src/tvp/treeview.ts +++ b/src/tvp/treeview.ts @@ -259,6 +259,12 @@ export class TreeView implements Disposable { highlightSchema = "TvpVal"; break; case "command": + case "sync": + case "connect": + case "cascade": + case "cancel": + case "clean": + case "debug-stop": highlightSchema = "TvpCommand"; break; default: