Skip to content
This repository was archived by the owner on Oct 9, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 5 additions & 26 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,18 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Extension (quick)", // does not use webpack
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/client/out/**/*.js"],
"preLaunchTask": "npm: watch"
},
{
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/client/out/**/*.js"],
"preLaunchTask": "Webpack Watch"
},
// An attach configuration that attaches the debugger to a running server
{
"name": "Attach to Server",
"type": "node",
"request": "attach",
"timeout": 30000,
"port": 6009,
"restart": true,
"outFiles": ["${workspaceRoot}/server/out/**/*.js"]
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/out/**/*.js"],
"protocol": "inspector",
"trace": true
}
// {
// "name": "Language Server E2E Test",
Expand All @@ -45,11 +31,4 @@
// "outFiles": ["${workspaceRoot}/client/out/test/**/*.js"]
// }
],
"compounds": [
{
"name": "Client + Server",
"stopAll": true,
"configurations": ["Launch Extension (quick)", "Attach to Server"]
}
]
}
18 changes: 1 addition & 17 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,27 +56,11 @@
},
"problemMatcher": "$ts-webpack-watch"
},
{
"label": "Client Watch",
"type": "npm",
"script": "webpack:watch:client",
"isBackground": true,
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"panel": "dedicated",
"reveal": "never",
"group": "Build"
},
"problemMatcher": "$ts-webpack-watch"
},
{
// this requires manually closing terminal windows with watch processes
// running, before the task can be launched again
"label": "Webpack Watch",
"dependsOn": ["Client Watch", "Server Watch"]
"dependsOn": ["Server Watch"]
},
{
"label": "Clean & Webpack Watch",
Expand Down
20 changes: 2 additions & 18 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,5 @@ All notable changes to the Ansible VS Code extension will be documented in this
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.3] - 2021-07-27
### Changed
- Error handling in case output from Ansible Lint can't be parsed is now more
informative. Contextual information is now logged in `Ansible Server` output.

## [1.0.2] - 2021-07-19
### Fixed
- Modules from pre-installed Ansible collections will now be resolved when using
the extension in an environment that also has Python 2 installed.
- The cause of the `invalid syntax` error shown on startup has been removed.

## [1.0.1] - 2021-07-15
### Fixed
- Documentation fragments are now also correctly processed in case only one is
provided, using YAML flow style. The `file` module is a prominent example.

## [1.0.0] - 2021-07-14
- Initial release
## [0.1.0] - 2021-07-28
- Initial ansible language server release. Based on the vscode-ansible plugin developed by [Tomasz Maciążek](https://github.com/tomaciazek)
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
MIT License

Copyright (c) 2021 Tomasz Maciążek
Copyright (c) 2021 Red Hat Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
# Ansible VS Code Extension
This extension adds language support for Ansible to VS Code.

### Getting started

1. Install prerequisites:
- latest [Visual Studio Code](https://code.visualstudio.com/)
- [Node.js](https://nodejs.org/) v12.0.0 or higher
2. Fork and clone this repository
3. Install the dependencies
```bash
cd ansible-language-server
$ yarn install
```
4. Build the language server
```bash
$ yarn run build
```
5. The new built server is now located in ./out/server/src/server.js.
```bash
node (Ansible Language Server Location)/out/server/src/server.js [--stdio]
```

## Features

### Syntax highlighting
Expand Down Expand Up @@ -102,3 +122,7 @@ any level (User, Remote, Workspace and/or Folder).
have syntax highlighting of Jinja template files, you'll need to install other
extension.
- Jinja *blocks* (inside Ansible YAML files) are not supported yet.

## Credit

Based on the good work done by [Tomasz Maciążek](https://github.com/tomaciazek/vscode-ansible)
Loading