microsoft / microsoft/TypeScript-Sublime-Plugin

TypeScriptFormat removes all indentation

Aperta
#246 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Needs More Info
Lingua principale
JavaScript
Stelle
1.7k
Fork
236
Merge medio
21g 13h
PR unite (30g)
1

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Riprodurre il comando typescript_format_document sui documenti .ts interessati usando il plugin v0.1.4 segnalato e Sublime build 3083 su Mac OS X. Tracciare il percorso di formattazione per determinare perché gli spazi iniziali vengono rimossi in modo incoerente; il lavoro è completato quando la formattazione preserva l'indentazione in modo affidabile nei documenti riaperti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript
Ambito
tooling
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.