Skip to content

Commit

Permalink
Quick export fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TIny-Hacker committed Apr 11, 2024
1 parent 2d8399a commit d742e17
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to the "ti-basic" extension will be documented in this file.

## [1.0.2] - 2024-04-11

### Fixed

- Issue with exporting on Windows I missed has been fixed.

## [1.0.1] - 2024-04-11

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ti-basic",
"displayName": "TI-BASIC",
"version": "1.0.1",
"version": "1.0.2",
"description": "VS Code language support for (e)Z80 TI-BASIC",
"author": {
"name": "TIny_Hacker",
Expand Down
2 changes: 2 additions & 0 deletions src/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ function activate(context) {
source += lines[i].trimStart() + '\r\n';
}

fs.writeFileSync(fileUri.fsPath, '');

prgm = lib.TIVarFile.createNew(lib.TIVarType.createFromName("Program"), parsed.name, lib.TIModel.createFromName(type));
prgm.setContentFromString(source);
prgm.saveVarToFile('/local' + fileUri.fsPath.replace(/^[a-zA-Z]:/, '').split(path.sep).join(path.posix.sep));
Expand Down

0 comments on commit d742e17

Please sign in to comment.