Skip to content

Commit

Permalink
Version 9.4.9
Browse files Browse the repository at this point in the history
  • Loading branch information
franneck94 committed Aug 23, 2024
1 parent ba8462b commit 7f7a3d4
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# C/C++ Runner Change Log

## Version 9.4.9: Aug 23, 2024

- **Info**: Fixed rel. paths are replaced in local settings on start up
- **Info**: Partially fixed passing strings as cmd args to exe

## Version 9.4.8: May 11, 2024

- **Info**: Fixed infinite loop of settings.json update
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "c-cpp-runner",
"displayName": "C/C++ Runner",
"description": "🚀 Compile, run and debug single or multiple C/C++ files with ease. 🚀",
"version": "9.4.8",
"version": "9.4.9",
"publisher": "franneck94",
"license": "MIT",
"icon": "icon.png",
Expand All @@ -11,7 +11,7 @@
"theme": "dark"
},
"engines": {
"vscode": "^1.85.0"
"vscode": "^1.90.0"
},
"categories": [
"Programming Languages",
Expand Down
2 changes: 1 addition & 1 deletion src/executor/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export async function executeRunTask(
}

if (argumentsString) {
commandLine += ` ${argumentsString.replace(/"/g, '')}`;
commandLine += ` ${argumentsString}`;
}

if (!commandLine) return;
Expand Down
10 changes: 9 additions & 1 deletion src/utils/fileUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ export function pathExists(filepath: string) {
return true;
}

export function pathIsAbsolute(filepath: string) {
return path.isAbsolute(filepath);
}

export function pathIsRelative(filepath: string) {
return !pathIsAbsolute(filepath);
}

export function isSourceFile(fileExt: string) {
const fileExtLower = fileExt.toLowerCase();

Expand Down Expand Up @@ -211,7 +219,7 @@ export function localSettingExist(key: string, jsonData: JsonSettings) {

if (!commandPath) return false;

if (!pathExists(commandPath)) return false;
if (pathIsAbsolute(commandPath) && !pathExists(commandPath)) return false;

return true;
}
Expand Down

0 comments on commit 7f7a3d4

Please sign in to comment.