-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add obsidian-code-files #1805
Conversation
Hello!I found the following issues in your plugin submission Errors: ❌ You modified files other than Warnings: This check was done automatically. Do NOT open a new PR for re-validation. Instead, to trigger this check again, make a change to your PR and wait a few minutes, or close and re-open it. |
Hello!I found the following issues in your plugin submission Errors: ❌ You modified files other than This check was done automatically. Do NOT open a new PR for re-validation. Instead, to trigger this check again, make a change to your PR and wait a few minutes, or close and re-open it. |
id: 'code-files-create', this.iframe.src = |
Thanks for reviewing the plugin!
Yeah I figured that, but unfortunately I really didn't get Monaco to work directly with Obsidian. Monaco has a very strict setup with web workers, which to my knowledge requires multiple files that are available under customizable URLs and which the website hosting the editor needs to load during runtime, and I really didn't find a way to get that to work with Obsidians restriction that the entire plugin code needs to be one single file. If you have alternative suggestions I would be happy to give them a try, but otherwise, I would love if we could add the plugin with this online-dependency as a caveat. I can also add this info to the top of the readme to make this caveat more visible to people interested in adding the plugin. |
You can run a web worker inside of Obsidian, you will need a esbuild plugin that can bundle it inside of the main.js. If you can't get that to work, please absolutely mention it, prominently mention that it connects to your server in the README. |
Hi @joethei. Something like that would probably be the solution, but I'm still running into issues because of Monaco's expectations of how the worker files are resolved, and the way Monaco expects the loader framework to be augmented. I might give it another try in the future, but would prefer to leave it as is for now. I documented the caveat in the Readme, and also fixed your suggestion on the command id prefix above. |
Hi @joethei, I don't want to pressure and understand that you have other important things to do, but am wondering if there is something I can do to support getting this merged? |
|
Hey, thanks for taking your time to review, I've fixed the things you've noted. One side-note, the method |
I am submitting a new Community Plugin
Repo URL
Link to my plugin: https://github.com/lukasbach/obsidian-code-files
Release Checklist
main.js
manifest.json
styles.css
(optional)v
)id
in mymanifest.json
matches theid
in thecommunity-plugins.json
file.I have given proper attribution to these other projects in my
README.md
.