mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	vscode: Fix error running build tasks
Running tasks without explicit "cwd" broke in VSCode 1.99.0.
This commit is contained in:
		| @@ -98,7 +98,7 @@ | |||||||
|   "tasks": [ |   "tasks": [ | ||||||
|     // * If you want to be prompted for the output directory each |     // * If you want to be prompted for the output directory each | ||||||
|     //   time you run a command, replace |     //   time you run a command, replace | ||||||
|     //     ${config:cef.outputDir[Debug|Release]} |     //     ${config:cef.outputDir[Debug|Release]Relative} | ||||||
|     //   with |     //   with | ||||||
|     //     ${input:cefOutputDir} |     //     ${input:cefOutputDir} | ||||||
|     // |     // | ||||||
| @@ -110,9 +110,12 @@ | |||||||
|       "command": "autoninja", |       "command": "autoninja", | ||||||
|       "args": [ |       "args": [ | ||||||
|         "-C", |         "-C", | ||||||
|         "${config:cef.outputDirDebug}", |         "${config:cef.outputDirDebugRelative}", | ||||||
|         "cef" |         "cef" | ||||||
|       ], |       ], | ||||||
|  |       "options": { | ||||||
|  |         "cwd": "${workspaceFolder}" | ||||||
|  |       }, | ||||||
|       "group": { |       "group": { | ||||||
|         "kind": "build", |         "kind": "build", | ||||||
|         "isDefault": true |         "isDefault": true | ||||||
| @@ -124,9 +127,12 @@ | |||||||
|       "command": "autoninja", |       "command": "autoninja", | ||||||
|       "args": [ |       "args": [ | ||||||
|         "-C", |         "-C", | ||||||
|         "${config:cef.outputDirRelease}", |         "${config:cef.outputDirReleaseRelative}", | ||||||
|         "cef" |         "cef" | ||||||
|       ], |       ], | ||||||
|  |       "options": { | ||||||
|  |         "cwd": "${workspaceFolder}" | ||||||
|  |       }, | ||||||
|       "group": { |       "group": { | ||||||
|         "kind": "build" |         "kind": "build" | ||||||
|       } |       } | ||||||
| @@ -136,18 +142,24 @@ | |||||||
|       "type": "shell", |       "type": "shell", | ||||||
|       "command": "compile_single_file", |       "command": "compile_single_file", | ||||||
|       "args": [ |       "args": [ | ||||||
|         "--build-dir=${config:cef.outputDirDebug}", |         "--build-dir=${config:cef.outputDirDebugRelative}", | ||||||
|         "--file-path=${file}" |         "--file-path=${file}" | ||||||
|       ] |       ], | ||||||
|  |       "options": { | ||||||
|  |         "cwd": "${workspaceFolder}" | ||||||
|  |       } | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "label": "4-build_current_file_release", |       "label": "4-build_current_file_release", | ||||||
|       "type": "shell", |       "type": "shell", | ||||||
|       "command": "compile_single_file", |       "command": "compile_single_file", | ||||||
|       "args": [ |       "args": [ | ||||||
|         "--build-dir=${config:cef.outputDirRelease}", |         "--build-dir=${config:cef.outputDirReleaseRelative}", | ||||||
|         "--file-path=${file}" |         "--file-path=${file}" | ||||||
|       ] |       ], | ||||||
|  |       "options": { | ||||||
|  |         "cwd": "${workspaceFolder}" | ||||||
|  |       } | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "label": "5-build_tests_debug", |       "label": "5-build_tests_debug", | ||||||
| @@ -155,10 +167,13 @@ | |||||||
|       "command": "autoninja", |       "command": "autoninja", | ||||||
|       "args": [ |       "args": [ | ||||||
|         "-C", |         "-C", | ||||||
|         "${config:cef.outputDirDebug}", |         "${config:cef.outputDirDebugRelative}", | ||||||
|         "ceftests", |         "ceftests", | ||||||
|         "libcef_static_unittests" |         "libcef_static_unittests" | ||||||
|       ] |       ], | ||||||
|  |       "options": { | ||||||
|  |         "cwd": "${workspaceFolder}" | ||||||
|  |       } | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "label": "6-build_tests_release", |       "label": "6-build_tests_release", | ||||||
| @@ -166,10 +181,13 @@ | |||||||
|       "command": "autoninja", |       "command": "autoninja", | ||||||
|       "args": [ |       "args": [ | ||||||
|         "-C", |         "-C", | ||||||
|         "${config:cef.outputDirRelease}", |         "${config:cef.outputDirReleaseRelative}", | ||||||
|         "ceftests", |         "ceftests", | ||||||
|         "libcef_static_unittests" |         "libcef_static_unittests" | ||||||
|       ] |       ], | ||||||
|  |       "options": { | ||||||
|  |         "cwd": "${workspaceFolder}" | ||||||
|  |       } | ||||||
|     } |     } | ||||||
|   ] |   ] | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user