Skip to content

odoo/odoo-ls-vscode

Repository files navigation



Visual Studio Extension

Boost your Odoo code development

About

This extension integrates the Odoo Language Server, that will help you in the development of your Odoo projects.

This project is currently under active development. This is a complex project, and you can encounter various issues, incoherent data or crashes. Do not hesitate to report them to help us build the perfect tool !

This repository contains the code that build the VsCode extension for OdooLS. OdooLs itself is available here

Features

  • Autocompletion

    • Simple Autocompletion Autocompletion picture
    • Model fields Completion Autocompletion in a loop
    • Smart String completion Autocompletion in self.env Autocompletion in inverse kwarg
  • Advanced Hover and GoToDefinition Even on String values! Advanced Hover and GoToDefinition

  • Diagnostics

diagnostics picture diagnostics picture 2

Installation

Requirements

  • Odoo 14+
  • Python 3.8+

Automatic installation

Install the extension from the marketplace

Manually build the .vsix package

Requirements

  • Python 3.8 or greater
  • An active virtual environment (python3 -m venv venv)
  • nox (pip install nox)
  • node >= 14.19.0
  • npm >= 8.3.0 (npm is installed with node, check npm version, use npm install -g [email protected] to update)
  • @vscode/vsce >= 3.2.1 (npm i -g @vscode/vsce)

How to bundle into .vsix

  • Activate the nox venv.
  • Install nox if not installed yet.
  • Run build_package.sh