microsoft / microsoft/TypeScript
Documented server plugin example fails with relative path
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Go
- Estrellas
- 111k
- Forks
- 14.4k
- Merge medio
- 1 d 19 h
- PR fusionados (30 d)
- 117
Descripción
TypeScript Version: 4.0.3 & 4.1.0-dev.20201003
Search Terms: plugin link path
Code
Writing a Language Service Plugin | Putting it all together
https://github.com/microsoft/TypeScript/wiki/Writing-a-Language-Service-Plugin#putting-it-all-together
Summary:
I have recreated the example plugin found in the documentation at Writing a Language Service Plugin.
The example works when using 'npm link', but not with relative paths.

I referred to the plugin in tsconfig like this:
"plugins": [{
"name": "../plugin"
}]
I have also tried to refer to ../plugin/index and ../plugin/index.js, but neither of them works.
Expected behavior:
Be able to refer to the plugin with a relative path.
Actual behavior:
Silently fails without the plugin being loaded.
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.
Línea de trabajo
Comienza con el ejemplo enlazado «Writing a Language Service Plugin» y reproduce su configuración del plugin de tsconfig usando la ruta relativa ../plugin. Sigue cómo esa configuración resuelve el plugin y verifica después que el ejemplo documentado carga el plugin sin npm link y ya no falla silenciosamente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript
- Área
- tooling
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100