@@ -60,7 +60,7 @@ export class DiffsTreeDataProvider implements vscode.TreeDataProvider<string> {
6060 label : `${ node . kind [ 0 ] . toUpperCase ( ) } ${ node . kind . slice ( 1 ) } : ${
6161 this . compareRange ( node ) [ node . kind ]
6262 } `,
63- resourceUri : vscode . Uri . parse ( ` sourcegraph://host/.gitignore` ) ,
63+ resourceUri : vscode . Uri . parse ( ' sourcegraph://host/.gitignore' ) ,
6464 tooltip : `Update ${ node . kind } revision` ,
6565 command : {
6666 command : 'extension.updateCompareRange' ,
@@ -276,7 +276,6 @@ export class DiffsTreeDataProvider implements vscode.TreeDataProvider<string> {
276276
277277 const fileStats = fileDiffStats ( uri , fileDiff , comparison )
278278 const label = uri . treeItemLabel ( parent )
279- log . appendLine ( `label=${ label } contextValue=${ fileStats . contextValue } ` )
280279 return {
281280 id : childNode . toString ( ) ,
282281 label,
@@ -316,7 +315,7 @@ function fileDiffStats(
316315 }
317316 }
318317 }
319- let parts : string [ ] = [ ]
318+ const parts : string [ ] = [ ]
320319 const addCount = ( what : string , count : number ) : void => {
321320 if ( count < 1 ) {
322321 return
@@ -397,8 +396,8 @@ class DiffNode {
397396 }
398397 private static fromAny ( any : any ) : DiffNode {
399398 const repositoryName = any ?. repositoryName
400- if ( typeof repositoryName != 'string' ) {
401- throw new Error ( ` DiffUri.fromAny() missing repositoryName` )
399+ if ( typeof repositoryName !== 'string' ) {
400+ throw new TypeError ( ' DiffUri.fromAny() missing repositoryName' )
402401 }
403402 let kind : DiffNodeKind | undefined
404403 if ( any ?. kind === 'base' || any ?. kind === 'head' || any ?. kind === 'commits' || any ?. kind === 'files' ) {
0 commit comments