From 861d7ea0a59ce31d2f0d3cbecd1de1288c0e2ec5 Mon Sep 17 00:00:00 2001 From: Florian Daloze Date: Fri, 1 Nov 2024 02:06:58 +0100 Subject: [PATCH] 0.2.7 --- CHANGELOG.md | 25 +++++++++++++++++++++++++ server/Cargo.toml | 2 +- server/src/constants.rs | 2 +- server/src/server.rs | 4 ++-- vscode/package.json | 2 +- 5 files changed, 30 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5bf31d8..2bd582b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,30 @@ # Changelog +## 0.2.7 - 2024/31/10 + +### Server + +- Now include macos binary (arm processors) +- Any requests (Hover, autocompletion, ...) is now able to cut any running rebuild, resulting in a way more reactive experience. +- 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 +- Use hashs to detect if opened files are differents than the disk version to avoid useless computations. +- 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 +- Update file cache immediatly, even if reload are delayed by settings. It allows autocompletion to be aware of changes. +- 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 +- Now handle setups where odoo community path or addons path are paths that are in sys.path. +- Fix evaluation of classes having a base class with the same name. +- Fix parsing of empty modules with only a manifest file +- Basic With statement evaluation +- Improve Hover informations for imports expressions (especially for files, packages, namespaces) +- use root_uri as fallback if no workspace_folder is provided (root_uri is deprecated though) +- Implement a profiling setup with iai-callgrind +- various cleaning + +#### New diagnostics / odoo helpers + +- Add deprecation warning on any use/import of odoo.tests.common.Form after Odoo 17.0 +- 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' + ## 0.2.6 - 2024/01/10 ### Server diff --git a/server/Cargo.toml b/server/Cargo.toml index 46572d7..2bdcb07 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "odoo_ls_server" -version = "0.2.6" +version = "0.2.7" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/server/src/constants.rs b/server/src/constants.rs index d9116c8..955322e 100644 --- a/server/src/constants.rs +++ b/server/src/constants.rs @@ -2,7 +2,7 @@ use core::fmt; pub const EXTENSION_NAME: &str = "Odoo"; -pub const EXTENSION_VERSION: &str = "0.2.6"; +pub const EXTENSION_VERSION: &str = "0.2.7"; pub const DEBUG_ODOO_BUILDER: bool = false; pub const DEBUG_MEMORY: bool = false; diff --git a/server/src/server.rs b/server/src/server.rs index 89567c4..2b93bf9 100644 --- a/server/src/server.rs +++ b/server/src/server.rs @@ -13,7 +13,7 @@ use serde_json::json; use nix; use tracing::{error, info, warn}; -use crate::{core::{file_mgr::FileMgr, odoo::SyncOdoo}, threads::{delayed_changes_process_thread, message_processor_thread_main, message_processor_thread_read, DelayedProcessingMessage}, S}; +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}; const THREAD_MAIN_COUNT: u16 = 1; const THREAD_READ_COUNT: u16 = 1; @@ -181,7 +181,7 @@ impl Server { let initialize_data = InitializeResult { server_info: Some(ServerInfo { name: "Odoo Language Server".to_string(), - version: Some("0.2.0".to_string()) + version: Some(EXTENSION_VERSION.to_string()) }), capabilities: ServerCapabilities { text_document_sync: Some(TextDocumentSyncCapability::Options(TextDocumentSyncOptions { diff --git a/vscode/package.json b/vscode/package.json index 0150929..4fa833b 100644 --- a/vscode/package.json +++ b/vscode/package.json @@ -2,7 +2,7 @@ "name": "odoo", "displayName": "Odoo", "description": "Language Server for Odoo projects", - "version": "0.2.6", + "version": "0.2.7", "publisher": "Odoo", "repository": { "type": "git",