JaroslavTulach commented on pull request #2646:
URL: https://github.com/apache/netbeans/pull/2646#issuecomment-756569316


   > I vaguely thought about some "Environment"-like strategy pluggable into 
Loaders or 
   > Filesystems that would define strategy for files/dobjs synchronization. 
   
   There is a clash between _global_/_environment_-like solution and _local_ 
solution. Only `DataEditorSupport` knows what it wants exactly to do when a 
file is changed. That's the _local_ knowledge. I am afraid you'd need many 
pluggable strategies for each individual case.
   
   The best way to implement the _global_/_environment_ solution is to replace 
current implementation of FileSystem (e.g. `masterfs`) with another one that 
would be tighter integrated with VSCode workspaces concept.
   
   > strategy for files/dobjs
   
   The important difference between `FileObject` and `DataObject` in this case 
is __identity__. When a `FileObject` is moved or renamed, it changes identity. 
Moving or renaming `DataObject` keeps the identity. To match VSCode/NetBeans 
concepts when renaming an open and modified editor, it would be desirable to 
keep `DataObject`'s identity - that's not the case right now.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to