Skip to content

Commit

Permalink
revert for now
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmacarthy committed Mar 26, 2024
1 parent ec71881 commit e3d963d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/extension/completion-formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Position, Range, TextEditor } from 'vscode'

import { CLOSING_BRACKETS, OPENING_BRACKETS, QUOTES } from '../common/constants'
import { Bracket } from '../common/types'
import { getIsOnlyBrackets, getNoTextBeforeOrAfter } from './utils'
import { getNoTextBeforeOrAfter } from './utils'

export class CompletionFormatter {
private _characterAfterCursor: string
Expand Down Expand Up @@ -170,7 +170,6 @@ export class CompletionFormatter {
private preventDuplicateLines = (): CompletionFormatter => {
const lineCount = this._editor.document.lineCount
let nextLineIndex = this._cursorPosition.line + 1
if (getIsOnlyBrackets(this._normalisedCompletion)) return this
while (
nextLineIndex < this._cursorPosition.line + 3 &&
nextLineIndex < lineCount
Expand Down

0 comments on commit e3d963d

Please sign in to comment.