Skip to content

Commit

Permalink
bump version to 1.13.x, fix for #1057
Browse files Browse the repository at this point in the history
  • Loading branch information
haneefdm committed Jan 15, 2025
1 parent acc4d67 commit 3e2ce81
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ChangeLog

# V1.12.2-pre1
# V1.13.0-pre1
* MAJOR Change. The `Restart` button functionality has been completely changed. This was not a stable function and VSCode kept changing its definition over the years multiple times. However they provide a default functionality, so the `Restart` button still works but very differently from our implementation. As of today, VSCode seems to do the following (and this extension is not involved)
* It Stops the current session. This means the current GDB and any GDB-server (openocd, stlink, etc. are also terminated)
* If then Starts a new session using the same configuration.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.12.2-pre1",
"version": "1.13.0-pre1",
"preview": false,
"activationEvents": [
"onDebugResolve:cortex-debug",
Expand Down
7 changes: 5 additions & 2 deletions src/frontend/configprovider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,12 @@ export class CortexDebugConfigurationProvider implements vscode.DebugConfigurati
config: vscode.DebugConfiguration,
token?: vscode.CancellationToken
): vscode.ProviderResult<vscode.DebugConfiguration> {
let cwd = config.cwd || folder.uri.fsPath;
if (!path.isAbsolute(cwd)) {
let cwd = config.cwd || folder?.uri.fsPath || '.';
const isAbsCwd = path.isAbsolute(cwd);
if (!isAbsCwd && folder) {
cwd = path.join(folder.uri.fsPath, cwd);
} else if (!isAbsCwd) {
cwd = path.resolve(cwd);
}
config.cwd = cwd;
if (!fs.existsSync(cwd)) {
Expand Down

0 comments on commit 3e2ce81

Please sign in to comment.