Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9d4238b

Browse files
authored
Fix bug with cwd in build tasks. (microsoft#6954)
1 parent9ba19af commit9d4238b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎Extension/src/Debugger/configurationProvider.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class CppConfigurationProvider implements vscode.DebugConfigurationProvider {
190190
// This property will be removed before writing the DebugConfiguration in launch.json.
191191
newConfig.detail=task.detail ?task.detail :definition.command;
192192
constisCl:boolean=compilerName==="cl.exe";
193-
newConfig.cwd=isWindows&&!isCl&&!process.env.PATH?.includes(compilerPath) ?path.dirname(compilerPath) :"${workspaceFolder}";
193+
newConfig.cwd=isWindows&&!isCl&&!process.env.PATH?.includes(path.dirname(compilerPath)) ?path.dirname(compilerPath) :"${workspaceFolder}";
194194

195195
returnnewPromise<vscode.DebugConfiguration>(resolve=>{
196196
if(platform==="darwin"){

‎Extension/src/LanguageServer/cppBuildTaskProvider.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export class CppBuildTaskProvider implements TaskProvider {
169169
if(compilerArgs&&compilerArgs.length>0){
170170
args=args.concat(compilerArgs);
171171
}
172-
constcwd:string=isWindows&&!isCl&&!process.env.PATH?.includes(compilerPath) ?path.dirname(compilerPath) :"${workspaceFolder}";
172+
constcwd:string=isWindows&&!isCl&&!process.env.PATH?.includes(path.dirname(compilerPath)) ?path.dirname(compilerPath) :"${workspaceFolder}";
173173
constoptions:cp.ExecOptions|undefined={cwd:cwd};
174174
definition={
175175
type:CppBuildTaskProvider.CppBuildScriptType,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp