mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
382 lines
17 KiB
JSON
382 lines
17 KiB
JSON
{
|
|
"name": "native-preview",
|
|
"displayName": "TypeScript 7",
|
|
"publisher": "TypeScriptTeam",
|
|
"author": "Microsoft Corp.",
|
|
"description": "%description%",
|
|
"icon": "logo.png",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "commonjs",
|
|
"l10n": "./l10n",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/microsoft/typescript-go"
|
|
},
|
|
"//enabledApiProposals": [
|
|
"editorHoverVerbosityLevel",
|
|
"multiDocumentHighlightProvider"
|
|
],
|
|
"engines": {
|
|
"vscode": "^1.126.0"
|
|
},
|
|
"extensionKind": [
|
|
"workspace"
|
|
],
|
|
"capabilities": {
|
|
"untrustedWorkspaces": {
|
|
"supported": false
|
|
}
|
|
},
|
|
"activationEvents": [
|
|
"onLanguage:javascript",
|
|
"onLanguage:javascriptreact",
|
|
"onLanguage:typescript",
|
|
"onLanguage:typescriptreact"
|
|
],
|
|
"contributes": {
|
|
"configuration": [
|
|
{
|
|
"title": "TypeScript 7",
|
|
"properties": {
|
|
"js/ts.customConfigFileName": {
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "%native-preview.trace.customConfigFileName.description%",
|
|
"tags": [
|
|
"experimental"
|
|
]
|
|
},
|
|
"js/ts.trace.server": {
|
|
"type": "string",
|
|
"enum": [
|
|
"off",
|
|
"messages",
|
|
"verbose"
|
|
],
|
|
"default": "verbose",
|
|
"description": "%native-preview.trace.server.description%",
|
|
"tags": [
|
|
"experimental"
|
|
]
|
|
},
|
|
"js/ts.server.pprofDir": {
|
|
"type": "string",
|
|
"description": "%native-preview.pprofDir.description%",
|
|
"tags": [
|
|
"experimental"
|
|
]
|
|
},
|
|
"js/ts.tsdk.additionalLocations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": [],
|
|
"description": "%native-preview.additionalTsdkLocations.description%",
|
|
"tags": [
|
|
"experimental"
|
|
]
|
|
},
|
|
"js/ts.showDebugInfo": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%native-preview.showDebugInfo.description%",
|
|
"tags": [
|
|
"experimental"
|
|
]
|
|
},
|
|
"js/ts.server.goMemLimit": {
|
|
"type": "string",
|
|
"description": "%native-preview.goMemLimit.description%",
|
|
"pattern": "^[0-9]+(([KMGT]i)?B)?$",
|
|
"patternErrorMessage": "%native-preview.goMemLimit.error%",
|
|
"tags": [
|
|
"experimental"
|
|
]
|
|
},
|
|
"typescript.native-preview.customConfigFileName": {
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "%native-preview.trace.customConfigFileName.description%",
|
|
"deprecationMessage": "%native-preview.customConfigFileName.deprecation%",
|
|
"tags": [
|
|
"experimental"
|
|
]
|
|
},
|
|
"typescript.native-preview.trace.server": {
|
|
"type": "string",
|
|
"enum": [
|
|
"off",
|
|
"messages",
|
|
"verbose"
|
|
],
|
|
"default": "verbose",
|
|
"description": "%native-preview.trace.server.description%",
|
|
"deprecationMessage": "%native-preview.trace.server.deprecation%",
|
|
"tags": [
|
|
"experimental"
|
|
]
|
|
},
|
|
"typescript.native-preview.pprofDir": {
|
|
"type": "string",
|
|
"description": "%native-preview.pprofDir.description%",
|
|
"deprecationMessage": "%native-preview.pprofDir.deprecation%",
|
|
"tags": [
|
|
"experimental"
|
|
]
|
|
},
|
|
"typescript.native-preview.tsdk": {
|
|
"type": "string",
|
|
"description": "%native-preview.tsserver.tsdk.description%",
|
|
"deprecationMessage": "%native-preview.tsdk.deprecation%",
|
|
"scope": "window",
|
|
"tags": [
|
|
"experimental"
|
|
]
|
|
},
|
|
"typescript.native-preview.additionalTsdkLocations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": [],
|
|
"description": "%native-preview.additionalTsdkLocations.description%",
|
|
"deprecationMessage": "%native-preview.additionalTsdkLocations.deprecation%",
|
|
"tags": [
|
|
"experimental"
|
|
]
|
|
},
|
|
"typescript.native-preview.showDebugInfo": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%native-preview.showDebugInfo.description%",
|
|
"deprecationMessage": "%native-preview.showDebugInfo.deprecation%",
|
|
"tags": [
|
|
"experimental"
|
|
]
|
|
},
|
|
"typescript.native-preview.goMemLimit": {
|
|
"type": "string",
|
|
"description": "%native-preview.goMemLimit.description%",
|
|
"pattern": "^[0-9]+(([KMGT]i)?B)?$",
|
|
"patternErrorMessage": "%native-preview.goMemLimit.error%",
|
|
"deprecationMessage": "%native-preview.goMemLimit.deprecation%",
|
|
"tags": [
|
|
"experimental"
|
|
]
|
|
},
|
|
"js/ts.preferences.autoImportEntrypointDirectorySearch": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"markdownDescription": "Enables recursive directory search for auto-importable files in all packages that lack `exports` in their `package.json`. Enabling this option allows more auto-importable paths to be discovered at the cost of increased scanning time.",
|
|
"scope": "window",
|
|
"tags": [
|
|
"experimental"
|
|
]
|
|
},
|
|
"js/ts.server.showFailedResponses": {
|
|
"type": "string",
|
|
"enum": [
|
|
"always",
|
|
"never",
|
|
"auto"
|
|
],
|
|
"enumDescriptions": [
|
|
"%native-preview.showFailedResponses.always%",
|
|
"%native-preview.showFailedResponses.never%",
|
|
"%native-preview.showFailedResponses.auto%"
|
|
],
|
|
"default": "auto",
|
|
"description": "%native-preview.showFailedResponses.description%",
|
|
"scope": "window"
|
|
},
|
|
"js/ts.server.trackFlakyDiagnostics": {
|
|
"type": "string",
|
|
"enum": [
|
|
"panic",
|
|
"log",
|
|
"never",
|
|
"auto"
|
|
],
|
|
"enumDescriptions": [
|
|
"%native-preview.trackFlakyDiagnostics.panic%",
|
|
"%native-preview.trackFlakyDiagnostics.log%",
|
|
"%native-preview.trackFlakyDiagnostics.never%",
|
|
"%native-preview.trackFlakyDiagnostics.auto%"
|
|
],
|
|
"default": "auto",
|
|
"tags": [
|
|
"experimental"
|
|
],
|
|
"description": "%native-preview.trackFlakyDiagnostics.description%",
|
|
"scope": "window"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"commands": [
|
|
{
|
|
"command": "typescript.native-preview.enable",
|
|
"title": "%native-preview.enable.title%",
|
|
"enablement": "!typescript.native-preview.serverRunning",
|
|
"category": "TypeScript"
|
|
},
|
|
{
|
|
"command": "typescript.native-preview.disable",
|
|
"title": "%native-preview.disable.title%",
|
|
"enablement": "typescript.native-preview.serverRunning",
|
|
"category": "TypeScript"
|
|
},
|
|
{
|
|
"command": "typescript.native-preview.restart",
|
|
"title": "%native-preview.restart.title%",
|
|
"enablement": "typescript.native-preview.serverRunning",
|
|
"category": "TypeScript"
|
|
},
|
|
{
|
|
"command": "typescript.native-preview.output.focus",
|
|
"title": "%native-preview.output.focus.title%",
|
|
"enablement": "typescript.native-preview.serverRunning",
|
|
"category": "TypeScript"
|
|
},
|
|
{
|
|
"command": "typescript.native-preview.reportIssue",
|
|
"title": "%native-preview.reportIssue.title%",
|
|
"enablement": "typescript.native-preview.serverRunning",
|
|
"category": "TypeScript"
|
|
},
|
|
{
|
|
"command": "typescript.native-preview.selectVersion",
|
|
"title": "%native-preview.selectVersion.title%",
|
|
"enablement": "typescript.native-preview.serverRunning",
|
|
"category": "TypeScript"
|
|
},
|
|
{
|
|
"command": "typescript.native-preview.goToSourceDefinition",
|
|
"title": "%native-preview.goToSourceDefinition.title%",
|
|
"enablement": "typescript.native-preview.serverRunning",
|
|
"category": "TypeScript"
|
|
},
|
|
{
|
|
"command": "typescript.native-preview.sortImports",
|
|
"title": "%native-preview.sortImports.title%",
|
|
"enablement": "typescript.native-preview.serverRunning && (resourceLangId == typescript || resourceLangId == typescriptreact || resourceLangId == javascript || resourceLangId == javascriptreact)",
|
|
"category": "TypeScript"
|
|
},
|
|
{
|
|
"command": "typescript.native-preview.removeUnusedImports",
|
|
"title": "%native-preview.removeUnusedImports.title%",
|
|
"enablement": "typescript.native-preview.serverRunning && (resourceLangId == typescript || resourceLangId == typescriptreact || resourceLangId == javascript || resourceLangId == javascriptreact)",
|
|
"category": "TypeScript"
|
|
},
|
|
{
|
|
"command": "typescript.native-preview.codeLens.showLocations",
|
|
"title": "%native-preview.codeLens.showLocations.title%",
|
|
"enablement": "false"
|
|
},
|
|
{
|
|
"command": "typescript.native-preview.dev.runGC",
|
|
"title": "%native-preview.dev.runGC.title%",
|
|
"enablement": "typescript.native-preview.serverRunning",
|
|
"category": "%developer%"
|
|
},
|
|
{
|
|
"command": "typescript.native-preview.dev.saveHeapProfile",
|
|
"title": "%native-preview.dev.saveHeapProfile.title%",
|
|
"enablement": "typescript.native-preview.serverRunning",
|
|
"category": "%developer%"
|
|
},
|
|
{
|
|
"command": "typescript.native-preview.dev.saveAllocProfile",
|
|
"title": "%native-preview.dev.saveAllocProfile.title%",
|
|
"enablement": "typescript.native-preview.serverRunning",
|
|
"category": "%developer%"
|
|
},
|
|
{
|
|
"command": "typescript.native-preview.dev.startCPUProfile",
|
|
"title": "%native-preview.dev.startCPUProfile.title%",
|
|
"enablement": "typescript.native-preview.serverRunning && !typescript.native-preview.cpuProfileRunning",
|
|
"category": "%developer%"
|
|
},
|
|
{
|
|
"command": "typescript.native-preview.dev.stopCPUProfile",
|
|
"title": "%native-preview.dev.stopCPUProfile.title%",
|
|
"enablement": "typescript.native-preview.cpuProfileRunning",
|
|
"category": "%developer%"
|
|
},
|
|
{
|
|
"command": "typescript.native-preview.initializeAPIConnection.ui",
|
|
"title": "%native-preview.initializeAPIConnection.ui.title%",
|
|
"enablement": "typescript.native-preview.serverRunning",
|
|
"category": "%developer%"
|
|
}
|
|
],
|
|
"menus": {
|
|
"commandPalette": [
|
|
{
|
|
"command": "typescript.native-preview.restart",
|
|
"when": "typescript.native-preview.serverRunning"
|
|
},
|
|
{
|
|
"command": "typescript.native-preview.output.focus",
|
|
"when": "typescript.native-preview.serverRunning"
|
|
},
|
|
{
|
|
"command": "typescript.native-preview.selectVersion",
|
|
"when": "typescript.native-preview.serverRunning"
|
|
},
|
|
{
|
|
"command": "typescript.native-preview.goToSourceDefinition",
|
|
"when": "typescript.native-preview.serverRunning && tsSupportsSourceDefinition"
|
|
},
|
|
{
|
|
"command": "typescript.native-preview.sortImports",
|
|
"when": "typescript.native-preview.serverRunning && supportedCodeAction =~ /(\\s|^)source\\.sortImports\\b/ && editorLangId =~ /^(typescript|javascript)(react)?$/"
|
|
},
|
|
{
|
|
"command": "typescript.native-preview.removeUnusedImports",
|
|
"when": "typescript.native-preview.serverRunning && supportedCodeAction =~ /(\\s|^)source\\.removeUnusedImports\\b/ && editorLangId =~ /^(typescript|javascript)(react)?$/"
|
|
}
|
|
],
|
|
"editor/context": [
|
|
{
|
|
"command": "typescript.native-preview.goToSourceDefinition",
|
|
"when": "typescript.native-preview.serverRunning && tsSupportsSourceDefinition && (resourceLangId == typescript || resourceLangId == typescriptreact || resourceLangId == javascript || resourceLangId == javascriptreact)",
|
|
"group": "[email protected]"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"main": "./dist/extension.bundle.js",
|
|
"files": [
|
|
"dist/extension.bundle.js",
|
|
"lib",
|
|
"LICENSE",
|
|
"NOTICE.txt",
|
|
"logo.png",
|
|
"l10n/bundle.l10n.json",
|
|
"package.nls.json"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc && npm run bundle",
|
|
"bundle": "esbuild src/extension.ts --bundle --external:vscode --platform=node --format=cjs --outfile=dist/extension.bundle.js --sourcemap",
|
|
"watch": "npm run bundle -- --watch",
|
|
"generateLocTest": "npx @vscode/l10n-dev generate-pseudo -o ./l10n/ ./l10n/bundle.l10n.json ./package.nls.json",
|
|
"generateLocBundle": "npx @vscode/l10n-dev export --outDir ./l10n ./src",
|
|
"//vscode:prepublish": "we do not use this hook; the Herebyfile runs bundle:release once instead",
|
|
"bundle:release": "npm run bundle -- --minify"
|
|
},
|
|
"dependencies": {
|
|
"@vscode/extension-telemetry": "^1.5.2",
|
|
"vscode-languageclient": "^10.0.1",
|
|
"vscode-tas-client": "^0.2.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/vscode": "~1.125.0",
|
|
"@typescript/bundled-typescript": "npm:[email protected]",
|
|
"@vscode/vsce": "^3.9.2",
|
|
"esbuild": "^0.28.1"
|
|
}
|
|
}
|