microsoft / microsoft/TypeScript-Sublime-Plugin

Unexpected path behaviour from excluded file?

Abierto
#523 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
JavaScript
Estrellas
1.7k
Forks
236
Merge medio
21 d 13 h
PR fusionados (30 d)
1

Descripción

TL;DR;
Opening a file from a tsconfig.json excluded directory in sublime doesn't resolve project files. But most of the other typescript features seems to be working... Is this expected behaviour? Or am I doing something terribly wrong?

First of all, thanks for the wonderful TypeScript and the Sublime plugin! It has been a pleasure to work with.

So I was setting up a simple project structure with TypeScript, Webpack, Mocha and React. The usual basics. When I created my first component everything went well and I got a fair build time; 2 seconds. Unfortunately after creating a (unit) test for this component, the build time soared to 20+ seconds...

After some investigation I found out that TypeScript parsed all the testing dependencies, even though Webpack did not include the /test folder for the loader. But I think that is expected behaviour, since they stated that the tsconfig.json's exclude is used.

Because of this, I added the whole testing folder to the exclude array. But after doing so, Sublime does not resolve the path to the component anymore. Instead it states Cannot find module 'app/components/test'. All other functionality seems to be working, autocompletion, typehinting, etc. Any input or even telling me I'm completely wrong is appreciated!

PS. All used files are available over here. Please note, I could not use directories so I used - as fake directory separator.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza revisando la configuración de tsconfig.json y el gist enlazado; después, reproduce el comportamiento del directorio excluido en el TypeScript Sublime Plugin. Compara la resolución de rutas para archivos dentro y fuera de la carpeta excluida; se considera completado cuando determines si el fallo de resolución de módulos reportado es esperado e identifiques el comportamiento relevante del plugin que debe cambiarse o documentarse.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
javascript, typescript
Área
developer-experience, tooling
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.