mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Switches all samples to use eslint 9 with flat configs. I've tried to migrate existing settings as much as possible. However our eslint configs were also inconsistent so I've tried to align these too
97 lines
2.5 KiB
JSON
97 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",
|
|
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
|
|
"test": "sh ./scripts/e2e.sh"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.13.0",
|
|
"@stylistic/eslint-plugin": "^2.9.0",
|
|
"@types/mocha": "^10.0.1",
|
|
"@types/node": "^20",
|
|
"eslint": "^9.13.0",
|
|
"mocha": "^10.2.0",
|
|
"typescript": "^5.6.2",
|
|
"typescript-eslint": "^8.11.0"
|
|
}
|
|
}
|