Skip to content

Conversation

@Lordfirespeed
Copy link
Contributor

@Lordfirespeed Lordfirespeed commented Oct 3, 2023

The "contributes" block allows the language package to be imported by text editors and IDEs as a TextMate Bundle, providing rudimentary ZenStack support to unsupported IDEs.

The `"contributes"` allows the `language` package to be imported by text editors and IDEs as a TextMate Bundle, providing rudimentary ZenStack support
@ymc9
Copy link
Member

ymc9 commented Oct 3, 2023

Thanks @Lordfirespeed ! Right now, the VSCode extensions reside in the same package (name "schema" in code) as the CLI - which is not a clean organization ... I guess you can achieve the same by importing the "zenstack" package, but I think your additional is also a good one, the "language" package is more lightweight and portable.

Btw, I'm not a textmate user, is there a guide somewhere showing how to import it 😂?

@Lordfirespeed
Copy link
Contributor Author

Yes, I was confused by the organisation, my apologies! 😂

I can't speak for TextMate itself, but I was able to import this to WebStorm (IntelliJ Platform) using these instructions from JetBrains' docs.

@ymc9
Copy link
Member

ymc9 commented Oct 3, 2023

Yes, I was confused by the organisation, my apologies! 😂

I can't speak for TextMate itself, but I was able to import this to WebStorm (IntelliJ Platform) using these instructions from JetBrains' docs.

Awesome! That's really great to know! Many people have asked about JetBrains support. I'll try it out and include into documentation.

Will merge the PR once CI passes.

@Lordfirespeed
Copy link
Contributor Author

Lordfirespeed commented Oct 3, 2023

As I said, it is very rudimentary - all it provides is basic syntax highlighting:

image

In terms of 'proper' JetBrains support, take a look at my comment on the IntelliJ plugin discussion.

The official JetBrains Prisma plugin is open-source (and uses LSP as well!), which is very promising as there absolutely could not be better reference material for making a ZenStack language support plugin.

@ymc9
Copy link
Member

ymc9 commented Oct 3, 2023

As I said, it is very rudimentary - all it provides is basic syntax highlighting:

image

In terms of 'proper' JetBrains support, take a look at my comment on the IntelliJ plugin discussion.

The official JetBrains Prisma plugin is open-source (and uses LSP as well!), which is very promising as there absolutely could not be better reference material for making a ZenStack language support plugin.

This is GREAT news! Maybe not a huge task for ZenStack then :D.

@Lordfirespeed
Copy link
Contributor Author

Oops, didn't mean to do that 😂

As you were!

@ymc9 ymc9 merged commit 8f3a30f into zenstackhq:dev Oct 3, 2023
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

Successfully merging this pull request may close these issues.

2 participants