File tree Expand file tree Collapse file tree
workbench/services/output/common Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import { isNumber } from 'vs/base/common/types';
1717import { EditOperation } from 'vs/editor/common/core/editOperation' ;
1818import { Position } from 'vs/editor/common/core/position' ;
1919import { binarySearch } from 'vs/base/common/arrays' ;
20- import { toUint8ArrayBuffer } from 'vs/base/common/uint ' ;
20+ import { VSBuffer } from 'vs/base/common/buffer ' ;
2121
2222export interface IOutputChannelModel extends IDisposable {
2323 readonly onDidAppendedContent : Event < void > ;
@@ -259,10 +259,7 @@ class FileOutputChannelModel extends AbstractFileOutputChannelModel implements I
259259 }
260260
261261 protected getByteLength ( str : string ) : number {
262- if ( typeof Buffer !== 'undefined' ) {
263- return Buffer . from ( str ) . byteLength ;
264- }
265- return toUint8ArrayBuffer ( str ) . byteLength ;
262+ return VSBuffer . fromString ( str ) . byteLength ;
266263 }
267264
268265 update ( size ?: number ) : void {
You can’t perform that action at this time.
0 commit comments