Skip to content

Commit

Permalink
add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
brianignacio5 committed Jan 13, 2025
1 parent abfd491 commit fbb8b69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/test/project.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ suite("Project tests", () => {
});

test("vscode folder creation", async () => {
console.log(`BLaBLABLA ${targetFolder}`);
await createVscodeFolder(Uri.file(targetFolder));
const resultFiles = await readdir(join(targetFolder, ".vscode"));
assert.equal(resultFiles.includes("c_cpp_properties.json"), true);
Expand Down
4 changes: 3 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ export async function createVscodeFolder(curWorkspaceFsPath: vscode.Uri) {
await copy(fSrcPath, fPath);
}
}
console.log(`BLaBLABLA createVscodeFolder ${curWorkspaceFsPath.fsPath}`);
await setCCppPropertiesJsonCompilerPath(curWorkspaceFsPath);
}

Expand All @@ -279,6 +280,8 @@ export async function setCCppPropertiesJsonCompilerPath(
? "${config:idf.toolsPathWin}"
: "${config:idf.toolsPath}";


console.log(`BLaBLABLA setCCppPropertiesJsonCompilerPath ${curWorkspaceFsPath.fsPath}`);
await updateCCppPropertiesJson(
curWorkspaceFsPath,
"compilerPath",
Expand Down Expand Up @@ -323,7 +326,6 @@ export async function updateCCppPropertiesJson(
cCppPropertiesJson.configurations.length
) {
cCppPropertiesJson.configurations[0][fieldToUpdate] = newFieldValue;
console.log(`BLaBLABLA ${cCppPropertiesJson}`);
await writeJSON(cCppPropertiesJsonPath, cCppPropertiesJson, {
spaces: vscode.workspace.getConfiguration().get("editor.tabSize") || 2,
});
Expand Down

0 comments on commit fbb8b69

Please sign in to comment.