Skip to content

use character instead of column when formatting multiline comments with ... #2117

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

Merged
merged 2 commits into from
Feb 24, 2015

Conversation

vladima
Copy link
Contributor

@vladima vladima commented Feb 23, 2015

...tabs. Fixes #2115

@@ -306,12 +306,13 @@ module ts.formatting {
return findFirstNonWhitespaceColumn(lineStart, lineStart + lineAndCharacter.character, sourceFile, options);
}

export function findFirstNonWhitespaceColumn(startPos: number, endPos: number, sourceFile: SourceFile, options: EditorOptions): number {
export function findFirstNonWhitespaceCharacterAndColumn(startPos: number, endPos: number, sourceFile: SourceFile, options: EditorOptions) {
Copy link
Member

Choose a reason for hiding this comment

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

Might be worth explaining the difference between a character and a column

vladima added a commit that referenced this pull request Feb 24, 2015
…ents

use character instead of column when formatting multiline comments with ...
@vladima vladima merged commit 545e8f4 into master Feb 24, 2015
@vladima vladima deleted the formattingTabsInMultilineComments branch February 24, 2015 17:57
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Format Document in VS2013 Update 4 breaks particular Typescript
5 participants