-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
130 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,5 @@ go.work | |
hyprlang-lsp | ||
parser/data/generate/generator | ||
logs | ||
*.vsix | ||
hyprls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ | |
"label": "go:compile", | ||
"type": "shell", | ||
"command": "just", | ||
"args": ["install"] | ||
"args": ["build-debug"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Contributing | ||
|
||
Thanks for your interest in contributing to HyprLS :3! | ||
|
||
## Setup your environment development | ||
|
||
You just need to install: | ||
|
||
- [Go](https://golang.org/doc/install) | ||
- [Just](https://just.systems) | ||
|
||
Then: | ||
|
||
```sh | ||
git clone --recurse-submodules https://github.com/your/fork | ||
cd fork | ||
just build | ||
``` | ||
|
||
Then, you can build a binary locally with `just build`. | ||
To create a "debug build" that logs all the requests, responses and server logs to files (useful for debugging), you can run `just build-debug`. | ||
|
||
The debug binary is named `hyprls-debug` and the regular binary is named `hyprls`. | ||
|
||
### VSCode | ||
|
||
To develop the vscode extension, you'll also need: | ||
|
||
- [VSCode](https://code.visualstudio.com/), really useful for debugging the extension, you just have to launch from the "start/debug" menu in the sidebar | ||
- [Bun](https://bun.sh) | ||
|
||
Then: | ||
|
||
```sh | ||
cd vscode | ||
bun i | ||
``` | ||
|
||
> **Note:** "Reloading" does not re-build the Go server, you'll need to kill the "Develoment Host Extension" window and kill the terminal that ran the `go:compile` task before launching again. | ||
The VSCode dev environment is set up to use the debug binary in development. The path is absolute and hardcoded, so you may need to change it to where your debug binary is (check `vscode/src/extension.ts`). | ||
|
||
## Commit names | ||
|
||
We use the [gitmoji](https://gitmoji.dev/) convention for commit names. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# VSCode Extension for Ortfo | ||
# VSCode Extension for Hyprland configuraiton files | ||
|
||
## Installation | ||
|
||
Requires [installing `ortfodb`](https://ortfo.org/db/getting-started#installation) and having in on your PATH. | ||
Requires [installing `hyprls`](https://github.com/ewen-lbh/hyprls) and having in on your PATH. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "vscode-hyprlang", | ||
"name": "vscode-hyprls", | ||
"description": "VSCode extension for HyprLS", | ||
"author": "Ewen Le Bihan <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -14,9 +14,20 @@ | |
"engines": { | ||
"vscode": "^1.75.0" | ||
}, | ||
"activationEvents": [ | ||
"onLanguage:plaintext" | ||
], | ||
"contributes": { | ||
"languages": [{ | ||
"id": "hyprlang", | ||
"aliases": ["HyprLang"], | ||
"extensions": [".hl"], | ||
"filenamePatterns": ["hypr*.conf"] | ||
}], | ||
"commands": [{ | ||
"category": "HyprLS", | ||
"title": "Restart language server", | ||
"command": "vscode-hyprls.restart-lsp" | ||
}] | ||
}, | ||
"activationEvents": [ "onLanguage:hyprlang" ], | ||
"main": "./out/extension", | ||
"scripts": { | ||
"vscode:prepublish": "npm run compile", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters