package.json 4.1 KB
Newer Older
1
{
A
Andre Weinand 已提交
2
	"name": "debug-server-ready",
3 4 5 6
	"displayName": "%displayName%",
	"description": "%description%",
	"version": "1.0.0",
	"publisher": "vscode",
7
	"license": "MIT",
8 9 10 11 12 13
	"engines": {
		"vscode": "^1.32.0"
	},
	"activationEvents": [
		"onDebugResolve"
	],
14
	"enableProposedApi": true,
15 16 17 18 19 20 21 22
	"main": "./out/extension",
	"scripts": {
		"compile": "gulp compile-extension:debug-server-ready",
		"watch": "gulp watch-extension:debug-server-ready"
	},
	"contributes": {
		"debuggers": [
			{
A
Andre Weinand 已提交
23
				"type": "*",
24 25 26 27
				"configurationAttributes": {
					"launch": {
						"properties": {
							"serverReadyAction": {
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
								"oneOf": [
									{
										"type": "object",
										"additionalProperties": false,
										"markdownDescription": "%debug.server.ready.serverReadyAction.description%",
										"default": {
											"action": "openExternally"
										},
										"properties": {
											"action": {
												"type": "string",
												"enum": [
													"openExternally"
												],
												"enumDescriptions": [
43
													"%debug.server.ready.action.openExternally.description%"
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
												],
												"markdownDescription": "%debug.server.ready.action.description%",
												"default": "openExternally"
											},
											"pattern": {
												"type": "string",
												"markdownDescription": "%debug.server.ready.pattern.description%",
												"default": "listening on port ([0-9]+)"
											},
											"uriFormat": {
												"type": "string",
												"markdownDescription": "%debug.server.ready.uriFormat.description%",
												"default": "http://localhost:%s"
											}
										}
59
									},
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
									{
										"type": "object",
										"additionalProperties": false,
										"markdownDescription": "%debug.server.ready.serverReadyAction.description%",
										"default": {
											"action": "openExternally"
										},
										"properties": {
											"action": {
												"type": "string",
												"enum": [
													"debugWithChrome"
												],
												"enumDescriptions": [
													"%debug.server.ready.action.debugWithChrome.description%"
												],
												"markdownDescription": "%debug.server.ready.action.description%",
												"default": "openExternally"
											},
											"pattern": {
												"type": "string",
												"markdownDescription": "%debug.server.ready.pattern.description%",
												"default": "listening on port ([0-9]+)"
											},
											"uriFormat": {
												"type": "string",
												"markdownDescription": "%debug.server.ready.uriFormat.description%",
												"default": "http://localhost:%s"
											},
											"webRoot": {
												"type": "string",
												"markdownDescription": "%debug.server.ready.webRoot.description%",
												"default": "${workspaceFolder}"
											}
										}
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
									},
									{
										"type": "object",
										"additionalProperties": false,
										"markdownDescription": "%debug.server.ready.serverReadyAction.description%",
										"default": {
                      "action": "startDebugging",
                      "name": "<launch browser config name>"
                    },
                    "required": ["name"],
										"properties": {
											"action": {
												"type": "string",
												"enum": [
													"startDebugging"
												],
												"enumDescriptions": [
													"%debug.server.ready.action.startDebugging.description%"
												],
												"markdownDescription": "%debug.server.ready.action.description%",
												"default": "startDebugging"
											},
											"pattern": {
												"type": "string",
												"markdownDescription": "%debug.server.ready.pattern.description%",
												"default": "listening on port ([0-9]+)"
											},
											"name": {
												"type": "string",
												"markdownDescription": "%debug.server.ready.debugConfigName.description%",
												"default": "Launch Browser"
											}
										}
128
									}
129
								]
130 131 132 133 134 135 136 137 138 139 140
							}
						}
					}
				}
			}
		]
	},
	"dependencies": {
		"vscode-nls": "^4.0.0"
	},
	"devDependencies": {
141
		"@types/node": "^12.19.9"
142 143
	}
}