From 14f417383bb3763bf3800345a794d15941d6b690 Mon Sep 17 00:00:00 2001 From: Florian Daloze Date: Tue, 19 Dec 2023 17:30:16 +0100 Subject: [PATCH] 0.2.3 --- CHANGELOG.md | 24 ++++++++++++++++++++++++ server/constants.py | 2 +- vscode/package.json | 2 +- 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 200f9ca9..a3e888da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +## 0.2.3 - 2023/12/19 + +Last update of 2023 ! We wish you all an happy new year ! + +### VsCode + +The rework of the client to work with the Python Extension is delayed to 0.2.4 + +- New option to choose which missing import should be diagnosed. 3 options are available: none, only odoo imports, all + +### Server + +- Support a new configuration option to choose which missing import should be diagnosed. The option is called "diagMissingImportLevel" and can take 3 values: "all", "only_odoo" or "none". +- The server can now identify a 'type alias' as it should be. It should now be correctly displayed where it is relevant. Best example of type alias is "AbstractModel", that is a type alias of "BaseModel". +- Server is now able to override `__get__` functions behaviour in its core, and the odoo implementation define all return values for all fields. It means that from now: +`self.name` will be displayed as an str, but `MyModel.name` will be displayed as a fields.Char. +This value is used to for the autocompletion, and so you won't have suggestions from fields class after using a field in a function (like `self.name.???`) + +### Fixs + +- Prevent BrokenPipeError to log indefinitely if the server is disconnected from client. This fix improve the one of the last version to handle last (hopefully) not catched situation. +- Update int to proper enums in module.py for the 'severity' option of diagnostics + + ## 0.2.2 - 2023/11/20 ### VsCode diff --git a/server/constants.py b/server/constants.py index 390b1c05..ed04a1b9 100644 --- a/server/constants.py +++ b/server/constants.py @@ -1,7 +1,7 @@ from enum import Enum EXTENSION_NAME = "Odoo" -EXTENSION_VERSION = "0.2.2" +EXTENSION_VERSION = "0.2.3" #DEBUG PARAMETERS diff --git a/vscode/package.json b/vscode/package.json index fcb56fd0..f4931d2c 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.2", + "version": "0.2.3", "publisher": "Odoo", "repository": { "type": "git",