Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/publicodes/language-server
LS and VSCode client for Publicodes
https://github.com/publicodes/language-server
language-server-protocol publicodes vscode-lsp
Last synced: about 2 months ago
JSON representation
LS and VSCode client for Publicodes
- Host: GitHub
- URL: https://github.com/publicodes/language-server
- Owner: publicodes
- License: mit
- Created: 2023-04-07T08:47:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-21T17:02:23.000Z (about 2 months ago)
- Last Synced: 2024-10-21T23:54:51.620Z (about 2 months ago)
- Topics: language-server-protocol, publicodes, vscode-lsp
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=EmileRolley.publicodes-language-server
- Size: 355 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Publicodes VSCode - LS
Report Bug
โข
Publicodes
โข
The VSCode extension
A VSCode extension providing language server capabilities for
[Publicodes](https://publi.codes/).## Features
- ๐จ Semantic highlighting (based on the Publicodes [tree-sitter
grammar](https://github.com/publicodes/tree-sitter-publicodes))
- ๐งช Diagnostics (on save)
- ๐ Code completion (keywords and rule names)
- ๐ก Go to definition
- ๐ Hover information (resolved name, current node value and description)> Recognized extension files are: `.publicodes`, `.publicodes.yaml`, `.publicodes.yml`
## Syntax Highlighting Configuration
Your colorscheme needs to support semantic highlighting to have the best
experience with this extension.Here is the recommended configuration for the default `Dark+` and `Dark Modern`
themes. Simply add this to your `settings.json` (accessible via the command
palette (`Ctrl+Shift+P`) and typing `Preferences: Open Settings (JSON)`):```json
{
...
"editor.semanticTokenColorCustomizations": {
"rules": {
"*.readonly:publicodes": {
"italic": true,
},
"*.definition:publicodes": {
"bold": true,
},
"namespace:publicodes": {
"foreground": "#4ec99a"
},
"type:publicodes": {
"foreground": "#4EC9B0",
"italic": true,
},
"operator:publicodes": "#c7c7c7ad",
"string:publicodes": {
"foreground": "#CE9178",
},
"string.readonly:publicodes": "#569cd6",
"number:publicodes": "#e67f7f",
"property:publicodes": "#569CD6",
"property.static:publicodes": "#9CDCFE",
"method:publicodes": "#569CD6",
"macro:publicodes": {
"foreground": "#9CDCFE",
"italic": true
}
}
},
}
```## To run in local
1. In your terminal, install the dependencies with `yarn install`.
2. In VSCode:- select `Launch Client` from the drop down (if it is not already).
- press โท to run the launch config (F5).