microsoft / microsoft/TypeScript-Sublime-Plugin
File...New View into File causes Typescript plugin problems (reversing text)
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.7k
- Forks
- 236
- Avg merge
- 21d 13h
- Merged PRs (30d)
- 1
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the problem by opening the same TypeScript file in two Sublime views and typing the shown function. Inspect the plugin's handling of multiple views into one file; done means text is no longer reversed and the TypeScript diagnostics correctly recognize number and version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100