Skip to content

Commit 042fb34

Browse files
committed
Fixed issue with already saved files not being able to be run/open
1 parent d537748 commit 042fb34

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ Documentation needs more info :)
148148

149149
## Release Notes
150150

151+
### 0.2.1
152+
153+
Fixed run and open if file was already saved.
154+
151155
### 0.2.0
152156

153157
Updated run and open commands to save the current document first.

src/extension.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ export function activate(context: vscode.ExtensionContext) {
2828
}
2929

3030
document.save().then(s => {
31-
if (!s) {
32-
vscode.window.showErrorMessage("Error: unable to save current document.");
33-
return;
34-
}
35-
3631
// Would be good to set the root path to the folder the file is in, but doesn't seem to be a commandline option?
3732
process.exec(`${picoPath} -run ${filename} ${additionalParams}`, (err, stdout, stderr) => {
3833
if (stdout && stdout.length > 0) {
@@ -75,11 +70,6 @@ export function activate(context: vscode.ExtensionContext) {
7570
}
7671

7772
document.save().then(s => {
78-
if (!s) {
79-
vscode.window.showErrorMessage("Error: unable to save current document.");
80-
return;
81-
}
82-
8373
// Would be good to set the root path to the folder the file is in, but doesn't seem to be a commandline option?
8474
process.exec(`${picoPath} ${filename} ${additionalParams}`, (err, stdout, stderr) => {
8575
if (stdout && stdout.length > 0) {

0 commit comments

Comments
 (0)