Skip to content

Commit 5fbe6c6

Browse files
committed
chore: prepare for first point release
1 parent 428f17d commit 5fbe6c6

File tree

5 files changed

+20
-15
lines changed

5 files changed

+20
-15
lines changed

.github/workflows/nightly.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ jobs:
121121
cache: pnpm
122122
cache-dependency-path: pnpm-lock.yaml
123123
- run: pnpm install
124+
- name: Inject custom release name
125+
if: "${{ inputs.release_name != '' }}"
126+
run: |
127+
cat package.json | jq '. +{"_release":"${{ inputs.release_name }}"}' > package.json
124128
- run: pnpm package
125129
- name: Upload artifacts
126130
uses: actions/upload-artifact@v3

LICENSE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE.
2222

23-
=============================================================================
2423

2524
MIT License
2625

README.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
### Completion and definitions for XML IDs
88

9-
Works for `record`s, `template`s and `env.ref()`!
9+
Works for `record`s, `template`s and `env.ref()`.
1010

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

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

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

3131
## Setup
3232

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

3535
### VSCode
3636

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

4640
### Helix
4741

@@ -66,6 +60,7 @@ name = "python"
6660
language-servers = [
6761
"odoo-lsp",
6862
# add the default language servers here
63+
"pylsp",
6964
# and any you need
7065
]
7166
```

client/src/extension.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ async function downloadLspBinary(context: ExtensionContext) {
5757
// We follow nightly releases, so only download if today's build is not already downloaded.
5858
// The format is nightly-YYYYMMDD
5959
const today = new Date().toISOString().slice(0, 10).replace(/-/g, "");
60-
const release = `nightly-${today}`;
60+
const release = context.extension.packageJSON["_release"] || `nightly-${today}`;
61+
if (typeof release !== "string" || !release) {
62+
window.showErrorMessage(`Bug: invalid release "${release}"`);
63+
return;
64+
}
6165
const latest = `${runtimeDir}/${release}${archiveExtension}`;
6266
const exeExtension = isWindows ? ".exe" : "";
6367
const odooLspBin = `${runtimeDir}/odoo-lsp${exeExtension}`;

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@
33
"description": "Odoo LSP",
44
"license": "MIT",
55
"version": "0.1.0",
6-
"categories": [],
6+
"categories": [
7+
"Programming Languages"
8+
],
79
"keywords": [
810
"language-server",
911
"tower-lsp"
1012
],
1113
"repository": {
12-
"url": "https://github.com/Desdaemon/odoo-lsp"
14+
"type": "git",
15+
"url": "https://github.com/Desdaemon/odoo-lsp.git"
1316
},
1417
"engines": {
1518
"vscode": "^1.66.0"

0 commit comments

Comments
 (0)