mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2025-07-23 17:29:51 +02:00
Antedit 2.0.1: bug fix & imporvement
This commit is contained in:
@ -6,6 +6,7 @@ The editor functionality can be extended by its extension mechanism.
|
||||
Extension can be developed/released/isntalled by the editor itself.
|
||||
|
||||
### Change logs
|
||||
- 0.2.1-b: Add open file to right, editor actions are only attached to code editor
|
||||
- 0.2.0-b: Support diff mode in editor + fix new Monaco version compatible bug
|
||||
- 0.1.17-b: Fix extension keybinding bug with the new monaco editor
|
||||
- 0.1.16-b: use the new version of monaco editor
|
||||
|
@ -6,6 +6,7 @@ The editor functionality can be extended by its extension mechanism.
|
||||
Extension can be developed/released/isntalled by the editor itself.
|
||||
|
||||
### Change logs
|
||||
- 0.2.1-b: Add open file to right, editor actions are only attached to code editor
|
||||
- 0.2.0-b: Support diff mode in editor + fix new Monaco version compatible bug
|
||||
- 0.1.17-b: Fix extension keybinding bug with the new monaco editor
|
||||
- 0.1.16-b: use the new version of monaco editor
|
||||
|
File diff suppressed because one or more lines are too long
@ -7,7 +7,7 @@
|
||||
"author": "Xuan Sang LE",
|
||||
"email": "mrsang@iohub.dev"
|
||||
},
|
||||
"version": "0.2.0-b",
|
||||
"version": "0.2.1-b",
|
||||
"category": "Development",
|
||||
"iconclass": "bi bi-journal-code",
|
||||
"mimes": [
|
||||
|
Binary file not shown.
@ -7,7 +7,7 @@
|
||||
"author": "Xuan Sang LE",
|
||||
"email": "mrsang@iohub.dev"
|
||||
},
|
||||
"version": "0.2.0-b",
|
||||
"version": "0.2.1-b",
|
||||
"category": "Development",
|
||||
"iconclass": "bi bi-journal-code",
|
||||
"mimes": [
|
||||
|
@ -378,7 +378,7 @@ namespace OS {
|
||||
}
|
||||
|
||||
getEditor(): any {
|
||||
return this.editor;
|
||||
return this._code_editor;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -457,6 +457,7 @@ namespace OS {
|
||||
{
|
||||
items.push( { text: "__(Select for compare)", id: "diff-org" });
|
||||
items.push( { text: "__(Compare with selected)", id: "diff-mod" });
|
||||
items.push( { text: "__(Open to right)", id: "open-right" });
|
||||
}
|
||||
m.items = items;
|
||||
m.onmenuselect = (e) => {
|
||||
@ -987,6 +988,14 @@ namespace OS {
|
||||
this.diff_buffer[1] = file.path.asFileHandle() as EditorFileHandle;
|
||||
this.openDiff(this.diff_buffer);
|
||||
break;
|
||||
case "open-right":
|
||||
if(!file || file.type === "dir") return;
|
||||
if(this.split_mode == false)
|
||||
{
|
||||
this.toggleSplitMode();
|
||||
}
|
||||
this.eum.editors[1].openFile(file.path.asFileHandle() as EditorFileHandle);
|
||||
break;
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user