Skip to content

Commit

Permalink
Add install gradle task
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Sherman <[email protected]>
  • Loading branch information
bentsherman committed Nov 4, 2024
1 parent ebae292 commit 1b41d21
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ Build the extension:
./gradlew build
```

You can press `F5` to launch a new VS Code window with the extension loaded. Alternatively, you can execute "Extension: Install from VSIX..." from the command pallete to install the extension into your environment (reload required).
From VS Code, you can press `F5` to launch a new VS Code window with the extension loaded.

Alternatively, you can install the extension into your environment (reload required):

```bash
./gradlew install
```

## Publishing

Expand Down
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,13 @@ task vsce(type: Exec, dependsOn: [copyJar, copyLocal, webpack]) {
vsce += ".cmd"
}
workingDir "$buildDir"
commandLine "$vsce", "package"
commandLine "$vsce", "package", "-o", "$buildDir/nextflow.vsix"
}

task build {
dependsOn vsce
}

task install(type: Exec, dependsOn: [build]) {
commandLine "code", "--install-extension", "$buildDir/nextflow.vsix"
}

0 comments on commit 1b41d21

Please sign in to comment.