File tree Expand file tree Collapse file tree 2 files changed +0
-16
lines changed
Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,6 @@ export function createValueEmitter<T>(): ValueEmitter<T> {
3333 onChange ( callback ) {
3434 callbacks . push ( callback ) ;
3535 void Promise . resolve ( callback ( currentValue ) ) . catch ( ( ) => { } ) ;
36- // if (currentValue !== undefined) {
37- // void Promise.resolve(callback(currentValue)).catch(() => {});
38- // }
3936 } ,
4037 } ;
4138}
Original file line number Diff line number Diff line change @@ -28,20 +28,11 @@ export function createFileStatusTracker(
2828 files : string [ ] ,
2929 check : ( ) => Promise < SetupStatus | undefined > | SetupStatus | undefined ,
3030) : StatusTracker {
31- // let status: SetupStatus | undefined;
32- // const emitter = createEmitter<SetupStatus | undefined>(outputChannel);
3331 const status = createValueEmitter < SetupStatus | undefined > ( ) ;
3432
3533 const updateStatus = createOnceImmediate ( async ( ) => {
3634 const newStatus = await Promise . resolve ( check ( ) ) ;
3735 status . setValue ( newStatus ) ;
38- // if (status !== newStatus) {
39- // status = newStatus;
40- // outputChannel.trace(
41- // `${outputChannelPrefix} File status changed to ${status}`,
42- // );
43- // await emitter.emit(status);
44- // }
4536 } ) ;
4637
4738 const watcher = watch ( files )
@@ -71,10 +62,6 @@ export function createFileStatusTracker(
7162 } ,
7263 onChange ( callback ) {
7364 status . onChange ( callback ) ;
74- // emitter.on(callback);
75- // if (status) {
76- // callback(status);
77- // }
7865 } ,
7966 async dispose ( ) {
8067 await watcher . close ( ) ;
You can’t perform that action at this time.
0 commit comments