mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Pick up latest eslint to avoid a nasty warning about using an unsupported version of TS Also updates the eslint script to be more scoped on which files it checks
95 lines
2.5 KiB
JSON
95 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",
|
|
"lint": "eslint ./client/src ./server/src --ext .ts,.tsx",
|
|
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
|
|
"test": "sh ./scripts/e2e.sh"
|
|
},
|
|
"devDependencies": {
|
|
"@types/mocha": "^5.2.0",
|
|
"@types/node": "^16.11.7",
|
|
"@typescript-eslint/eslint-plugin": "^5.42.0",
|
|
"@typescript-eslint/parser": "^5.42.0",
|
|
"eslint": "^8.26.0",
|
|
"typescript": "^4.8.4"
|
|
}
|
|
}
|