diff --git a/src/commands/text.ts b/src/commands/text.ts index 99eb15a..03c4132 100755 --- a/src/commands/text.ts +++ b/src/commands/text.ts @@ -82,6 +82,7 @@ function getLeadingSpaces() { } else { let numSpaces = textLine.firstNonWhitespaceCharacterIndex; + // let numSpaces = textLine.text.length - textLine.text.trimStart().length; // Alternative method, same result by calculating the leading spaces vscode.window.showInformationMessage("Line Number " + lineNum.toString() + " Has " + numSpaces.toString()+ " Leading Spaces "); } }