@@ -37,9 +37,9 @@ export class RazorDocumentSynchronizer {
3737 const logId = ++ this . synchronizationIdentifier ;
3838
3939 const documentKey = getUriPath ( projectedDocument . uri ) ;
40- if ( this . logger . verboseEnabled ) {
40+ if ( this . logger . traceEnabled ) {
4141 const ehdv = expectedHostDocumentVersion ;
42- this . logger . logVerbose (
42+ this . logger . logTrace (
4343 `${ logId } - Synchronizing '${ documentKey } ':
4444 Currently at ${ projectedDocument . hostDocumentSyncVersion } , synchronizing to version '${ ehdv } '.'`
4545 ) ;
@@ -55,52 +55,52 @@ export class RazorDocumentSynchronizer {
5555
5656 try {
5757 if ( projectedDocument . hostDocumentSyncVersion !== expectedHostDocumentVersion ) {
58- if ( this . logger . verboseEnabled ) {
59- this . logger . logVerbose (
58+ if ( this . logger . traceEnabled ) {
59+ this . logger . logTrace (
6060 `${ logId } - Projected document not in sync with host document, waiting for update...
6161 Current host document sync version: ${ projectedDocument . hostDocumentSyncVersion } `
6262 ) ;
6363 }
6464 await context . onProjectedDocumentSynchronized ;
6565 }
6666
67- if ( this . logger . verboseEnabled ) {
68- this . logger . logVerbose ( `${ logId } - Projected document in sync with host document` ) ;
67+ if ( this . logger . traceEnabled ) {
68+ this . logger . logTrace ( `${ logId } - Projected document in sync with host document` ) ;
6969 }
7070
7171 // Projected document is the one we expect.
7272
7373 const projectedTextDocument = await vscode . workspace . openTextDocument ( projectedDocument . uri ) ;
7474 const projectedTextDocumentVersion = this . getProjectedTextDocumentVersion ( projectedTextDocument ) ;
7575 if ( projectedDocument . hostDocumentSyncVersion !== projectedTextDocumentVersion ) {
76- if ( this . logger . verboseEnabled ) {
77- this . logger . logVerbose (
76+ if ( this . logger . traceEnabled ) {
77+ this . logger . logTrace (
7878 `${ logId } - Projected text document not in sync with data type, waiting for update...
7979 Current projected text document sync version: ${ projectedTextDocumentVersion } `
8080 ) ;
8181 }
8282 await context . onProjectedTextDocumentSynchronized ;
8383 }
8484
85- if ( this . logger . verboseEnabled ) {
86- this . logger . logVerbose ( `${ logId } - Projected text document in sync with data type` ) ;
85+ if ( this . logger . traceEnabled ) {
86+ this . logger . logTrace ( `${ logId } - Projected text document in sync with data type` ) ;
8787 }
8888
8989 // Projected text document is the one we expect
9090 } catch ( cancellationReason ) {
9191 this . removeSynchronization ( context ) ;
9292
93- if ( this . logger . verboseEnabled ) {
94- this . logger . logVerbose ( `${ logId } - Synchronization failed: ${ cancellationReason } ` ) ;
93+ if ( this . logger . traceEnabled ) {
94+ this . logger . logTrace ( `${ logId } - Synchronization failed: ${ cancellationReason } ` ) ;
9595 }
9696
9797 return false ;
9898 }
9999
100100 this . removeSynchronization ( context ) ;
101101
102- if ( this . logger . verboseEnabled ) {
103- this . logger . logVerbose ( `${ logId } - Synchronization successful!` ) ;
102+ if ( this . logger . traceEnabled ) {
103+ this . logger . logTrace ( `${ logId } - Synchronization successful!` ) ;
104104 }
105105
106106 return true ;
@@ -198,10 +198,10 @@ export class RazorDocumentSynchronizer {
198198
199199 for ( const context of synchronizationContexts ) {
200200 if ( context . projectedDocument . hostDocumentSyncVersion === projectedTextDocumentVersion ) {
201- if ( this . logger . verboseEnabled ) {
201+ if ( this . logger . traceEnabled ) {
202202 const li = context . logIdentifier ;
203203 const ptdv = projectedTextDocumentVersion ;
204- this . logger . logVerbose ( `${ li } - Projected text document synchronized to ${ ptdv } .` ) ;
204+ this . logger . logTrace ( `${ li } - Projected text document synchronized to ${ ptdv } .` ) ;
205205 }
206206 context . projectedTextDocumentSynchronized ( ) ;
207207 }
0 commit comments