diff --git a/CHANGELOG.md b/CHANGELOG.md index 927209a..cd2ba87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package-lock.json b/package-lock.json index 9aec737..ae1afc9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ti-basic", - "version": "1.0.1", + "version": "1.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ti-basic", - "version": "1.0.1", + "version": "1.0.2", "license": "BSD-3-Clause", "engines": { "vscode": "^1.75.0" diff --git a/package.json b/package.json index c46a37a..33f3028 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/extension.js b/src/extension.js index 3f83606..0e43e0c 100644 --- a/src/extension.js +++ b/src/extension.js @@ -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));