提交 efdc3280 编写于 作者: I isidor

${workspaceRoot} -> ${workspaceFolder}

上级 e99995dc
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
"type": "node", "type": "node",
"request": "launch", "request": "launch",
"name": "Gulp Build", "name": "Gulp Build",
"program": "${workspaceRoot}/node_modules/gulp/bin/gulp.js", "program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js",
"stopOnEntry": true, "stopOnEntry": true,
"args": [ "args": [
"watch-extension:json-client" "watch-extension:json-client"
], ],
"cwd": "${workspaceRoot}" "cwd": "${workspaceFolder}"
}, },
{ {
"type": "node", "type": "node",
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
"port": 5870, "port": 5870,
"restart": true, "restart": true,
"outFiles": [ "outFiles": [
"${workspaceRoot}/out/**/*.js" "${workspaceFolder}/out/**/*.js"
] ]
}, },
{ {
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
"protocol": "inspector", "protocol": "inspector",
"port": 5871, "port": 5871,
"outFiles": [ "outFiles": [
"${workspaceRoot}/out/**/*.js" "${workspaceFolder}/out/**/*.js"
] ]
}, },
{ {
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
"name": "Attach to Search Process", "name": "Attach to Search Process",
"port": 5876, "port": 5876,
"outFiles": [ "outFiles": [
"${workspaceRoot}/out/**/*.js" "${workspaceFolder}/out/**/*.js"
] ]
}, },
{ {
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
"protocol": "inspector", "protocol": "inspector",
"port": 5874, "port": 5874,
"outFiles": [ "outFiles": [
"${workspaceRoot}/out/**/*.js" "${workspaceFolder}/out/**/*.js"
] ]
}, },
{ {
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
"protocol": "inspector", "protocol": "inspector",
"port": 5875, "port": 5875,
"outFiles": [ "outFiles": [
"${workspaceRoot}/out/**/*.js" "${workspaceFolder}/out/**/*.js"
] ]
}, },
{ {
...@@ -70,12 +70,12 @@ ...@@ -70,12 +70,12 @@
"name": "VS Code Emmet Tests", "name": "VS Code Emmet Tests",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": [ "args": [
"${workspaceRoot}/extensions/emmet/test-fixtures", "${workspaceFolder}/extensions/emmet/test-fixtures",
"--extensionDevelopmentPath=${workspaceRoot}/extensions/emmet", "--extensionDevelopmentPath=${workspaceFolder}/extensions/emmet",
"--extensionTestsPath=${workspaceRoot}/extensions/emmet/out/test" "--extensionTestsPath=${workspaceFolder}/extensions/emmet/out/test"
], ],
"outFiles": [ "outFiles": [
"${workspaceRoot}/out/**/*.js" "${workspaceFolder}/out/**/*.js"
] ]
}, },
{ {
...@@ -84,12 +84,12 @@ ...@@ -84,12 +84,12 @@
"name": "VS Code API Tests", "name": "VS Code API Tests",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": [ "args": [
"${workspaceRoot}/extensions/vscode-api-tests/testWorkspace", "${workspaceFolder}/extensions/vscode-api-tests/testWorkspace",
"--extensionDevelopmentPath=${workspaceRoot}/extensions/vscode-api-tests", "--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode-api-tests",
"--extensionTestsPath=${workspaceRoot}/extensions/vscode-api-tests/out" "--extensionTestsPath=${workspaceFolder}/extensions/vscode-api-tests/out"
], ],
"outFiles": [ "outFiles": [
"${workspaceRoot}/out/**/*.js" "${workspaceFolder}/out/**/*.js"
] ]
}, },
{ {
...@@ -98,12 +98,12 @@ ...@@ -98,12 +98,12 @@
"name": "VS Code Tokenizer Tests", "name": "VS Code Tokenizer Tests",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": [ "args": [
"${workspaceRoot}/extensions/vscode-colorize-tests/test", "${workspaceFolder}/extensions/vscode-colorize-tests/test",
"--extensionDevelopmentPath=${workspaceRoot}/extensions/vscode-colorize-tests", "--extensionDevelopmentPath=${workspaceFolder}/extensions/vscode-colorize-tests",
"--extensionTestsPath=${workspaceRoot}/extensions/vscode-colorize-tests/out" "--extensionTestsPath=${workspaceFolder}/extensions/vscode-colorize-tests/out"
], ],
"outFiles": [ "outFiles": [
"${workspaceRoot}/out/**/*.js" "${workspaceFolder}/out/**/*.js"
] ]
}, },
{ {
...@@ -117,30 +117,30 @@ ...@@ -117,30 +117,30 @@
"request": "launch", "request": "launch",
"name": "Launch VS Code", "name": "Launch VS Code",
"windows": { "windows": {
"runtimeExecutable": "${workspaceRoot}/scripts/code.bat" "runtimeExecutable": "${workspaceFolder}/scripts/code.bat"
}, },
"osx": { "osx": {
"runtimeExecutable": "${workspaceRoot}/scripts/code.sh" "runtimeExecutable": "${workspaceFolder}/scripts/code.sh"
}, },
"linux": { "linux": {
"runtimeExecutable": "${workspaceRoot}/scripts/code.sh" "runtimeExecutable": "${workspaceFolder}/scripts/code.sh"
}, },
"urlFilter": "*index.html*", "urlFilter": "*index.html*",
"runtimeArgs": [ "runtimeArgs": [
"--inspect=5875" "--inspect=5875"
], ],
"webRoot": "${workspaceRoot}" "webRoot": "${workspaceFolder}"
}, },
{ {
"type": "node", "type": "node",
"request": "launch", "request": "launch",
"name": "Git Unit Tests", "name": "Git Unit Tests",
"protocol": "inspector", "protocol": "inspector",
"program": "${workspaceRoot}/extensions/git/node_modules/mocha/bin/_mocha", "program": "${workspaceFolder}/extensions/git/node_modules/mocha/bin/_mocha",
"stopOnEntry": false, "stopOnEntry": false,
"cwd": "${workspaceRoot}/extensions/git", "cwd": "${workspaceFolder}/extensions/git",
"outFiles": [ "outFiles": [
"${workspaceRoot}/extensions/git/out/**/*.js" "${workspaceFolder}/extensions/git/out/**/*.js"
] ]
}, },
{ {
...@@ -148,38 +148,38 @@ ...@@ -148,38 +148,38 @@
"request": "launch", "request": "launch",
"name": "Unit Tests", "name": "Unit Tests",
"protocol": "inspector", "protocol": "inspector",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"runtimeExecutable": "${workspaceRoot}/.build/electron/Code - OSS.app/Contents/MacOS/Electron", "runtimeExecutable": "${workspaceFolder}/.build/electron/Code - OSS.app/Contents/MacOS/Electron",
"windows": { "windows": {
"runtimeExecutable": "${workspaceRoot}/.build/electron/Code - OSS.exe" "runtimeExecutable": "${workspaceFolder}/.build/electron/Code - OSS.exe"
}, },
"linux": { "linux": {
"runtimeExecutable": "${workspaceRoot}/.build/electron/code-oss" "runtimeExecutable": "${workspaceFolder}/.build/electron/code-oss"
}, },
"stopOnEntry": false, "stopOnEntry": false,
"args": [ "args": [
"--timeout", "--timeout",
"2000" "2000"
], ],
"cwd": "${workspaceRoot}", "cwd": "${workspaceFolder}",
"env": { "env": {
"ELECTRON_RUN_AS_NODE": "true" "ELECTRON_RUN_AS_NODE": "true"
}, },
"outFiles": [ "outFiles": [
"${workspaceRoot}/out/**/*.js" "${workspaceFolder}/out/**/*.js"
] ]
}, },
{ {
"type": "node", "type": "node",
"request": "launch", "request": "launch",
"name": "Launch Smoke Test", "name": "Launch Smoke Test",
"program": "${workspaceRoot}/test/smoke/out/main.js", "program": "${workspaceFolder}/test/smoke/out/main.js",
"cwd": "${workspaceRoot}/test/smoke", "cwd": "${workspaceFolder}/test/smoke",
"timeout": 240000, "timeout": 240000,
"port": 9999, "port": 9999,
"args": [ "args": [
"-l", "-l",
"${workspaceRoot}/.build/electron/Code - OSS.app/Contents/MacOS/Electron" "${workspaceFolder}/.build/electron/Code - OSS.app/Contents/MacOS/Electron"
], ],
"outFiles": [ "outFiles": [
"${cwd}/out/**/*.js" "${cwd}/out/**/*.js"
......
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
"lcov.watch": [ "lcov.watch": [
{ {
"pattern": "**/*.test.js", "pattern": "**/*.test.js",
"command": "${workspaceRoot}/scripts/test.sh --coverage --run ${file}", "command": "${workspaceFolder}/scripts/test.sh --coverage --run ${file}",
"windows": { "windows": {
"command": "${workspaceRoot}\\scripts\\test.bat --coverage --run ${file}" "command": "${workspaceFolder}\\scripts\\test.bat --coverage --run ${file}"
} }
} }
] ]
......
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
"request": "launch", "request": "launch",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": [ "args": [
"--extensionDevelopmentPath=${workspaceRoot}" "--extensionDevelopmentPath=${workspaceFolder}"
], ],
"stopOnEntry": false, "stopOnEntry": false,
"sourceMaps": true, "sourceMaps": true,
"outFiles": ["${workspaceRoot}/client/out/**/*.js"], "outFiles": ["${workspaceFolder}/client/out/**/*.js"],
"preLaunchTask": "npm" "preLaunchTask": "npm"
}, },
{ {
...@@ -19,10 +19,10 @@ ...@@ -19,10 +19,10 @@
"type": "extensionHost", "type": "extensionHost",
"request": "launch", "request": "launch",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/client/out/test" ], "args": ["--extensionDevelopmentPath=${workspaceFolder}", "--extensionTestsPath=${workspaceFolder}/client/out/test" ],
"stopOnEntry": false, "stopOnEntry": false,
"sourceMaps": true, "sourceMaps": true,
"outFiles": ["${workspaceRoot}/client/out/test/**/*.js"], "outFiles": ["${workspaceFolder}/client/out/test/**/*.js"],
"preLaunchTask": "npm" "preLaunchTask": "npm"
}, },
{ {
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
"protocol": "legacy", "protocol": "legacy",
"port": 6004, "port": 6004,
"sourceMaps": true, "sourceMaps": true,
"outFiles": ["${workspaceRoot}/server/out/**/*.js"] "outFiles": ["${workspaceFolder}/server/out/**/*.js"]
} }
] ]
} }
\ No newline at end of file
// Available variables which can be used inside of strings. // Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team // ${workspaceFolder}: the root folder of the team
// ${file}: the current opened file // ${file}: the current opened file
// ${fileBasename}: the current opened file's basename // ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname // ${fileDirname}: the current opened file's dirname
......
...@@ -8,25 +8,25 @@ ...@@ -8,25 +8,25 @@
"request": "attach", "request": "attach",
"port": 6004, "port": 6004,
"sourceMaps": true, "sourceMaps": true,
"outDir": "${workspaceRoot}/out" "outDir": "${workspaceFolder}/out"
}, },
{ {
"name": "Unit Tests", "name": "Unit Tests",
"type": "node", "type": "node",
"request": "launch", "request": "launch",
"program": "${workspaceRoot}/../../../node_modules/mocha/bin/_mocha", "program": "${workspaceFolder}/../../../node_modules/mocha/bin/_mocha",
"stopOnEntry": false, "stopOnEntry": false,
"args": [ "args": [
"--timeout", "--timeout",
"999999", "999999",
"--colors" "--colors"
], ],
"cwd": "${workspaceRoot}", "cwd": "${workspaceFolder}",
"runtimeExecutable": null, "runtimeExecutable": null,
"runtimeArgs": [], "runtimeArgs": [],
"env": {}, "env": {},
"sourceMaps": true, "sourceMaps": true,
"outDir": "${workspaceRoot}/out" "outDir": "${workspaceFolder}/out"
} }
] ]
} }
\ No newline at end of file
...@@ -10,11 +10,11 @@ ...@@ -10,11 +10,11 @@
"name": "Launch Extension", "name": "Launch Extension",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": [ "args": [
"--extensionDevelopmentPath=${workspaceRoot}" "--extensionDevelopmentPath=${workspaceFolder}"
], ],
"sourceMaps": true, "sourceMaps": true,
"outFiles": [ "outFiles": [
"${workspaceRoot}/out/**/*.js" "${workspaceFolder}/out/**/*.js"
] ]
} }
] ]
......
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
"request": "launch", "request": "launch",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": [ "args": [
"--extensionDevelopmentPath=${workspaceRoot}" "--extensionDevelopmentPath=${workspaceFolder}"
], ],
"stopOnEntry": false, "stopOnEntry": false,
"sourceMaps": true, "sourceMaps": true,
"outFiles": ["${workspaceRoot}/client/out/**/*.js"], "outFiles": ["${workspaceFolder}/client/out/**/*.js"],
"preLaunchTask": "npm" "preLaunchTask": "npm"
}, },
{ {
...@@ -19,10 +19,10 @@ ...@@ -19,10 +19,10 @@
"type": "extensionHost", "type": "extensionHost",
"request": "launch", "request": "launch",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/client/out/test" ], "args": ["--extensionDevelopmentPath=${workspaceFolder}", "--extensionTestsPath=${workspaceFolder}/client/out/test" ],
"stopOnEntry": false, "stopOnEntry": false,
"sourceMaps": true, "sourceMaps": true,
"outFiles": ["${workspaceRoot}/client/out/test/**/*.js"], "outFiles": ["${workspaceFolder}/client/out/test/**/*.js"],
"preLaunchTask": "npm" "preLaunchTask": "npm"
}, },
{ {
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
"port": 6004, "port": 6004,
"protocol": "legacy", "protocol": "legacy",
"sourceMaps": true, "sourceMaps": true,
"outFiles": ["${workspaceRoot}/server/out/**/*.js"] "outFiles": ["${workspaceFolder}/server/out/**/*.js"]
} }
] ]
} }
\ No newline at end of file
// Available variables which can be used inside of strings. // Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team // ${workspaceFolder}: the root folder of the team
// ${file}: the current opened file // ${file}: the current opened file
// ${fileBasename}: the current opened file's basename // ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname // ${fileDirname}: the current opened file's dirname
......
...@@ -8,25 +8,25 @@ ...@@ -8,25 +8,25 @@
"request": "attach", "request": "attach",
"port": 6004, "port": 6004,
"sourceMaps": true, "sourceMaps": true,
"outDir": "${workspaceRoot}/out" "outDir": "${workspaceFolder}/out"
}, },
{ {
"name": "Unit Tests", "name": "Unit Tests",
"type": "node", "type": "node",
"request": "launch", "request": "launch",
"program": "${workspaceRoot}/../../../node_modules/mocha/bin/_mocha", "program": "${workspaceFolder}/../../../node_modules/mocha/bin/_mocha",
"stopOnEntry": false, "stopOnEntry": false,
"args": [ "args": [
"--timeout", "--timeout",
"999999", "999999",
"--colors" "--colors"
], ],
"cwd": "${workspaceRoot}", "cwd": "${workspaceFolder}",
"runtimeExecutable": null, "runtimeExecutable": null,
"runtimeArgs": [], "runtimeArgs": [],
"env": {}, "env": {},
"sourceMaps": true, "sourceMaps": true,
"outDir": "${workspaceRoot}/out" "outDir": "${workspaceFolder}/out"
} }
] ]
} }
\ No newline at end of file
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
"request": "launch", "request": "launch",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": [ "args": [
"--extensionDevelopmentPath=${workspaceRoot}" "--extensionDevelopmentPath=${workspaceFolder}"
], ],
"stopOnEntry": false, "stopOnEntry": false,
"sourceMaps": true, "sourceMaps": true,
"outDir": "${workspaceRoot}/out", "outDir": "${workspaceFolder}/out",
"preLaunchTask": "npm" "preLaunchTask": "npm"
}, },
{ {
...@@ -19,10 +19,10 @@ ...@@ -19,10 +19,10 @@
"type": "extensionHost", "type": "extensionHost",
"request": "launch", "request": "launch",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/test" ], "args": ["--extensionDevelopmentPath=${workspaceFolder}", "--extensionTestsPath=${workspaceFolder}/out/test" ],
"stopOnEntry": false, "stopOnEntry": false,
"sourceMaps": true, "sourceMaps": true,
"outDir": "${workspaceRoot}/out/test", "outDir": "${workspaceFolder}/out/test",
"preLaunchTask": "npm" "preLaunchTask": "npm"
} }
] ]
......
// Available variables which can be used inside of strings. // Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team // ${workspaceFolder}: the root folder of the team
// ${file}: the current opened file // ${file}: the current opened file
// ${fileBasename}: the current opened file's basename // ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname // ${fileDirname}: the current opened file's dirname
......
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
"request": "launch", "request": "launch",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": [ "args": [
"--extensionDevelopmentPath=${workspaceRoot}" "--extensionDevelopmentPath=${workspaceFolder}"
], ],
"stopOnEntry": false, "stopOnEntry": false,
"sourceMaps": true, "sourceMaps": true,
"outFiles": ["${workspaceRoot}/client/out"], "outFiles": ["${workspaceFolder}/client/out"],
"preLaunchTask": "npm" "preLaunchTask": "npm"
}, },
{ {
...@@ -19,10 +19,10 @@ ...@@ -19,10 +19,10 @@
"type": "extensionHost", "type": "extensionHost",
"request": "launch", "request": "launch",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/client/out/test" ], "args": ["--extensionDevelopmentPath=${workspaceFolder}", "--extensionTestsPath=${workspaceFolder}/client/out/test" ],
"stopOnEntry": false, "stopOnEntry": false,
"sourceMaps": true, "sourceMaps": true,
"outFiles": ["${workspaceRoot}/client/out/test"], "outFiles": ["${workspaceFolder}/client/out/test"],
"preLaunchTask": "npm" "preLaunchTask": "npm"
}, },
{ {
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
"request": "attach", "request": "attach",
"port": 6004, "port": 6004,
"sourceMaps": true, "sourceMaps": true,
"outFiles": ["${workspaceRoot}/server/out"] "outFiles": ["${workspaceFolder}/server/out"]
} }
] ]
......
// Available variables which can be used inside of strings. // Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team // ${workspaceFolder}: the root folder of the team
// ${file}: the current opened file // ${file}: the current opened file
// ${fileBasename}: the current opened file's basename // ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname // ${fileDirname}: the current opened file's dirname
......
...@@ -8,25 +8,25 @@ ...@@ -8,25 +8,25 @@
"request": "attach", "request": "attach",
"port": 6004, "port": 6004,
"sourceMaps": true, "sourceMaps": true,
"outDir": "${workspaceRoot}/out" "outDir": "${workspaceFolder}/out"
}, },
{ {
"name": "Unit Tests", "name": "Unit Tests",
"type": "node", "type": "node",
"request": "launch", "request": "launch",
"program": "${workspaceRoot}/../../../node_modules/mocha/bin/_mocha", "program": "${workspaceFolder}/../../../node_modules/mocha/bin/_mocha",
"stopOnEntry": false, "stopOnEntry": false,
"args": [ "args": [
"--timeout", "--timeout",
"999999", "999999",
"--colors" "--colors"
], ],
"cwd": "${workspaceRoot}", "cwd": "${workspaceFolder}",
"runtimeExecutable": null, "runtimeExecutable": null,
"runtimeArgs": [], "runtimeArgs": [],
"env": {}, "env": {},
"sourceMaps": true, "sourceMaps": true,
"outDir": "${workspaceRoot}/out" "outDir": "${workspaceFolder}/out"
} }
] ]
} }
\ No newline at end of file
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
"request": "launch", "request": "launch",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": [ "args": [
"--extensionDevelopmentPath=${workspaceRoot}" "--extensionDevelopmentPath=${workspaceFolder}"
], ],
"stopOnEntry": false, "stopOnEntry": false,
"sourceMaps": true, "sourceMaps": true,
"outFiles": ["${workspaceRoot}/client/out/**/*.js"], "outFiles": ["${workspaceFolder}/client/out/**/*.js"],
"preLaunchTask": "npm" "preLaunchTask": "npm"
} }
] ]
......
...@@ -7,12 +7,12 @@ ...@@ -7,12 +7,12 @@
"request": "launch", "request": "launch",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": [ "args": [
"--extensionDevelopmentPath=${workspaceRoot}" "--extensionDevelopmentPath=${workspaceFolder}"
], ],
"stopOnEntry": false, "stopOnEntry": false,
"sourceMaps": true, "sourceMaps": true,
"outDir": "${workspaceRoot}/out", "outDir": "${workspaceFolder}/out",
"preLaunchTask": "npm" "preLaunchTask": "npm"
} }
] ]
} }
\ No newline at end of file
// Available variables which can be used inside of strings. // Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team // ${workspaceFolder}: the root folder of the team
// ${file}: the current opened file // ${file}: the current opened file
// ${fileBasename}: the current opened file's basename // ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname // ${fileDirname}: the current opened file's dirname
......
...@@ -7,12 +7,12 @@ ...@@ -7,12 +7,12 @@
"request": "launch", "request": "launch",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": [ "args": [
"--extensionDevelopmentPath=${workspaceRoot}" "--extensionDevelopmentPath=${workspaceFolder}"
], ],
"stopOnEntry": false, "stopOnEntry": false,
"sourceMaps": true, "sourceMaps": true,
"outDir": "${workspaceRoot}/out", "outDir": "${workspaceFolder}/out",
"preLaunchTask": "npm" "preLaunchTask": "npm"
} }
] ]
} }
\ No newline at end of file
// Available variables which can be used inside of strings. // Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team // ${workspaceFolder}: the root folder of the team
// ${file}: the current opened file // ${file}: the current opened file
// ${fileBasename}: the current opened file's basename // ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname // ${fileDirname}: the current opened file's dirname
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"type": "extensionHost", "type": "extensionHost",
"request": "launch", "request": "launch",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": ["${workspaceRoot}/../../", "${workspaceRoot}/testWorkspace", "--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out" ], "args": ["${workspaceFolder}/../../", "${workspaceFolder}/testWorkspace", "--extensionDevelopmentPath=${workspaceFolder}", "--extensionTestsPath=${workspaceFolder}/out" ],
"stopOnEntry": false, "stopOnEntry": false,
"sourceMaps": true, "sourceMaps": true,
"outDir": "out", "outDir": "out",
......
// Available variables which can be used inside of strings. // Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team // ${workspaceFolder}: the root folder of the team
// ${file}: the current opened file // ${file}: the current opened file
// ${fileBasename}: the current opened file's basename // ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname // ${fileDirname}: the current opened file's dirname
......
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
"type": "extensionHost", "type": "extensionHost",
"request": "launch", "request": "launch",
"runtimeExecutable": "${execPath}", "runtimeExecutable": "${execPath}",
"args": ["${workspaceRoot}/../../", "${workspaceRoot}/test", "--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out" ], "args": ["${workspaceFolder}/../../", "${workspaceFolder}/test", "--extensionDevelopmentPath=${workspaceFolder}", "--extensionTestsPath=${workspaceFolder}/out" ],
"stopOnEntry": false, "stopOnEntry": false,
"sourceMaps": true, "sourceMaps": true,
"outDir": "${workspaceRoot}/out", "outDir": "${workspaceFolder}/out",
"preLaunchTask": "npm" "preLaunchTask": "npm"
} }
] ]
......
// Available variables which can be used inside of strings. // Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team // ${workspaceFolder}: the root folder of the team
// ${file}: the current opened file // ${file}: the current opened file
// ${relativeFile}: the current opened file relative to cwd // ${relativeFile}: the current opened file relative to cwd
// ${fileBasename}: the current opened file's basename // ${fileBasename}: the current opened file's basename
......
...@@ -5689,7 +5689,7 @@ declare module 'vscode' { ...@@ -5689,7 +5689,7 @@ declare module 'vscode' {
* or by directly passing a [DebugConfiguration](#DebugConfiguration). * or by directly passing a [DebugConfiguration](#DebugConfiguration).
* The named configurations are looked up in '.vscode/launch.json' found in the given folder. * The named configurations are looked up in '.vscode/launch.json' found in the given folder.
* Before debugging starts, all unsaved files are saved and the launch configurations are brought up-to-date. * Before debugging starts, all unsaved files are saved and the launch configurations are brought up-to-date.
* Folder specific variables used in the configuration (e.g. '${workspaceRoot}') are resolved against the given folder. * Folder specific variables used in the configuration (e.g. '${workspaceFolder}') are resolved against the given folder.
* @param folder The [workspace folder](#WorkspaceFolder) for looking up named configurations and resolving variables or `undefined` for a non-folder setup. * @param folder The [workspace folder](#WorkspaceFolder) for looking up named configurations and resolving variables or `undefined` for a non-folder setup.
* @param nameOrConfiguration Either the name of a debug or compound configuration or a [DebugConfiguration](#DebugConfiguration) object. * @param nameOrConfiguration Either the name of a debug or compound configuration or a [DebugConfiguration](#DebugConfiguration) object.
* @return A thenable that resolves when debugging could be successfully started. * @return A thenable that resolves when debugging could be successfully started.
......
...@@ -118,7 +118,7 @@ namespace FileLocation { ...@@ -118,7 +118,7 @@ namespace FileLocation {
case types.FileLocationKind.Absolute: case types.FileLocationKind.Absolute:
return { kind: Problems.FileLocationKind.Absolute }; return { kind: Problems.FileLocationKind.Absolute };
case types.FileLocationKind.Relative: case types.FileLocationKind.Relative:
return { kind: Problems.FileLocationKind.Relative, prefix: '${workspaceRoot}' }; return { kind: Problems.FileLocationKind.Relative, prefix: '${workspaceFolder}' };
} }
return { kind: Problems.FileLocationKind.Auto }; return { kind: Problems.FileLocationKind.Auto };
} }
......
...@@ -16,7 +16,7 @@ import { LanguageId, LanguageIdentifier } from 'vs/editor/common/modes'; ...@@ -16,7 +16,7 @@ import { LanguageId, LanguageIdentifier } from 'vs/editor/common/modes';
// "name": "Stacks Tests", // "name": "Stacks Tests",
// "type": "node", // "type": "node",
// "request": "launch", // "request": "launch",
// "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", // "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
// "stopOnEntry": false, // "stopOnEntry": false,
// "args": [ // "args": [
// "--timeout", // "--timeout",
......
...@@ -42,9 +42,9 @@ suite('Configuration Resolver Service', () => { ...@@ -42,9 +42,9 @@ suite('Configuration Resolver Service', () => {
test('substitute one', () => { test('substitute one', () => {
if (platform.isWindows) { if (platform.isWindows) {
assert.strictEqual(configurationResolverService.resolve(workspace, 'abc ${workspaceRoot} xyz'), 'abc \\VSCode\\workspaceLocation xyz'); assert.strictEqual(configurationResolverService.resolve(workspace, 'abc ${workspaceFolder} xyz'), 'abc \\VSCode\\workspaceLocation xyz');
} else { } else {
assert.strictEqual(configurationResolverService.resolve(workspace, 'abc ${workspaceRoot} xyz'), 'abc /VSCode/workspaceLocation xyz'); assert.strictEqual(configurationResolverService.resolve(workspace, 'abc ${workspaceFolder} xyz'), 'abc /VSCode/workspaceLocation xyz');
} }
}); });
...@@ -58,25 +58,25 @@ suite('Configuration Resolver Service', () => { ...@@ -58,25 +58,25 @@ suite('Configuration Resolver Service', () => {
test('substitute many', () => { test('substitute many', () => {
if (platform.isWindows) { if (platform.isWindows) {
assert.strictEqual(configurationResolverService.resolve(workspace, '${workspaceRoot} - ${workspaceRoot}'), '\\VSCode\\workspaceLocation - \\VSCode\\workspaceLocation'); assert.strictEqual(configurationResolverService.resolve(workspace, '${workspaceFolder} - ${workspaceFolder}'), '\\VSCode\\workspaceLocation - \\VSCode\\workspaceLocation');
} else { } else {
assert.strictEqual(configurationResolverService.resolve(workspace, '${workspaceRoot} - ${workspaceRoot}'), '/VSCode/workspaceLocation - /VSCode/workspaceLocation'); assert.strictEqual(configurationResolverService.resolve(workspace, '${workspaceFolder} - ${workspaceFolder}'), '/VSCode/workspaceLocation - /VSCode/workspaceLocation');
} }
}); });
test('substitute one env variable', () => { test('substitute one env variable', () => {
if (platform.isWindows) { if (platform.isWindows) {
assert.strictEqual(configurationResolverService.resolve(workspace, 'abc ${workspaceRoot} ${env:key1} xyz'), 'abc \\VSCode\\workspaceLocation Value for Key1 xyz'); assert.strictEqual(configurationResolverService.resolve(workspace, 'abc ${workspaceFolder} ${env:key1} xyz'), 'abc \\VSCode\\workspaceLocation Value for Key1 xyz');
} else { } else {
assert.strictEqual(configurationResolverService.resolve(workspace, 'abc ${workspaceRoot} ${env:key1} xyz'), 'abc /VSCode/workspaceLocation Value for Key1 xyz'); assert.strictEqual(configurationResolverService.resolve(workspace, 'abc ${workspaceFolder} ${env:key1} xyz'), 'abc /VSCode/workspaceLocation Value for Key1 xyz');
} }
}); });
test('substitute many env variable', () => { test('substitute many env variable', () => {
if (platform.isWindows) { if (platform.isWindows) {
assert.strictEqual(configurationResolverService.resolve(workspace, '${workspaceRoot} - ${workspaceRoot} ${env:key1} - ${env:key2}'), '\\VSCode\\workspaceLocation - \\VSCode\\workspaceLocation Value for Key1 - Value for Key2'); assert.strictEqual(configurationResolverService.resolve(workspace, '${workspaceFolder} - ${workspaceFolder} ${env:key1} - ${env:key2}'), '\\VSCode\\workspaceLocation - \\VSCode\\workspaceLocation Value for Key1 - Value for Key2');
} else { } else {
assert.strictEqual(configurationResolverService.resolve(workspace, '${workspaceRoot} - ${workspaceRoot} ${env:key1} - ${env:key2}'), '/VSCode/workspaceLocation - /VSCode/workspaceLocation Value for Key1 - Value for Key2'); assert.strictEqual(configurationResolverService.resolve(workspace, '${workspaceFolder} - ${workspaceFolder} ${env:key1} - ${env:key2}'), '/VSCode/workspaceLocation - /VSCode/workspaceLocation Value for Key1 - Value for Key2');
} }
}); });
...@@ -118,7 +118,7 @@ suite('Configuration Resolver Service', () => { ...@@ -118,7 +118,7 @@ suite('Configuration Resolver Service', () => {
let configurationService: IConfigurationService; let configurationService: IConfigurationService;
configurationService = new MockConfigurationService({ configurationService = new MockConfigurationService({
editor: { editor: {
fontFamily: 'foo ${workspaceRoot} ${config:terminal.integrated.fontFamily}' fontFamily: 'foo ${workspaceFolder} ${config:terminal.integrated.fontFamily}'
}, },
terminal: { terminal: {
integrated: { integrated: {
...@@ -139,7 +139,7 @@ suite('Configuration Resolver Service', () => { ...@@ -139,7 +139,7 @@ suite('Configuration Resolver Service', () => {
let configurationService: IConfigurationService; let configurationService: IConfigurationService;
configurationService = new MockConfigurationService({ configurationService = new MockConfigurationService({
editor: { editor: {
fontFamily: 'foo ${workspaceRoot} ${config:terminal.integrated.fontFamily} ${config:editor.fontFamily}' fontFamily: 'foo ${workspaceFolder} ${config:terminal.integrated.fontFamily} ${config:editor.fontFamily}'
}, },
terminal: { terminal: {
integrated: { integrated: {
...@@ -171,9 +171,9 @@ suite('Configuration Resolver Service', () => { ...@@ -171,9 +171,9 @@ suite('Configuration Resolver Service', () => {
let service = new ConfigurationResolverService(envVariables, new TestEditorService(), TestEnvironmentService, configurationService, mockCommandService); let service = new ConfigurationResolverService(envVariables, new TestEditorService(), TestEnvironmentService, configurationService, mockCommandService);
if (platform.isWindows) { if (platform.isWindows) {
assert.strictEqual(service.resolve(workspace, 'abc ${config:editor.fontFamily} ${workspaceRoot} ${env:key1} xyz'), 'abc foo \\VSCode\\workspaceLocation Value for Key1 xyz'); assert.strictEqual(service.resolve(workspace, 'abc ${config:editor.fontFamily} ${workspaceFolder} ${env:key1} xyz'), 'abc foo \\VSCode\\workspaceLocation Value for Key1 xyz');
} else { } else {
assert.strictEqual(service.resolve(workspace, 'abc ${config:editor.fontFamily} ${workspaceRoot} ${env:key1} xyz'), 'abc foo /VSCode/workspaceLocation Value for Key1 xyz'); assert.strictEqual(service.resolve(workspace, 'abc ${config:editor.fontFamily} ${workspaceFolder} ${env:key1} xyz'), 'abc foo /VSCode/workspaceLocation Value for Key1 xyz');
} }
}); });
...@@ -192,9 +192,9 @@ suite('Configuration Resolver Service', () => { ...@@ -192,9 +192,9 @@ suite('Configuration Resolver Service', () => {
let service = new ConfigurationResolverService(envVariables, new TestEditorService(), TestEnvironmentService, configurationService, mockCommandService); let service = new ConfigurationResolverService(envVariables, new TestEditorService(), TestEnvironmentService, configurationService, mockCommandService);
if (platform.isWindows) { if (platform.isWindows) {
assert.strictEqual(service.resolve(workspace, '${config:editor.fontFamily} ${config:terminal.integrated.fontFamily} ${workspaceRoot} - ${workspaceRoot} ${env:key1} - ${env:key2}'), 'foo bar \\VSCode\\workspaceLocation - \\VSCode\\workspaceLocation Value for Key1 - Value for Key2'); assert.strictEqual(service.resolve(workspace, '${config:editor.fontFamily} ${config:terminal.integrated.fontFamily} ${workspaceFolder} - ${workspaceFolder} ${env:key1} - ${env:key2}'), 'foo bar \\VSCode\\workspaceLocation - \\VSCode\\workspaceLocation Value for Key1 - Value for Key2');
} else { } else {
assert.strictEqual(service.resolve(workspace, '${config:editor.fontFamily} ${config:terminal.integrated.fontFamily} ${workspaceRoot} - ${workspaceRoot} ${env:key1} - ${env:key2}'), 'foo bar /VSCode/workspaceLocation - /VSCode/workspaceLocation Value for Key1 - Value for Key2'); assert.strictEqual(service.resolve(workspace, '${config:editor.fontFamily} ${config:terminal.integrated.fontFamily} ${workspaceFolder} - ${workspaceFolder} ${env:key1} - ${env:key2}'), 'foo bar /VSCode/workspaceLocation - /VSCode/workspaceLocation Value for Key1 - Value for Key2');
} }
}); });
......
...@@ -55,9 +55,9 @@ describe('Debug', () => { ...@@ -55,9 +55,9 @@ describe('Debug', () => {
assert.equal(json.configurations[0].request, 'launch'); assert.equal(json.configurations[0].request, 'launch');
assert.equal(json.configurations[0].type, 'node'); assert.equal(json.configurations[0].type, 'node');
if (process.platform === 'win32') { if (process.platform === 'win32') {
assert.equal(json.configurations[0].program, '${workspaceRoot}\\bin\\www'); assert.equal(json.configurations[0].program, '${workspaceFolder}\\bin\\www');
} else { } else {
assert.equal(json.configurations[0].program, '${workspaceRoot}/bin/www'); assert.equal(json.configurations[0].program, '${workspaceFolder}/bin/www');
} }
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册