microsoft / TypeScript-Sublime-Plugin

IO wrapper around TypeScript language services, allowing for easy consumption by editor plugins
Apache License 2.0
1.72k stars 237 forks source link

File...New View into File causes Typescript plugin problems (reversing text) #723

Open qgates opened 5 years ago

qgates commented 5 years ago

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.