Skip to content
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

[Bug] Loading files from local server causes a bug when typing #4723

Open
2 tasks done
David-Orangemoon opened this issue Oct 23, 2024 · 0 comments
Open
2 tasks done

Comments

@David-Orangemoon
Copy link

David-Orangemoon commented Oct 23, 2024

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

Monaco Editor Playground Link

No response

Monaco Editor Playground Code

No response

Reproduction Steps

No response

Actual (Problematic) Behavior

Text randomly gets appended or dissapears
(Shown using local files)
https://github.com/user-attachments/assets/94b76cff-4e74-44cd-bb76-b1c715fb5eae
Logs also return 'undefined'

Expected Behavior

Typing works normally without any anomalies
https://github.com/user-attachments/assets/e1c9688b-22b9-4703-9592-bcc12a8ddf86

Additional Context

Use local files instead of the unpkg links in your html file
Example

<script src="editor/codeEditors/monaco/loader.js"></script>
<script src="editor/codeEditors/monaco/mainnls.js"></script>
<script src="editor/codeEditors/monaco/main.js"></script>

When I use the default unpkg files the editor works fine

<script src="https://unpkg.com/[email protected]/min/vs/loader.js"></script>
<script src="https://unpkg.com/[email protected]/min/vs/editor/editor.main.nls.js"></script>
<script src="https://unpkg.com/[email protected]/min/vs/editor/editor.main.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant