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

Contribute to vscode-xml with a custom language #589

Closed
petrvanecek opened this issue Aug 30, 2021 · 1 comment · Fixed by #839
Closed

Contribute to vscode-xml with a custom language #589

petrvanecek opened this issue Aug 30, 2021 · 1 comment · Fixed by #839
Labels
enhancement New feature or request
Milestone

Comments

@petrvanecek
Copy link

I have a language that is based on XML. Is it possible to somehow make VS Code language extension that would use the provided XSD based on file extension with all the functionality provided from RedHat Xml extension? Something like:

	"contributes": {
		"languages": [
			{
				"id": "fprg",
				"extensions": [
					".fprg"
				],
				"configuration": "./language-configuration.json"
			}
		],
		"grammars": [
			{
				"language": "fprg",
			        >>>"path": "./syntaxes/fprg.XSD"
			}
		],
		"snippets": [
                      {
                               "language": "fprg",
                               "path": "./snippets/fprg.snippets.json"
                     }
                ]
       }

Similar behavior as:

    "xml.fileAssociations": [                    
       {
         "pattern": "**/*.fprg",
         "systemId": "${workspaceFolder}fprg.xsd"
       }
    ],

but packed into a language extension with snippets and other possibilities of language extension.

@angelozerr
Copy link
Contributor

angelozerr commented Aug 30, 2021

This issue requires 2 developments:

@angelozerr angelozerr changed the title Language extension based on XSD Contribute to vscode-xml with a custom language Dec 14, 2022
angelozerr added a commit to angelozerr/vscode-xml that referenced this issue Dec 14, 2022
Fixes redhat-developer#589

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit to angelozerr/vscode-xml that referenced this issue Dec 14, 2022
Fixes redhat-developer#589

Signed-off-by: azerr <azerr@redhat.com>
angelozerr added a commit to angelozerr/vscode-xml that referenced this issue Dec 14, 2022
Fixes redhat-developer#589

Signed-off-by: azerr <azerr@redhat.com>
@datho7561 datho7561 added the enhancement New feature or request label Dec 14, 2022
@datho7561 datho7561 added this to the 0.23.0 milestone Dec 14, 2022
datho7561 pushed a commit that referenced this issue Dec 14, 2022
Fixes #589

Signed-off-by: azerr <azerr@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants