Skip to content

Commit

Permalink
chore: prepare for first point release
Browse files Browse the repository at this point in the history
  • Loading branch information
Desdaemon committed Aug 25, 2023
1 parent 428f17d commit 5fbe6c6
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 15 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ jobs:
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- run: pnpm install
- name: Inject custom release name
if: "${{ inputs.release_name != '' }}"
run: |
cat package.json | jq '. +{"_release":"${{ inputs.release_name }}"}' > package.json
- run: pnpm package
- name: Upload artifacts
uses: actions/upload-artifact@v3
Expand Down
1 change: 0 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

=============================================================================

MIT License

Expand Down
17 changes: 6 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

### Completion and definitions for XML IDs

Works for `record`s, `template`s and `env.ref()`!
Works for `record`s, `template`s and `env.ref()`.

[![template inherit_id demo](https://raw.githubusercontent.com/Desdaemon/odoo-lsp/main/static/inherit_id.gif)](https://asciinema.org/a/603783)

Expand All @@ -26,22 +26,16 @@ For more features check out the [wiki].
cargo install --git https://github.com/Desdaemon/odoo-lsp
```

Nightly binaries are also available for x64 platforms, please check [Releases] for the latest downloads.
Nightly binaries are also available for some platforms, please check [Releases] for the latest downloads.

## Setup

For usage instructions please check the [wiki] (in construction).
For usage instructions please check the [wiki] (work in progress).

### VSCode

> **Note**
> odoo-lsp is under heavy development and requires some additional setup.
> If you'd like to help, please file an issue or create a PR to help expedite the installation process!
1. Ensure that you have `odoo-lsp` on your path (or define the SERVER_PATH environment variable pointing to one)
2. Download the VSCode extension package from [Releases] (a file ending in .vsix)
3. Open the **Command Palette** <kbd>Ctrl+Shift+P</kbd>, select **Extensions: Install from VSIX** and pick the file
you downloaded in step 2
odoo-lsp is available from the Visual Studio Marketplace and the Open VSX Registry.
Alternatively, you can grab the latest nightly builds from [Releases].

### Helix

Expand All @@ -66,6 +60,7 @@ name = "python"
language-servers = [
"odoo-lsp",
# add the default language servers here
"pylsp",
# and any you need
]
```
Expand Down
6 changes: 5 additions & 1 deletion client/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ async function downloadLspBinary(context: ExtensionContext) {
// We follow nightly releases, so only download if today's build is not already downloaded.
// The format is nightly-YYYYMMDD
const today = new Date().toISOString().slice(0, 10).replace(/-/g, "");
const release = `nightly-${today}`;
const release = context.extension.packageJSON["_release"] || `nightly-${today}`;
if (typeof release !== "string" || !release) {
window.showErrorMessage(`Bug: invalid release "${release}"`);
return;
}
const latest = `${runtimeDir}/${release}${archiveExtension}`;
const exeExtension = isWindows ? ".exe" : "";
const odooLspBin = `${runtimeDir}/odoo-lsp${exeExtension}`;
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
"description": "Odoo LSP",
"license": "MIT",
"version": "0.1.0",
"categories": [],
"categories": [
"Programming Languages"
],
"keywords": [
"language-server",
"tower-lsp"
],
"repository": {
"url": "https://github.com/Desdaemon/odoo-lsp"
"type": "git",
"url": "https://github.com/Desdaemon/odoo-lsp.git"
},
"engines": {
"vscode": "^1.66.0"
Expand Down

0 comments on commit 5fbe6c6

Please sign in to comment.