Skip to content

Commit 21dc660

Browse files
committed
Fix TS 3.8 formatting
1 parent 57c4500 commit 21dc660

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/vs/base/common/filters.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,9 +560,9 @@ export function fuzzyScore(pattern: string, patternLow: string, patternStart: nu
560560
let wordPos = wordStart;
561561

562562
// There will be a match, fill in tables
563-
for (row = 1, patternPos = patternStart; patternPos < patternLen; row++ , patternPos++) {
563+
for (row = 1, patternPos = patternStart; patternPos < patternLen; row++, patternPos++) {
564564

565-
for (column = 1, wordPos = wordStart; wordPos < wordLen; column++ , wordPos++) {
565+
for (column = 1, wordPos = wordStart; wordPos < wordLen; column++, wordPos++) {
566566

567567
const score = _doScore(pattern, patternLow, patternPos, patternStart, word, wordLow, wordPos);
568568

src/vs/editor/common/commands/shiftCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class ShiftCommand implements ICommand {
113113
if (this._opts.useTabStops) {
114114
// keep track of previous line's "miss-alignment"
115115
let previousLineExtraSpaces = 0, extraSpaces = 0;
116-
for (let lineNumber = startLine; lineNumber <= endLine; lineNumber++ , previousLineExtraSpaces = extraSpaces) {
116+
for (let lineNumber = startLine; lineNumber <= endLine; lineNumber++, previousLineExtraSpaces = extraSpaces) {
117117
extraSpaces = 0;
118118
let lineText = model.getLineContent(lineNumber);
119119
let indentationEndIndex = strings.firstNonWhitespaceIndex(lineText);

src/vs/editor/contrib/folding/indentRangeProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class RangesCollector {
6666
// reverse and create arrays of the exact length
6767
let startIndexes = new Uint32Array(this._length);
6868
let endIndexes = new Uint32Array(this._length);
69-
for (let i = this._length - 1, k = 0; i >= 0; i-- , k++) {
69+
for (let i = this._length - 1, k = 0; i >= 0; i--, k++) {
7070
startIndexes[k] = this._startIndexes[i];
7171
endIndexes[k] = this._endIndexes[i];
7272
}

0 commit comments

Comments
 (0)