Skip to content

Commit

Permalink
0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
fda-odoo committed Dec 21, 2023
1 parent 722a1a3 commit 14f4173
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion server/constants.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from enum import Enum

EXTENSION_NAME = "Odoo"
EXTENSION_VERSION = "0.2.2"
EXTENSION_VERSION = "0.2.3"

#DEBUG PARAMETERS

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.2",
"version": "0.2.3",
"publisher": "Odoo",
"repository": {
"type": "git",
Expand Down

0 comments on commit 14f4173

Please sign in to comment.