Wiring in majority of minimap-view

This commit is contained in:
2025-06-30 20:01:00 -05:00
parent 96eaa64b2a
commit 289c061ab6
6 changed files with 65 additions and 14 deletions

View File

@@ -106,6 +106,8 @@ export class EditorsComponent {
editorComponent.activeFile = file;
editor.setSession(file.session);
this.editorsService.miniMapView.editor.setSession(file.session);
this.editorsService.miniMapView.activeFile = file;
} else if (message.action === "close-tab") {
let file = this.filesService.get(message.filePath);
let editors = this.editorsService.getEditorsAsArray();
@@ -114,6 +116,10 @@ export class EditorsComponent {
let editorComponent = editors[i];
if (editorComponent.editor.session == file.session) {
editorComponent.newSession();
this.editorsService.miniMapView.editor.setSession(
editorComponent.editor.getSession()
);
this.editorsService.miniMapView.activeFile = null;
}
}