https://github.com/kizza/ask-vscode-server
A simple extension providing a server that allows other programs to talk to vscode
https://github.com/kizza/ask-vscode-server
Last synced: 28 days ago
JSON representation
A simple extension providing a server that allows other programs to talk to vscode
- Host: GitHub
- URL: https://github.com/kizza/ask-vscode-server
- Owner: kizza
- Created: 2019-05-24T10:37:27.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T03:47:14.000Z (over 2 years ago)
- Last Synced: 2025-02-17T04:41:26.861Z (4 months ago)
- Language: TypeScript
- Size: 74.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Overview
This extensions runs a simple server within Visual Studio Code which allows external programs to talk to it.
Specifically this extension is intended to allow vim to request code actions (eg. "lightbulb" actions) for any provided file. See the vim plugin [vim-ask-vscode](https://github.com/kizza/vim-ask-vscode) for usage.
# How it works
This extension will load the mini server at launch time and put a little "Ask vscode running" message in the status bar. It will then listen to requests from clients.
These requests include a `rootPath`, `filePath`, `line` and `offset`. It will then execute the `code action provider` (used for the "lightbulb" menu) and return the results (including `textChanges` array) to the client as `json`.
### Commands
Two commands are added via this extension.
- Start 'Ask vscode' Server
- Stop 'Ask vscode' Server