mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2025-07-24 01:39:59 +02:00
update monaco model and antedit
This commit is contained in:
@ -239,7 +239,7 @@ namespace OS {
|
||||
*/
|
||||
getEditorStatus(): GenericObject<any> {
|
||||
const pos = this.editor.getPosition();
|
||||
const mode = MonacoEditorModel.modes[this.editor.getModel().getModeId()];
|
||||
const mode = MonacoEditorModel.modes[this.editor.getModel().getLanguageId()];
|
||||
return {
|
||||
row: pos.lineNumber,
|
||||
column: pos.column,
|
||||
|
@ -455,7 +455,11 @@ namespace OS {
|
||||
this.bindKey("ALT-W", () => this.menuAction("saveas"));
|
||||
|
||||
this.fileview.ondragndrop = (e) => {
|
||||
const src = e.data.from.data.path.asFileHandle();
|
||||
if(!e.data.from || !e.data.to)
|
||||
{
|
||||
return;
|
||||
}
|
||||
const src = e.data.from[0].data.path.asFileHandle();
|
||||
const des = e.data.to.data.path;
|
||||
return src
|
||||
.move(`${des}/${src.basename}`)
|
||||
@ -465,12 +469,12 @@ namespace OS {
|
||||
if (p1.length < p2.length) {
|
||||
e.data.to.update(p1);
|
||||
(e.data
|
||||
.from as GUI.tag.TreeViewTag).parent.update(
|
||||
.from[0] as GUI.tag.TreeViewTag).parent.update(
|
||||
p2
|
||||
);
|
||||
} else {
|
||||
(e.data
|
||||
.from as GUI.tag.TreeViewTag).parent.update(
|
||||
.from[0] as GUI.tag.TreeViewTag).parent.update(
|
||||
p2
|
||||
);
|
||||
e.data.to.update(p1);
|
||||
|
Reference in New Issue
Block a user