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

Paste code into zmodel doesn't work #1988

Open
sw34 opened this issue Feb 17, 2025 · 4 comments
Open

Paste code into zmodel doesn't work #1988

sw34 opened this issue Feb 17, 2025 · 4 comments

Comments

@sw34
Copy link

sw34 commented Feb 17, 2025

Description and expected behavior
When creating a new model, I tried copying an existing model or really anything within a .zmodel file and it will initially paste but them immediately get deleted. You can type into the file, but pasting anything will not work.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • VSCode 1.97.2
  • ZenStack Language Tools 2.11.1
@ymc9
Copy link
Member

ymc9 commented Feb 21, 2025

Hi @sw34 , this sounds very strange. Do you see any error in the VSCode extension output panel?

@sw34
Copy link
Author

sw34 commented Feb 24, 2025

None. Attached is a screen recording, I am pasting a line repeatedly, you can see it flash on screen and get removed, then after about 10 or 12 attempts if finally pastes in.

Zenstack.mp4

@ymc9
Copy link
Member

ymc9 commented Feb 25, 2025

Very strange ... does it happen to any model you work on? Or just one specific model. Do you have other vscode extension that can potentially interfere?

@sw34
Copy link
Author

sw34 commented Feb 25, 2025

Any model does this.

My default formatter is set to None (null), and Prettier does not show as active when a zmodel file is loaded but as soon as I disable the Prettier extension and reload VSCode, pasting works fine. If I re-enable Prettier it goes back to as shown in the video.

["INFO" - 2:13:24 PM] Extension Name: esbenp.prettier-vscode.
["INFO" - 2:13:24 PM] Extension Version: 11.0.0.

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

2 participants