microsoft / microsoft/TypeScript-Sublime-Plugin
File...New View into File causes Typescript plugin problems (reversing text)
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 1.7k
- Fork
- 236
- Merge medio
- 21g 13h
- PR unite (30g)
- 1
Descrizione
So I have a split screen view of my project and 'File.ts' opened in the left hand pane in Sublime. Everything is fine so far...
I do 'File...New View into File' to create another Sublime tab on the same file, and move it into the right hand pane. In one of my classes I type this:
public init_create(type: string, version: number) {
}
which would normally be fine. However, wavy red lines appear from 'number' through to the end of the function, and into the following. If I float the mouse over 'number' I get the following error: Cannot find name numberrebmun, and if I float over the red lines below I get Parameter 'noisrev' implicitly has an 'any' type
It seems that when there are multiple Sublime views into a file, something's going squirly inside the Typescript plugin, I'm guessing on the python side. Types and text are being reversed for whatever code I type and the TS becomes unusable until I close the second pane in Sublime.
This is a real PITA for serious work; TIA for any assistance.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Riproduci il problema aprendo lo stesso file TypeScript in due viste di Sublime e digitando la funzione mostrata. Esamina la gestione da parte del plugin di più viste dello stesso file; il lavoro è completato quando il testo non è più invertito e la diagnostica TypeScript riconosce correttamente number e version.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100