Files
vscode-extension-samples/lsp-log-streaming-sample/package.json
2020-09-10 15:20:30 -07:00

94 lines
2.5 KiB
JSON

{
"name": "lsp-log-streaming-sample",
"description": "A language server example demonstrating log streaming",
"author": "Microsoft Corporation",
"license": "MIT",
"version": "1.0.0",
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/vscode-extension-samples"
},
"publisher": "vscode-samples",
"categories": [],
"keywords": [
"multi-root ready"
],
"engines": {
"vscode": "^1.26.0"
},
"activationEvents": [
"onLanguage:plaintext"
],
"main": "./client/out/extension",
"contributes": {
"commands": [
{
"command": "languageServerExample.startStreaming",
"title": "Start Stream Logs into languageServerExample.port"
}
],
"configuration": {
"type": "object",
"title": "Example configuration",
"properties": {
"languageServerExample.maxNumberOfProblems": {
"scope": "resource",
"type": "number",
"default": 100,
"description": "Controls the maximum number of problems produced by the server."
},
"languageServerExample.port": {
"type": "number",
"default": 7000,
"scope": "window",
"description": "The WebSocket port to stream LSP log data into."
},
"languageServerExample.trace.server": {
"scope": "window",
"type": "object",
"description": "Traces the communication between VS Code and the language server.",
"properties": {
"verbosity": {
"type": "string",
"description": "Controls the verbosity of the trace.",
"enum": [
"off",
"message",
"verbose"
],
"default": "off"
},
"format": {
"type": "string",
"description": "Controls the output format of the trace.",
"enum": [
"text",
"json"
],
"default": "text"
}
}
}
}
}
},
"scripts": {
"vscode:prepublish": "cd client && npm run update-vscode && cd .. && npm run compile",
"compile:client": "tsc -p ./client/tsconfig.json",
"compile:server": "tsc -p ./server/tsconfig.json",
"watch:client": "tsc -w -p ./client/tsconfig.json",
"watch:server": "tsc -w -p ./server/tsconfig.json",
"compile": "npm run compile:client && npm run compile:server",
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
"test": "sh ./scripts/e2e.sh"
},
"devDependencies": {
"@types/mocha": "^5.2.0",
"@types/node": "^12.12.0",
"@typescript-eslint/eslint-plugin": "^3.0.2",
"@typescript-eslint/parser": "^3.0.2",
"eslint": "^7.1.0",
"typescript": "^4.0.2"
}
}