提交 d7f5c295 编写于 作者: A Andre Weinand

nls debug-server-ready

上级 0080bd3a
...@@ -18,25 +18,25 @@ ...@@ -18,25 +18,25 @@
"contributes": { "contributes": {
"debuggers": [ "debuggers": [
{ {
"type": "node", "type": "*",
"configurationAttributes": { "configurationAttributes": {
"launch": { "launch": {
"properties": { "properties": {
"serverReadyAction": { "serverReadyAction": {
"type": "object", "type": "object",
"markdownDescription": "Server Ready options.", "markdownDescription": "%debug.server.ready.serverReadyAction.description%",
"default": { "default": {
"action": "openExternally" "action": "openExternally"
}, },
"properties": { "properties": {
"pattern": { "pattern": {
"type": "string", "type": "string",
"markdownDescription": "Server is ready if this pattern appears on the debug console. The first group must include the port number.", "markdownDescription": "%debug.server.ready.pattern.description%",
"default": "listening on port ([0-9]+)" "default": "listening on port ([0-9]+)"
}, },
"uriFormat": { "uriFormat": {
"type": "string", "type": "string",
"markdownDescription": "A format string used when constructing the URI. The first '%s' is substituted with the port number.", "markdownDescription": "%debug.server.ready.uriFormat.description%",
"default": "http://localhost:%s" "default": "http://localhost:%s"
}, },
"action": { "action": {
...@@ -46,15 +46,15 @@ ...@@ -46,15 +46,15 @@
"debugWithChrome" "debugWithChrome"
], ],
"enumDescriptions": [ "enumDescriptions": [
"Open URI externally.", "%debug.server.ready.action.openExternally.description%",
"Start debugging with the Debugger for Chrome." "%debug.server.ready.action.debugWithChrome.description%"
], ],
"markdownDescription": "Determines what to do with when the server is ready.", "markdownDescription": "%debug.server.ready.action.description%",
"default": "openExternally" "default": "openExternally"
}, },
"webRoot": { "webRoot": {
"type": "string", "type": "string",
"markdownDescription": "Literally passed to chrome debug configuration.", "markdownDescription": "%debug.server.ready.webRoot.description%",
"default": "${workspaceFolder}" "default": "${workspaceFolder}"
} }
} }
......
{ {
"displayName": "Server Ready Action", "displayName": "Server Ready Action",
"description": "Open URI in browser if server under debugging is ready." "description": "Open URI in browser if server under debugging is ready.",
"debug.server.ready.serverReadyAction.description": "Server Ready options.",
"debug.server.ready.pattern.description": "Server is ready if this pattern appears on the debug console. The first capture group must include the port number.",
"debug.server.ready.uriFormat.description": "A format string used when constructing the URI. The first '%s' is substituted with the port number.",
"debug.server.ready.webRoot.description": "Value is passed to the chrome debug configuration.",
"debug.server.ready.action.description": "What to do with when the server is ready.",
"debug.server.ready.action.openExternally.description": "Open URI externally.",
"debug.server.ready.action.debugWithChrome.description": "Start debugging with the Debugger for Chrome."
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册