editor icon indicating copy to clipboard operation
editor copied to clipboard

Rewrite Text Editor

Open outercloudstudio opened this issue 1 year ago • 8 comments

### Tasks
- [x] View Documentation
- [x] Got to Definition
- [x] Go to Symbol
- [x] Change all Occurrences
- [x] Format Document
- [x] Copy / Cut / Paste
- [x] Syntax Highlighting
- [x] JSON Auto Completions
- [ ] Mc Function Auto Completions
- [ ] Molang Auto Completions
- [x] JS Types
- [x] Lang Auto Completions

outercloudstudio avatar Mar 15 '24 06:03 outercloudstudio

I need to actually test the theory but I believe there will be issues once we try to implement two windows side by side because when we apply schemas for a file it clears all the other schemas. We'll need to track which schemas go to which file. We also need to track which schemas are in use so we can update those if something like the index updates while using that schema.

outercloudstudio avatar Mar 28 '24 01:03 outercloudstudio

I need to actually test the theory but I believe there will be issues once we try to implement two windows side by side because when we apply schemas for a file it clears all the other schemas. We'll need to track which schemas go to which file. We also need to track which schemas are in use so we can update those if something like the index updates while using that schema.

Turns out I already accounted for this so no need to worry about this.

outercloudstudio avatar Mar 29 '24 20:03 outercloudstudio

I also discovered that a lightning cache script and schema script can write to the same file. I'll have to discuss this with @ExDrill to see if we should support this or if this should be not intended.

outercloudstudio avatar Mar 29 '24 20:03 outercloudstudio

I also discovered that a lightning cache script and schema script can write to the same file. I'll have to discuss this with @ExDrill to see if we should support this or if this should be not intended.

After discussion we decided that this is intended.

outercloudstudio avatar Mar 29 '24 20:03 outercloudstudio

Something that remains to do is have the schema scripts that reference file content react to the file changing. I think that this will just be done with a file system events instead of rerunning the schema scripts for model changes.

outercloudstudio avatar Mar 29 '24 20:03 outercloudstudio

I also discovered that a lightning cache script and schema script can write to the same file. I'll have to discuss this with @ExDrill to see if we should support this or if this should be not intended.

After further investigation I've discovered that schema scripts overwrite the schemas generated from lightning cache.

outercloudstudio avatar Mar 29 '24 21:03 outercloudstudio

Something that remains to do is have the schema scripts that reference file content react to the file changing. I think that this will just be done with a file system events instead of rerunning the schema scripts for model changes.

This now works.

outercloudstudio avatar Mar 29 '24 21:03 outercloudstudio

Remember this for the command language: https://github.com/bridge-core/editor-packages/issues/51

outercloudstudio avatar Apr 01 '24 18:04 outercloudstudio

https://github.com/Microsoft/monaco-editor/issues/918#issuecomment-398343425

outercloudstudio avatar Jun 06 '24 22:06 outercloudstudio