@@ -3935,6 +3935,11 @@ namespace FourSlash {
39353935 ( this . languageService as ts . server . SessionClient ) . configurePlugin ( pluginName , configuration ) ;
39363936 }
39373937
3938+ public setCompilerOptionsForInferredProjects ( options : ts . server . protocol . CompilerOptions ) {
3939+ ts . Debug . assert ( this . testType === FourSlashTestType . Server ) ;
3940+ ( this . languageService as ts . server . SessionClient ) . setCompilerOptionsForInferredProjects ( options ) ;
3941+ }
3942+
39383943 public toggleLineComment ( newFileContent : string ) : void {
39393944 const changes : ts . TextChange [ ] = [ ] ;
39403945 for ( const range of this . getRanges ( ) ) {
@@ -4077,15 +4082,15 @@ namespace FourSlash {
40774082 try {
40784083 const test = new FourSlashInterface . Test ( state ) ;
40794084 const goTo = new FourSlashInterface . GoTo ( state ) ;
4080- const plugins = new FourSlashInterface . Plugins ( state ) ;
4085+ const config = new FourSlashInterface . Config ( state ) ;
40814086 const verify = new FourSlashInterface . Verify ( state ) ;
40824087 const edit = new FourSlashInterface . Edit ( state ) ;
40834088 const debug = new FourSlashInterface . Debug ( state ) ;
40844089 const format = new FourSlashInterface . Format ( state ) ;
40854090 const cancellation = new FourSlashInterface . Cancellation ( state ) ;
40864091 // eslint-disable-next-line no-eval
40874092 const f = eval ( wrappedCode ) ;
4088- f ( test , goTo , plugins , verify , edit , debug , format , cancellation , FourSlashInterface . classification , FourSlashInterface . Completion , verifyOperationIsCancelled ) ;
4093+ f ( test , goTo , config , verify , edit , debug , format , cancellation , FourSlashInterface . classification , FourSlashInterface . Completion , verifyOperationIsCancelled ) ;
40894094 }
40904095 catch ( err ) {
40914096 // ensure 'source-map-support' is triggered while we still have the handler attached by accessing `error.stack`.
0 commit comments