Skip to content

Commit c34cd30

Browse files
committed
0.4.0
1 parent a7f8f95 commit c34cd30

File tree

5 files changed

+49
-4
lines changed

5 files changed

+49
-4
lines changed

CHANGELOG.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,50 @@
11
# Changelog
22

3+
## 0.4.0 - 2025/05/02
4+
5+
0.4.0 is the first Rust version of the tool that is coming to Beta. It means that if you didn't update to alpha version manually, this changelog is new for you since the 0.2.4 version (last published Python version of the tool, not maintained anymore)
6+
Some configuration migrations could fail while upgrading from the Python version. We apologize in advance if you have to set up them again !
7+
8+
### VsCode
9+
10+
- Add a commmand to restart the server manually
11+
- Updated welcome page to reflect new changes
12+
- Remove deprecated views
13+
- Remove "afterDelay" option, in favor of "adaptive" option. Threads are way more reactives than before and "adaptive" should
14+
be enough in all cases.
15+
- handle installation of python extension while Odoo is running
16+
17+
### VsCode Fix
18+
19+
- Fix the extension hanging while the server starts
20+
21+
### Server
22+
23+
- improve odoo detection to handle nightly builds of Odoo.
24+
- Return Class location on definition request of model name (strings)
25+
- Server will auto reset if too many changes occur in the workspace (git checkout detection purpose)
26+
- improve the rebuild queue, by putting functions in it with a module dependency, instead of the whole file. It lowers the needed
27+
computation on each change.
28+
- onSave settings will not trigger a rebuild anymore if ast in the file is invalid
29+
- Improve range of link given by GoToDefinition on packages
30+
- precompute model dependencies to improve performances
31+
- Add various odoo api method signatures (with_context...)
32+
- Add search domains diagnostics
33+
- Add search domains autocompletion
34+
- Add search domains GotoDefinition
35+
- Various hover display improvements: syntax, values and infered types on functions
36+
- Implement _inherits logic
37+
- Improve internal context usage to correctly reflect what contains the current parsing
38+
- Remove usage of the custom route Odoo/getPythonPath, and now using lsp default configuration
39+
- Improve message managements to make threads more reactive, and so the extension
40+
- use start of expr range to avoid some out of scope issues in autocompletion
41+
- Server do not restart anymore but reset on python path update
42+
43+
### Server fixs
44+
45+
- fix crash on importation of compiled files
46+
- Remove autocompletion items that are not in module dependencies
47+
348
## 0.2.8 - 2024/18/12
449

550
### VsCode

server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "odoo_ls_server"
3-
version = "0.2.8"
3+
version = "0.4.0"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

server/src/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
use core::fmt;
33

44
pub const EXTENSION_NAME: &str = "Odoo";
5-
pub const EXTENSION_VERSION: &str = "0.2.8";
5+
pub const EXTENSION_VERSION: &str = "0.4.0";
66

77
pub const DEBUG_ODOO_BUILDER: bool = false;
88
pub const DEBUG_MEMORY: bool = false;

vscode/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def build_package_prerelease(session: nox.Session) -> None:
9898
session.run("cp", "../server/target/release/odoo_ls_server", "linux_odoo_ls_server", external=True)
9999
if (os.name =='nt' or 'microsoft' in platform.uname()[2].lower()) or Path("../server/target/release/odoo_ls_server.exe").is_file():
100100
session.run("cp", "../server/target/release/odoo_ls_server.exe", "win_odoo_ls_server.exe", external=True)
101-
if (os.name =='posix' and 'Darwin' in platform.uname()[0].lower()) or Path("../server/target/release/macos_odoo_ls_server").is_file():
101+
if (os.name =='posix' and 'Darwin' in platform.uname()[0].lower()) or Path("../server/target/release/mac_odoo_ls_server").is_file():
102102
session.run("cp", "../server/target/release/mac_odoo_ls_server", "macos_odoo_ls_server", external=True)
103103
session.run("cp", "../CHANGELOG.md", "CHANGELOG.md", external=True)
104104
session.run("vsce", "package", "--pre-release", external=True)

vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "odoo",
33
"displayName": "Odoo",
44
"description": "Language Server for Odoo projects",
5-
"version": "0.2.8",
5+
"version": "0.4.0",
66
"publisher": "Odoo",
77
"repository": {
88
"type": "git",

0 commit comments

Comments
 (0)