This repository has been archived by the owner on Oct 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
- Loading branch information
1 parent
9511b27
commit d3919f5
Showing
9 changed files
with
84 additions
and
86 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Added [Sphinx][sphinx] documentation generator and set up the CI | ||
infrastructure for it -- by {user}`webknjaz` | ||
Added [Sphinx][sphinx] documentation generator and set up the CI infrastructure | ||
for it -- by {user}`webknjaz` | ||
|
||
[sphinx]: https://github.com/twisted/towncrier |
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 @@ | ||
Dropped the brackets from the changelog titles for the release sections. | ||
We now don't strictly follow the release notes format suggested by | ||
[Keep a Changelog][keepachangelog] -- by {user}`webknjaz` | ||
Dropped the brackets from the changelog titles for the release sections. We now | ||
don't strictly follow the release notes format suggested by [Keep a | ||
Changelog][keepachangelog] -- by {user}`webknjaz` | ||
|
||
[keepachangelog]: https://keepachangelog.com/en/1.1.0/ |
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,2 +1,2 @@ | ||
Replaced all the credits in the changelog with a dedicated Sphinx role | ||
-- by {user}`webknjaz` | ||
Replaced all the credits in the changelog with a dedicated Sphinx role -- by | ||
{user}`webknjaz` |
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,2 +1,2 @@ | ||
Fixed a half-baked change in the GitHub Actions CI/CD workflow job | ||
that is used in branch protection -- by {user}`webknjaz` | ||
Fixed a half-baked change in the GitHub Actions CI/CD workflow job that is used | ||
in branch protection -- by {user}`webknjaz` |
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,3 +1,5 @@ | ||
<!-- markdownlint-disable first-line-heading --> | ||
|
||
```{include} ../../.github/CODE_OF_CONDUCT.md | ||
``` |
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,7 +1,9 @@ | ||
<!-- markdownlint-disable first-line-heading --> | ||
|
||
```{spelling} | ||
backport | ||
``` | ||
|
||
```{include} ../../.github/SECURITY.md | ||
``` |
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 |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
|
||
A demo of the setup can be found [on youtube](https://youtu.be/LsvWsX7Mbo8). | ||
|
||
It is recommended to work on the forked copy of this repository from your | ||
github account to raise pull requests. | ||
It is recommended to work on the forked copy of this repository from your github | ||
account to raise pull requests. | ||
|
||
```bash | ||
git clone [email protected]:<your-github-id>/ansible-language-server.git | ||
|
@@ -17,49 +17,50 @@ git checkout -b <name_of_branch> upstream/main | |
|
||
## Running & debugging the language-server with VS Code | ||
|
||
* Install dependent packages within ansible-language-server root directory | ||
- Install dependent packages within ansible-language-server root directory | ||
|
||
```console | ||
ansible-language-server$ npm install . | ||
``` | ||
|
||
This will install the dependent modules under `node_modules` folder within | ||
the current directory. | ||
This will install the dependent modules under `node_modules` folder within the | ||
current directory. | ||
|
||
* Clone the repository containing the VS Code extension code into the | ||
`vscode-ansible` directory *next to* the root directory of this repository. | ||
- Clone the repository containing the VS Code extension code into the | ||
`vscode-ansible` directory _next to_ the root directory of this repository. | ||
|
||
```bash | ||
cd .. | ||
git clone [email protected]:ansible/vscode-ansible.git | ||
cd vscode-ansible | ||
``` | ||
|
||
* Open a new VS Code window and add folder to workspace | ||
- Open a new VS Code window and add folder to workspace | ||
`File -> Add folder to workspace` and add `vscode-ansible` and | ||
`ansible-language-server` folders to the workspace | ||
|
||
* Once the language server and `vscode-ansible/` directory is prepared, | ||
compile both client and server using command | ||
- Once the language server and `vscode-ansible/` directory is prepared, compile | ||
both client and server using command | ||
|
||
```bash | ||
npm run compile:withserver | ||
``` | ||
|
||
* In the Run and debug window select **Client + Server (source)** configuration | ||
and start debugging `Run -> Start Debugging`. This will open up a new VS Code window | ||
which is the `Extension development Host` window. | ||
- In the Run and debug window select **Client + Server (source)** configuration | ||
and start debugging `Run -> Start Debugging`. This will open up a new VS Code | ||
window which is the `Extension development Host` window. | ||
|
||
* In the `Extension development Host` window add a new folder that has ansible files. | ||
- In the `Extension development Host` window add a new folder that has ansible | ||
files. | ||
|
||
* You can set the ansible-language-server settings by adding | ||
- You can set the ansible-language-server settings by adding | ||
`.vscode/settings.json` file under the root folder. Example settings: | ||
|
||
```json | ||
{ | ||
"ansible.python.interpreterPath": "<change to python3 executable path>", | ||
"ansible.ansible.path": "<change to ansible executable path>", | ||
"ansibleServer.trace.server": "verbose" | ||
"ansible.python.interpreterPath": "<change to python3 executable path>", | ||
"ansible.ansible.path": "<change to ansible executable path>", | ||
"ansibleServer.trace.server": "verbose" | ||
} | ||
``` | ||
|
||
|
@@ -73,8 +74,9 @@ modes. | |
### Building server locally | ||
|
||
1. Install prerequisites: | ||
* latest [Visual Studio Code](https://code.visualstudio.com/) | ||
* [Node.js](https://nodejs.org/) v12.0.0 or higher | ||
|
||
- latest [Visual Studio Code](https://code.visualstudio.com/) | ||
- [Node.js](https://nodejs.org/) v12.0.0 or higher | ||
|
||
2. Fork and clone this repository | ||
|
||
|