File tree Expand file tree Collapse file tree
extensions/ql-vscode/src/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ export function readableBytesMb ( numBytes : number ) : string {
2+ return `${ ( numBytes / ( 1024 * 1024 ) ) . toFixed ( 1 ) } MB` ;
3+ }
Original file line number Diff line number Diff line change 44 ProgressOptions as VSCodeProgressOptions ,
55 window as Window ,
66} from "vscode" ;
7+ import { readableBytesMb } from "../bytes" ;
78
89export class UserCancellationException extends Error {
910 /**
@@ -108,10 +109,6 @@ export function withInheritedProgress<R>(
108109 }
109110}
110111
111- export function readableBytesMb ( numBytes : number ) : string {
112- return `${ ( numBytes / ( 1024 * 1024 ) ) . toFixed ( 1 ) } MB` ;
113- }
114-
115112/**
116113 * Displays a progress monitor that indicates how much progess has been made
117114 * reading from a stream.
Original file line number Diff line number Diff line change 1+ import { readableBytesMb } from "../bytes" ;
12import { UnzipProgressCallback } from "../unzip" ;
2- import { ProgressCallback , readableBytesMb } from "./progress" ;
3+ import { ProgressCallback } from "./progress" ;
34
45export function reportUnzipProgress (
56 messagePrefix : string ,
You can’t perform that action at this time.
0 commit comments