JetBrains / JetBrains/web-types

Understanding vue-directives

Open
#87 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
306
Forks
25
PR merge metrics
No merged PRs in 30d

Description

I would like PhpStorm to recognize a tooltip directive.

`v-tooltip` is recognized with the content of my `web-types.json`, but `v-tooltip.top` for example not:

```json
{
"$schema": "http://json-schema.org/draft-04/schema#",
"framework": "vue",
"js-types-syntax": "typescript",
"description-markup": "markdown",
"framework-config": {
"enable-when": {
"file-extensions": [
"vue"
]
}
},
"contributions": {
"html": {
"vue-directives": [
{
"name": "tooltip",
"description": "Creating a tooltip with floating-vue",
"doc-url": "https://floating-vue.starpad.dev/guide/directive",
"attribute-value": {
"type": "any",
"required": true
},
"vue-modifiers": [
{
"name": "top",
"description": "Positions the tooltip on the top of the trigger element"
},
{
"name": "right",
"description": "Positions the tooltip on the right of the trigger element"
},
{
"name": "bottom-start",
"description": "Positions the tooltip on the bottom-start of the trigger element"
}
]
}
]
}
}
}
```

How can I implement it so that my IDE also recognizes `v-tooltip.top`, `v-tooltip.bottom`, `v-tooltip.right` etc.?

![Image](https://github.com/user-attachments/assets/03b86575-8209-4a85-ba4d-0454e3f08a6b)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.