Skip to content

Commit

Permalink
0.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
fda-odoo committed Nov 4, 2024
1 parent abc8402 commit 861d7ea
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion server/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions server/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 861d7ea

Please sign in to comment.