microsoft / microsoft/TypeScript-Sublime-Plugin
TypeScriptFormat removes all indentation
Personne n'a encore pris cette issue.
- Langage dominant
- JavaScript
- Étoiles
- 1.7k
- Forks
- 236
- Merge moyen
- 21 j 13 h
- PR mergées (30 j)
- 1
Description
I am using the plugin v0.1.4 on Mac OS X with sublime build 3083 and all of a sudden the "typescript_format_document" command stopped working.
What it does now is remove the entire indentation (removing all leading spaces).
The rest of the plugin seems to work (syntax check and completion).
I have not installed any other plugin in the meantime, and I am quite positive I did not change my settings.
The weird thing is that while it does not affect all .ts document in my project, it start to affect them randomly. For example, I have document A open, I can format it OK, I close it reopen it, and now the plugin don't format it. It is not systematic, some documents still work, even after opening, modifying and closing them.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Reproduire la commande typescript_format_document sur les documents .ts concernés en utilisant le plugin v0.1.4 signalé et Sublime build 3083 sur Mac OS X. Suivre le chemin de formatage pour déterminer pourquoi les espaces en début de ligne sont supprimés de manière incohérente ; c’est terminé lorsque le formatage préserve l’indentation de manière fiable dans les documents rouverts.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- typescript
- Domaine
- tooling
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100