-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: enable tslint and fix tslint warnings #1148
Changes from 9 commits
d7db831
d0cc8c6
381cbc1
58fca4c
a54f6ab
ea808b5
e1acbb1
b36e21d
634ccb2
7ff52f4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
// See http://go.microsoft.com/fwlink/?LinkId=827846 | ||
// for the documentation about the extensions.json format | ||
"recommendations": [ | ||
"msjsdiag.debugger-for-chrome", | ||
"ms-vscode.PowerShell", | ||
"eg2.tslint", | ||
"DavidAnson.vscode-markdownlint" | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,14 +3,14 @@ | |
*--------------------------------------------------------*/ | ||
|
||
import { | ||
StatusBarItem, | ||
Disposable, | ||
StatusBarAlignment, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Alpha sorting 😍 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yup, that is one of the things that TSLINT is picky about. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's beautiful 😍 |
||
StatusBarItem, | ||
ThemeColor, | ||
Disposable, | ||
window} from "vscode"; | ||
|
||
export function showAnimatedStatusBarMessage(text: string, hideWhenDone: Thenable<any>): Disposable { | ||
let animatedStatusBarItem: AnimatedStatusBarItem = new AnimatedStatusBarItem(text); | ||
const animatedStatusBarItem: AnimatedStatusBarItem = new AnimatedStatusBarItem(text); | ||
animatedStatusBarItem.show(hideWhenDone); | ||
return animatedStatusBarItem; | ||
} | ||
|
@@ -73,7 +73,7 @@ class AnimatedStatusBarItem implements StatusBarItem { | |
this.counter = 0; | ||
this.suffixStates = [" ", ". ", ".. ", "..."]; | ||
this.maxCount = this.suffixStates.length; | ||
this.timerInterval = ((1/this.maxCount) * 1000) / this.animationRate; | ||
this.timerInterval = ((1 / this.maxCount) * 1000) / this.animationRate; | ||
this.elapsedTime = 0; | ||
} | ||
|
||
|
@@ -121,4 +121,4 @@ class AnimatedStatusBarItem implements StatusBarItem { | |
private stop(): void { | ||
clearInterval(this.intervalId); | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this? I'm curious
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When this project folder is opened, VS Code will prompt the user to suggest that these extensions are installed when working on this project.