Typing `/` after a `<` when we know the tag isn't closed should close the open tag.
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- html, typescript
- Área
- developer-experience, tooling
Línea de trabajo
Comienza revisando la discusión en el pull request 501 y el manejo existente de HTML Language Server para html/autoInsert al escribir / después de \u003c. Traza la validación del parser utilizada para el caso \u003e, incluidos los errores de LiquidHTMLASTParsing. La tarea estará terminada cuando se complete de forma segura una etiqueta sin cerrar sin añadir etiquetas de cierre duplicadas.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Is your feature request related to a problem? Please describe.
This is a followup of https://github.com/Shopify/theme-tools/pull/501#discussion_r1777602887
It seems like the HTML Language Server also does html/autoInsert when typing / after a <.
Describe the solution you'd like
- If the user types
/after a<and we know that it's safe to close a tag that currently is opened without child, then we should complete it. - We shouldn't close tags that are already opened, don't want duplicate close tags (no
<div></div></div>pls)
We might be smart and do a "smart edit of the file", pass it through the parser and verify for a LiquidHTMLASTParsing error like we do for the > case.
- Lenguaje dominante
- TypeScript
- Estrellas
- 245
- Forks
- 108
- Merge medio
- 2 d 8 h
- PR fusionados (30 d)
- 24
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Shopify/theme-tools
-
ThemeCheck incorrectly reports error when `with` is used in snippetPosiblemente ocupada @efegokdemir la tomó hace 4 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Shopify/theme-tools#1408 ·
Los mantenedores suelen responder en 2 días
-
CdnPreconnect misses `href="https://cdn.shopify.com"` without a trailing pathPosiblemente ocupada @RaphaelFakhri la tomó hace 33 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Shopify/theme-tools#1365 ·
Los mantenedores suelen responder en 2 días
-
theme-graph CLI never calls getWebComponentMap, so custom-element references are never resolvedPosiblemente ocupada @reginaldalfret la tomó hace 51 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Shopify/theme-tools#1291 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
JSONMissingBlock false positive for app block when section supports both @app and @themeQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Shopify/theme-tools#1144 · 2 comentarios · 8 reacciones ·
Los mantenedores suelen responder en 2 días
-
theme-language-server: creating or deleting a folder leaves stale readDirectory/stat cachePosiblemente ocupada @efegokdemir la tomó hace 14 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
Shopify/theme-tools#1386 ·
Los mantenedores suelen responder en 2 días
Todos los issues de Shopify/theme-tools
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
-
bug triage:in-progress
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
e2e-failure ready-to-code
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
redhat-developer/rhdh-plugin-export-overlays#4845 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
chore kaizen ui-rewrite
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
IBM/mcp-context-forge#7681 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
cloudflare/workers-sdk#17159 ·
Los mantenedores suelen responder en 1 día