@codingame/monaco-vscode-api ·
![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)
NPM module that respects the vscode api and redirect calls to monaco editor.
Some features not supported by monaco (type hierarchy, call hierarchy...) can be implemented by hands:
import { Services } from 'vscode/services'
Services.install({
languages: {
registerTypeHierarchyProvider (documentSelector, provider) {
...
}
}
})
Installation
npm install vscode@npm:@codingame/monaco-vscode-api
npm install -D @types/vscode
Usage
Just import it as if you were in a vscode extensions:
import * as vscode from 'vscode'
const range = new new vscode.Range(...)
vscode.languages.registerCompletionItemProvider(...)