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
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
helperdocuments (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
openedvia 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
fileTypeto the OpenEvent