Skip to content

Commit b68c35a

Browse files
committed
Fix indentation for object literal
1 parent 1912f86 commit b68c35a

File tree

1 file changed

+40
-40
lines changed

1 file changed

+40
-40
lines changed

vscode-dotty/src/tracer.ts

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -282,48 +282,48 @@ export class Tracer {
282282

283283
let log: string = ''
284284
return {
285-
name: 'websocket',
286-
287-
append: (value: string) => {
288-
localOutputChannel.append(value)
289-
if (this.tracingConsent.get() === 'Deny') return
290-
log += value
291-
},
292-
293-
appendLine: (value: string) => {
294-
localOutputChannel.appendLine(value)
295-
if (this.tracingConsent.get() === 'Deny') {
296-
log = ''
297-
return
298-
}
285+
name: 'websocket',
286+
287+
append: (value: string) => {
288+
localOutputChannel.append(value)
289+
if (this.tracingConsent.get() === 'Deny') return
290+
log += value
291+
},
292+
293+
appendLine: (value: string) => {
294+
localOutputChannel.appendLine(value)
295+
if (this.tracingConsent.get() === 'Deny') {
296+
log = ''
297+
return
298+
}
299299

300-
log += value
301-
log += '\n'
302-
if (this.tracingConsent.get() === 'Allow') withSocket((socket) => {
303-
if (socket.readyState === WebSocket.OPEN) {
304-
const send = (msg: string) => socket.send(msg, (err) => {
305-
if (err) {
306-
this.logError('socket send error', err)
307-
}
308-
})
309-
310-
let start = 0
311-
while (start < log.length) {
312-
send(log.substring(start, start + this.maximumMessageSize))
313-
start += this.maximumMessageSize
314-
}
315-
log = ''
316-
}
300+
log += value
301+
log += '\n'
302+
if (this.tracingConsent.get() === 'Allow') withSocket((socket) => {
303+
if (socket.readyState === WebSocket.OPEN) {
304+
const send = (msg: string) => socket.send(msg, (err) => {
305+
if (err) {
306+
this.logError('socket send error', err)
307+
}
317308
})
318-
},
319-
320-
clear() { },
321-
show() { },
322-
hide() { },
323-
dispose() {
324-
if (socket) socket.close()
325-
localOutputChannel.dispose()
326-
}
309+
310+
let start = 0
311+
while (start < log.length) {
312+
send(log.substring(start, start + this.maximumMessageSize))
313+
start += this.maximumMessageSize
314+
}
315+
log = ''
316+
}
317+
})
318+
},
319+
320+
clear() { },
321+
show() { },
322+
hide() { },
323+
dispose() {
324+
if (socket) socket.close()
325+
localOutputChannel.dispose()
326+
}
327327
}
328328
}
329329

0 commit comments

Comments
 (0)