Skip to content

Commit 6966421

Browse files
authored
Merge pull request #463 from github0null/dev
v3.24.1 revision
2 parents c970cd3 + cd0a5c5 commit 6966421

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ All notable version changes will be recorded in this file.
66

77
***
88

9-
### [v3.24.0] update
9+
### [v3.24.1] update
1010

1111
**New**:
1212
- `8051 Toolchain`: Support new SDCC + Binutils Toolchain for mcs51 https://github.com/github0null/sdcc-binutils-mcs51/blob/master/README_zh.md

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"homepage": "https://em-ide.com",
3737
"license": "MIT",
3838
"description": "A mcu development environment for 8051/AVR/STM8/Cortex-M/MIPS/RISC-V",
39-
"version": "3.24.0",
39+
"version": "3.24.1",
4040
"preview": false,
4141
"engines": {
4242
"vscode": "^1.67.0"

src/EIDETypeDefine.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,7 @@ export interface WorkspaceConfig {
15381538
export class WorkspaceConfiguration extends Configuration<WorkspaceConfig> {
15391539

15401540
isDelUnknownKeysWhenLoad = false;
1541-
isLoaded = false;
1541+
isLoadFailed = false;
15421542

15431543
protected readTypeFromFile(configFile: File): ProjectType | undefined {
15441544
return undefined;
@@ -1547,13 +1547,13 @@ export class WorkspaceConfiguration extends Configuration<WorkspaceConfig> {
15471547
protected Parse(jsonStr: string): WorkspaceConfig {
15481548
try {
15491549
const obj = <any>jsonc.parse(jsonStr);
1550-
this.isLoaded = true;
1550+
this.isLoadFailed = false;
15511551
return obj;
15521552
} catch (error) {
15531553
GlobalEvent.log_error(error);
15541554
GlobalEvent.emit('msg', newMessage('Warning',
15551555
view_str$prompt$loadws_cfg_failed.replace('{}', this.FILE_NAME)));
1556-
this.isLoaded = false;
1556+
this.isLoadFailed = true;
15571557
return this.GetDefault();
15581558
}
15591559
}
@@ -1565,10 +1565,8 @@ export class WorkspaceConfiguration extends Configuration<WorkspaceConfig> {
15651565
// workspace only can be force save, because user will modify this file,
15661566
// so we can not override it
15671567
Save(force?: boolean) {
1568-
if (this.isLoaded) {
1569-
if (force)
1570-
super.Save();
1571-
}
1568+
if (force || !this.isLoadFailed)
1569+
super.Save();
15721570
}
15731571

15741572
GetDefault(): WorkspaceConfig {

src/ResInstaller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,12 @@ export class ResInstaller {
199199

200200
const r_sdcc_mcs51: ToolPlatformInfo = {
201201
'win32': {
202-
url: 'https://github.com/github0null/sdcc-binutils-mcs51/releases/latest/download/sdcc-4.5.0-with-binutils-win32.zip',
202+
url: 'https://em-ide.com/resource/sdcc-4.5.0-with-binutils-win32.zip',
203203
zip_type: 'zip',
204204
bin_dir: 'sdcc-4.5.0-with-binutils/bin'
205205
},
206206
'linux': {
207-
url: 'https://github.com/github0null/sdcc-binutils-mcs51/releases/latest/download/sdcc-4.5.0-with-binutils-linux.tar.gz',
207+
url: 'https://em-ide.com/resource/sdcc-4.5.0-with-binutils-linux.tar.gz',
208208
zip_type: 'tar.gz',
209209
bin_dir: 'sdcc-4.5.0-with-binutils/bin'
210210
}

0 commit comments

Comments
 (0)