microsoft / microsoft/TypeScript-Sublime-Plugin
if several conditions
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.7k
- Forks
- 236
- Avg merge
- 21d 13h
- Merged PRs (30d)
- 1
Description
when you write a if with two condition and format the code, it indent incorrect.
example
function test () {
if ( 1== 1 /* supposed a return carriage here */
&& 2== 2
) {
console.log("ok");
}
}
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
Start by locating the plugin's formatting entry point and reproduce the JavaScript example with the multiline condition. Compare the resulting indentation with the intended layout, then add a regression test if the repository has an applicable formatting test location; done means the continuation and closing block are indented correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100