Skip to content

OpenEvent should be more robust #129

@pascalwilbrink

Description

@pascalwilbrink

As a Engineer
I want to be able to open non SCL files while keeping the current SCL file open

Background
If we want to make use of helper documents (Like XSD, NSD, NSDOC files), we need to make the OpenEvent more robust.
Currently, if the OpenEvent is emitted and is picked up by OpenSCD Core, The "docName" is set directly as the docName. This means that Docs that are opened via the OpenEvent, will always be the current document that is being edited. This is a side effect that causes problems.

For helper Files, this should not be the case.

We can have multiple solutions for this

  • Split up Opening and Editing into 2 events
  • Add a flag to the OpenEvent
  • Add a fileType to the OpenEvent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions