@@ -365,7 +365,6 @@ namespace FourSlash {
365365
366366            function  memoWrap ( ls : ts . LanguageService ,  target : TestState ) : ts . LanguageService  { 
367367                const  cacheableMembers : ( keyof  typeof  ls ) [ ]  =  [ 
368-                     "getCompletionsAtPosition" , 
369368                    "getCompletionEntryDetails" , 
370369                    "getCompletionEntrySymbol" , 
371370                    "getQuickInfoAtPosition" , 
@@ -1221,7 +1220,7 @@ Actual: ${stringify(fullActual)}`);
12211220        } 
12221221
12231222        private  getCompletionListAtCaret ( options ?: FourSlashInterface . CompletionsAtOptions ) : ts . CompletionInfo  { 
1224-             return  this . languageService . getCompletionsAtPosition ( this . activeFile . fileName ,  this . currentCaretPosition ,  options ,   options   &&   options . settings ) ; 
1223+             return  this . languageService . getCompletionsAtPosition ( this . activeFile . fileName ,  this . currentCaretPosition ,  options ) ; 
12251224        } 
12261225
12271226        private  getCompletionEntryDetails ( entryName : string ,  source ?: string ) : ts . CompletionEntryDetails  { 
@@ -1719,7 +1718,7 @@ Actual: ${stringify(fullActual)}`);
17191718            Harness . IO . log ( stringify ( sigHelp ) ) ; 
17201719        } 
17211720
1722-         public  printCompletionListMembers ( options : ts . GetCompletionsAtPositionOptions  |  undefined )  { 
1721+         public  printCompletionListMembers ( options : ts . Options  |  undefined )  { 
17231722            const  completions  =  this . getCompletionListAtCaret ( options ) ; 
17241723            this . printMembersOrCompletions ( completions ) ; 
17251724        } 
@@ -1818,7 +1817,7 @@ Actual: ${stringify(fullActual)}`);
18181817                    } 
18191818                    else  if  ( prevChar  ===  " "  &&  / A - Z a - z _ / . test ( ch ) )  { 
18201819                        /* Completions */ 
1821-                         this . languageService . getCompletionsAtPosition ( this . activeFile . fileName ,  offset ,  ts . defaultCompletionOptions ,   ts . defaultServicesSettings ) ; 
1820+                         this . languageService . getCompletionsAtPosition ( this . activeFile . fileName ,  offset ,  ts . defaultOptions ) ; 
18221821                    } 
18231822
18241823                    if  ( i  %  checkCadence  ===  0 )  { 
@@ -2393,7 +2392,7 @@ Actual: ${stringify(fullActual)}`);
23932392        public  applyCodeActionFromCompletion ( markerName : string ,  options : FourSlashInterface . VerifyCompletionActionOptions )  { 
23942393            this . goToMarker ( markerName ) ; 
23952394
2396-             const  actualCompletion  =  this . getCompletionListAtCaret ( {  ...ts . defaultCompletionOptions ,  includeExternalModuleExports : true  } ) . entries . find ( e  => 
2395+             const  actualCompletion  =  this . getCompletionListAtCaret ( {  ...ts . defaultOptions ,  includeExternalModuleExports : true  } ) . entries . find ( e  => 
23972396                e . name  ===  options . name  &&  e . source  ===  options . source ) ; 
23982397
23992398            if  ( ! actualCompletion . hasAction )  { 
@@ -2445,7 +2444,7 @@ Actual: ${stringify(fullActual)}`);
24452444            const  {  fixId,  newFileContent }  =  options ; 
24462445            const  fixIds  =  ts . mapDefined ( this . getCodeFixes ( this . activeFile . fileName ) ,  a  =>  a . fixId ) ; 
24472446            ts . Debug . assert ( ts . contains ( fixIds ,  fixId ) ,  "No available code fix has that group id." ,  ( )  =>  `Expected '${ fixId }  '. Available action ids: ${ fixIds }  ` ) ; 
2448-             const  {  changes,  commands }  =  this . languageService . getCombinedCodeFix ( {  type : "file" ,  fileName : this . activeFile . fileName  } ,  fixId ,  this . formatCodeSettings ) ; 
2447+             const  {  changes,  commands }  =  this . languageService . getCombinedCodeFix ( {  type : "file" ,  fileName : this . activeFile . fileName  } ,  fixId ,  this . formatCodeSettings ,   ts . defaultOptions ) ; 
24492448            assert . deepEqual ( commands ,  options . commands ) ; 
24502449            assert ( changes . every ( c  =>  c . fileName  ===  this . activeFile . fileName ) ,  "TODO: support testing codefixes that touch multiple files" ) ; 
24512450            this . applyChanges ( changes ) ; 
@@ -2525,7 +2524,7 @@ Actual: ${stringify(fullActual)}`);
25252524                    return ; 
25262525                } 
25272526
2528-                 return  this . languageService . getCodeFixesAtPosition ( fileName ,  diagnostic . start ,  diagnostic . start  +  diagnostic . length ,  [ diagnostic . code ] ,  this . formatCodeSettings ) ; 
2527+                 return  this . languageService . getCodeFixesAtPosition ( fileName ,  diagnostic . start ,  diagnostic . start  +  diagnostic . length ,  [ diagnostic . code ] ,  this . formatCodeSettings ,   ts . defaultOptions ) ; 
25292528            } ) ; 
25302529        } 
25312530
@@ -4419,7 +4418,7 @@ namespace FourSlashInterface {
44194418            this . state . printCurrentSignatureHelp ( ) ; 
44204419        } 
44214420
4422-         public  printCompletionListMembers ( options : ts . GetCompletionsAtPositionOptions  |  undefined )  { 
4421+         public  printCompletionListMembers ( options : ts . Options  |  undefined )  { 
44234422            this . state . printCompletionListMembers ( options ) ; 
44244423        } 
44254424
@@ -4616,12 +4615,11 @@ namespace FourSlashInterface {
46164615    } 
46174616
46184617    export  type  ExpectedCompletionEntry  =  string  |  {  name : string ,  insertText ?: string ,  replacementSpan ?: FourSlash . Range  } ; 
4619-     export  interface  CompletionsAtOptions  extends  ts . GetCompletionsAtPositionOptions  { 
4618+     export  interface  CompletionsAtOptions  extends  Partial < ts . Options >  { 
46204619        isNewIdentifierLocation ?: boolean ; 
4621-         settings ?: ts . ServicesSettings ; 
46224620    } 
46234621
4624-     export  interface  VerifyCompletionListContainsOptions  extends  ts . GetCompletionsAtPositionOptions  { 
4622+     export  interface  VerifyCompletionListContainsOptions  extends  ts . Options  { 
46254623        sourceDisplay : string ; 
46264624        isRecommended ?: true ; 
46274625        insertText ?: string ; 
0 commit comments