Skip to content

Commit 818f033

Browse files
luabudkarthiknadigcwebster-99
authored
Update README and project description (#287)
Handles #280 --------- Co-authored-by: Karthik Nadig <[email protected]> Co-authored-by: Courtney Webster <[email protected]>
1 parent 4ccc4f2 commit 818f033

File tree

2 files changed

+25
-22
lines changed

2 files changed

+25
-22
lines changed

README.md

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
# Language Server Protocol types code generator
22

3-
This repository contains code to generate Language Server Protocol types and classes for various languages.
3+
This repository contains a Python implementation of a Language Server Protocol types and classes code generator for various languages.
44

5-
# Code Generator usage
5+
It simplifies the creation of language servers for different programming languages by providing a robust and easy-to-use type generation system.
66

7-
## Usage
7+
# Usage
88

9-
You will need a python environment to run the generator. Here are the steps:
9+
You will need a Python environment to run the generator. Here are the steps:
1010

11-
1. Create a python environment (min supported python 3.8): `python -m venv .venv`
12-
2. Get this tool: `python -m pip install git+https://github.com/microsoft/lsprotocol.git`
13-
3. Run your plugin: `python -m generator --plugin dotnet --output-dir ./code`
11+
1. Create a Python environment: `python -m venv .venv`
12+
> **Note**: Python 3.8 is the minimum supported version
13+
2. Install this repo's tool: `python -m pip install git+https://github.com/microsoft/lsprotocol.git`
14+
3. Run your plugin. For example: `python -m generator --plugin dotnet --output-dir ./code`
1415

15-
### Command line
16+
## Command line
1617

17-
Clone this repository and run `generator` like a module.
18+
Clone this repository and run `generator` as a Python module.
1819

1920
```console
2021
>python -m generator --help
@@ -35,27 +36,27 @@ optional arguments:
3536
Path to a directory where the generated content is
3637
```
3738

38-
### using `nox`
39+
## Using Nox
3940

40-
This project uses `nox` as a task runner to run the code generator. You can install `nox` and run `build_lsp` session to generate code from spec available in the repo.
41+
This project uses Nox as a task runner to run the code generator. You can install Nox and run a `build_lsp` session to generate code from the spec available in this repo.
4142

4243
```console
4344
> python -m pip install nox
4445
> nox --session build_lsp
4546
```
4647

47-
You can format code, run tests, and other tasks using `nox` as well.
48+
You can also use Nox to format code, run tests and run various tasks. Run `nox --list` to see all available tasks.
4849

4950
# Contributing plugins
5051

5152
## Adding a new plugin
5253

53-
Follow these steps to generate boiler plate code for new plugin:
54+
Follow these steps to generate boilerplate code for a new plugin:
5455

55-
1. Create a virtual environment for python using python 3.8 and activate that environment.
56-
1. If you have python extension for VS Code installed then run `Python: Create Environment` command. Be sure to select all the `requirements.txt` files in the repo. This should, install all packages needed and select the environment for you.
56+
1. Create a virtual environment for Python using Python >= 3.8 and activate that environment.
57+
1. If you are using the Python extension for VS Code, you can just run the **Python: Create Environment** command from the Command Palette. Be sure to select all the `requirements.txt` files in the repo. This command will install all packages needed and select the newly created environment for you.
5758
1. Ensure `nox` is installed.
58-
1. Run `nox --list`, is nox is installed oyu should see a list of available sessions. Otherwise, run `python -m pip install nox` from the python 3.8 environment you created above.
59+
1. Run `nox --list` in the terminal. If Nox is installed, you should see a list of all available sessions. Otherwise, run `python -m pip install nox` in the activated environment you created above.
5960
1. Run `nox --session create_plugin` and follow the prompts to create a new plugin.
6061

6162
Example:
@@ -71,8 +72,10 @@ nox > Session create_plugin was successful.
7172

7273
# Supported plugins
7374

74-
| Language | Plugin Module | Package | Notes |
75-
| -------- | ------------------------ | --------------------------------------------------------------------------------------------------- | ----------- |
76-
| Python | generator.plugins.python | [![PyPI](https://img.shields.io/pypi/v/lsprotocol?label=lsprotocol)](https://pypi.org/p/lsprotocol) | Active |
77-
| Rust | generator.plugins.rust | <in development> | Development |
78-
| Dotnet | generator.plugins.dotnet | <in developemnt> | Development |
75+
Below is the list of plugins already created using this package.
76+
77+
| Language | Plugin Module | Package | Status |
78+
| -------- | ------------------------ | --------------------------------------------------------------------------------------------------- | ----------------- |
79+
| Python | generator.plugins.python | [![PyPI](https://img.shields.io/pypi/v/lsprotocol?label=lsprotocol)](https://pypi.org/p/lsprotocol) | Active |
80+
| Rust | generator.plugins.rust | <in development> | Under development |
81+
| Dotnet | generator.plugins.dotnet | <in development> | Under development |

packages/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
44

55
[project]
66
name = "lsprotocol"
7-
description = 'Python implementation of the Language Server Protocol.'
7+
description = 'Python types for Language Server Protocol.'
88
version = "2024.0.0a1"
99
authors = [
1010
{ name = "Microsoft Corporation", email = "[email protected]" },

0 commit comments

Comments
 (0)