@@ -263,13 +263,11 @@ namespace ts.server {
263263 }
264264
265265 resolvePath ( path : string ) : string {
266- const start = new Date ( ) . getTime ( ) ;
267266 const result = this . host . resolvePath ( path ) ;
268267 return result ;
269268 }
270269
271270 fileExists ( path : string ) : boolean {
272- const start = new Date ( ) . getTime ( ) ;
273271 const result = this . host . fileExists ( path ) ;
274272 return result ;
275273 }
@@ -325,32 +323,6 @@ namespace ts.server {
325323 }
326324 }
327325
328- // assumes normalized paths
329- function getAbsolutePath ( filename : string , directory : string ) {
330- const rootLength = ts . getRootLength ( filename ) ;
331- if ( rootLength > 0 ) {
332- return filename ;
333- }
334- else {
335- const splitFilename = filename . split ( "/" ) ;
336- const splitDir = directory . split ( "/" ) ;
337- let i = 0 ;
338- let dirTail = 0 ;
339- const sflen = splitFilename . length ;
340- while ( ( i < sflen ) && ( splitFilename [ i ] . charAt ( 0 ) == "." ) ) {
341- const dots = splitFilename [ i ] ;
342- if ( dots == ".." ) {
343- dirTail ++ ;
344- }
345- else if ( dots != "." ) {
346- return undefined ;
347- }
348- i ++ ;
349- }
350- return splitDir . slice ( 0 , splitDir . length - dirTail ) . concat ( splitFilename . slice ( i ) ) . join ( "/" ) ;
351- }
352- }
353-
354326 export interface ProjectOptions {
355327 // these fields can be present in the project file
356328 files ?: string [ ] ;
@@ -583,7 +555,9 @@ namespace ts.server {
583555 }
584556
585557 handleProjectFilelistChanges ( project : Project ) {
586- const { succeeded, projectOptions, error } = this . configFileToProjectOptions ( project . projectFilename ) ;
558+ // TODO: Ignoring potentially returned 'error' and 'succeeded' condition
559+ const { projectOptions } = this . configFileToProjectOptions ( project . projectFilename ) ;
560+
587561 const newRootFiles = projectOptions . files . map ( ( f => this . getCanonicalFileName ( f ) ) ) ;
588562 const currentRootFiles = project . getRootFiles ( ) . map ( ( f => this . getCanonicalFileName ( f ) ) ) ;
589563
@@ -611,7 +585,9 @@ namespace ts.server {
611585
612586 this . log ( "Detected newly added tsconfig file: " + fileName ) ;
613587
614- const { succeeded, projectOptions, error } = this . configFileToProjectOptions ( fileName ) ;
588+ // TODO: Ignoring potentially returned 'error' and 'succeeded' condition
589+ const { projectOptions } = this . configFileToProjectOptions ( fileName ) ;
590+
615591 const rootFilesInTsconfig = projectOptions . files . map ( f => this . getCanonicalFileName ( f ) ) ;
616592 const openFileRoots = this . openFileRoots . map ( s => this . getCanonicalFileName ( s . fileName ) ) ;
617593
0 commit comments