Skip to content

Commit c6186a2

Browse files
committed
Setup php extension debugging
1 parent 64c7ddd commit c6186a2

5 files changed

Lines changed: 51 additions & 6 deletions

File tree

extensions/json/client/tsconfig.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
"noLib": true,
44
"target": "es5",
55
"module": "commonjs",
6-
"sourceMap": true,
7-
"sourceRoot": "../src",
86
"outDir": "./out"
97
},
108
"exclude": [

extensions/php/.vscode/launch.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Launch Extension",
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"runtimeExecutable": "${execPath}",
9+
"args": [
10+
"--extensionDevelopmentPath=${workspaceRoot}"
11+
],
12+
"stopOnEntry": false,
13+
"sourceMaps": true,
14+
"outDir": "${workspaceRoot}/out",
15+
"preLaunchTask": "npm"
16+
}
17+
]
18+
}

extensions/php/.vscode/tasks.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Available variables which can be used inside of strings.
2+
// ${workspaceRoot}: the root folder of the team
3+
// ${file}: the current opened file
4+
// ${fileBasename}: the current opened file's basename
5+
// ${fileDirname}: the current opened file's dirname
6+
// ${fileExtname}: the current opened file's extension
7+
// ${cwd}: the current working directory of the spawned process
8+
9+
// A task runner that calls a custom npm script that compiles the extension.
10+
{
11+
"version": "0.1.0",
12+
13+
// we want to run npm
14+
"command": "npm",
15+
16+
// the command is a shell script
17+
"isShellCommand": true,
18+
19+
// show the output window only if unrecognized errors occur.
20+
"showOutput": "silent",
21+
22+
// we run the custom script "compile" as defined in package.json
23+
"args": ["run", "compile"],
24+
25+
// The tsc compiler is started in watching mode
26+
"isWatching": true,
27+
28+
// use the standard tsc in watch mode problem matcher to find compile problems in the output.
29+
"problemMatcher": "$tsc-watch"
30+
}

extensions/php/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "php",
33
"version": "0.1.0",
44
"publisher": "vscode",
5-
"engines": { "vscode": "*" },
5+
"engines": { "vscode": "0.10.x" },
66
"activationEvents": ["onLanguage:php"],
77
"main": "./out/phpMain",
88
"dependencies": {
@@ -44,6 +44,6 @@
4444
}
4545
},
4646
"scripts": {
47-
"vscode:prepublish": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:php ./src/tsconfig.json"
47+
"compile": "gulp compile-extension:php && gulp compile-extension:php"
4848
}
4949
}

extensions/php/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"noLib": true,
44
"target": "es5",
55
"module": "commonjs",
6-
"sourceMap": false,
7-
"outDir": "../out"
6+
"outDir": "./out"
87
},
98
"exclude": [
109
"node_modules"

0 commit comments

Comments
 (0)