microsoft / microsoft/vscode-custom-data

support templating languages: `gohtml`

Open
#85 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
240
Forks
95
PR merge metrics
No merged PRs in 30d

Description

With the new emergence of htmx, no extension currently handles perfectly the htmx data extension on VSCode because the customData field is not extendable on those templating languages, even though we are writing a lot of HTML inside.

In a package.json, I would expect this to work:

	"contributes": {
		"html": {
			"customData": [
				"./html.htmx-data.json"
			]
		},
		"gohtml": {
			"customData": [
				"./html.htmx-data.json"
			]
		}
	}

Empirical tests on my fork of a fully working extension for html files: https://github.com/otovo/htmx-tags/compare/main...grouville:htmx-tags:main show that it does not

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the package.json contributes example and the linked htmx-tags comparison, then inspect how this repository represents HTML customData and templating-language support. Confirm whether gohtml can accept the same customData entry and validate the behavior against the htmx example; the issue names no test or implementation file.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.