Skip to content

Commit 861d7ea

Browse files
committed
0.2.7
1 parent abc8402 commit 861d7ea

File tree

5 files changed

+30
-5
lines changed

5 files changed

+30
-5
lines changed

CHANGELOG.md

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

3+
## 0.2.7 - 2024/31/10
4+
5+
### Server
6+
7+
- Now include macos binary (arm processors)
8+
- Any requests (Hover, autocompletion, ...) is now able to cut any running rebuild, resulting in a way more reactive experience.
9+
- Basic autocompletion implementation. The server should be able to parse ast and understand what you want to autocomplete. However, the results could be incomplete or incorrect at this point, we will improve that in the next versions
10+
- Use hashs to detect if opened files are differents than the disk version to avoid useless computations.
11+
- Prevent file update if the change is leading to syntaxically wrong ast. The index will be rebuilt only if user fix the syntax errors. It avoid useless computations
12+
- Update file cache immediatly, even if reload are delayed by settings. It allows autocompletion to be aware of changes.
13+
- Delay the symbol cleaning to the file reload and not on update, to not drop symbols that could be used by autocompletion or other requests
14+
- Now handle setups where odoo community path or addons path are paths that are in sys.path.
15+
- Fix evaluation of classes having a base class with the same name.
16+
- Fix parsing of empty modules with only a manifest file
17+
- Basic With statement evaluation
18+
- Improve Hover informations for imports expressions (especially for files, packages, namespaces)
19+
- use root_uri as fallback if no workspace_folder is provided (root_uri is deprecated though)
20+
- Implement a profiling setup with iai-callgrind
21+
- various cleaning
22+
23+
#### New diagnostics / odoo helpers
24+
25+
- Add deprecation warning on any use/import of odoo.tests.common.Form after Odoo 17.0
26+
- Autocompletion of Model names in self.env[""] expressions. Autocompleted model names will indicates if a new dependency is required. This comes with a new settings allowing you to choose between 'only available models' or 'all models with an hint'
27+
328
## 0.2.6 - 2024/01/10
429

530
### Server

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.6"
3+
version = "0.2.7"
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.6";
5+
pub const EXTENSION_VERSION: &str = "0.2.7";
66

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

server/src/server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use serde_json::json;
1313
use nix;
1414
use tracing::{error, info, warn};
1515

16-
use crate::{core::{file_mgr::FileMgr, odoo::SyncOdoo}, threads::{delayed_changes_process_thread, message_processor_thread_main, message_processor_thread_read, DelayedProcessingMessage}, S};
16+
use crate::{constants::EXTENSION_VERSION, core::{file_mgr::FileMgr, odoo::SyncOdoo}, threads::{delayed_changes_process_thread, message_processor_thread_main, message_processor_thread_read, DelayedProcessingMessage}, S};
1717

1818
const THREAD_MAIN_COUNT: u16 = 1;
1919
const THREAD_READ_COUNT: u16 = 1;
@@ -181,7 +181,7 @@ impl Server {
181181
let initialize_data = InitializeResult {
182182
server_info: Some(ServerInfo {
183183
name: "Odoo Language Server".to_string(),
184-
version: Some("0.2.0".to_string())
184+
version: Some(EXTENSION_VERSION.to_string())
185185
}),
186186
capabilities: ServerCapabilities {
187187
text_document_sync: Some(TextDocumentSyncCapability::Options(TextDocumentSyncOptions {

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.6",
5+
"version": "0.2.7",
66
"publisher": "Odoo",
77
"repository": {
88
"type": "git",

0 commit comments

Comments
 (0)