Skip to content

Conversation

@DustinCampbell
Copy link
Member

Fixes #560

Initially, I'd just set out to add a timestamp to the OmniSharp server log for #560, but ended up rationalizing logging during the server start up and download steps.

@DustinCampbell DustinCampbell added this to the 1.4 milestone Aug 26, 2016

private _appendCore(message: string): void {
if (this._atLineStart) {
if (this._indentLevel > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we really be taking a dependency on leftpad here :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly. Seems like overkill just to repeat some characters. Left pad expects a length to be passed. I suppose I could use it to generate the indent string like so:

leftPad('', this._indentLevel * 4, ' ');

Not sure it's worth it. 😄

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could also do something like this:

const indent = " ".repeat(this._indentLevel * 4);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be clear, this was supposed to just be a joke based on the fact that the removal of leftpad from NPM broke the internet.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know. I was being ironic. Gosh! Why doesn't anyone understand me?

😄😄😄😄😄

@gregg-miskelly
Copy link
Contributor

LGTM

@DustinCampbell DustinCampbell merged commit bfa72b9 into dotnet:master Aug 26, 2016
@DustinCampbell DustinCampbell deleted the omnisharp-logging branch September 1, 2016 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants