@@ -87,15 +87,15 @@ suite('QuickFixAddon', () => {
8787 } ) ;
8888 suite ( 'returns undefined when' , ( ) => {
8989 test ( 'expected unix exit code' , async ( ) => {
90- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitSimilarOutputRegex , exitCode ) , expectedMap , openerService ) ) ?. fixes , actions ) ;
90+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitSimilarOutputRegex , exitCode ) , expectedMap , openerService ) ) , actions ) ;
9191 } ) ;
9292 test ( 'matching exit status' , async ( ) => {
93- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitSimilarOutputRegex , 2 ) , expectedMap , openerService ) ) ?. fixes , actions ) ;
93+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitSimilarOutputRegex , 2 ) , expectedMap , openerService ) ) , actions ) ;
9494 } ) ;
9595 } ) ;
9696 suite ( 'returns match' , ( ) => {
9797 test ( 'returns match' , async ( ) => {
98- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitSimilarOutputRegex ) , expectedMap , openerService ) ) ?. fixes , actions ) ;
98+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitSimilarOutputRegex ) , expectedMap , openerService ) ) , actions ) ;
9999 } ) ;
100100
101101 test ( 'returns multiple match' , async ( ) => {
@@ -117,14 +117,14 @@ suite('QuickFixAddon', () => {
117117 tooltip : 'Run: git push' ,
118118 command : 'git push'
119119 } ] ;
120- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( 'git pu' , output , GitSimilarOutputRegex ) , expectedMap , openerService ) ) ?. fixes , actions ) ;
120+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( 'git pu' , output , GitSimilarOutputRegex ) , expectedMap , openerService ) ) , actions ) ;
121121 } ) ;
122122 test ( 'passes any arguments through' , async ( ) => {
123123 output = `git: 'checkoutt' is not a git command. See 'git --help'.
124124
125125 The most similar commands are
126126 checkout` ;
127- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( 'git checkoutt .' , output , GitSimilarOutputRegex ) , expectedMap , openerService ) ) ?. fixes , [ {
127+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( 'git checkoutt .' , output , GitSimilarOutputRegex ) , expectedMap , openerService ) ) , [ {
128128 id : 'Git Similar' ,
129129 enabled : true ,
130130 label : 'Run: git checkout .' ,
@@ -161,10 +161,10 @@ suite('QuickFixAddon', () => {
161161 } ) ;
162162 suite ( 'returns undefined when' , ( ) => {
163163 test ( 'expected unix exit code' , async ( ) => {
164- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitTwoDashesRegex , exitCode ) , expectedMap , openerService ) ) ?. fixes , actions ) ;
164+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitTwoDashesRegex , exitCode ) , expectedMap , openerService ) ) , actions ) ;
165165 } ) ;
166166 test ( 'matching exit status' , async ( ) => {
167- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitTwoDashesRegex , 2 ) , expectedMap , openerService ) ) ?. fixes , actions ) ;
167+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitTwoDashesRegex , 2 ) , expectedMap , openerService ) ) , actions ) ;
168168 } ) ;
169169 } ) ;
170170 } ) ;
@@ -187,7 +187,7 @@ suite('QuickFixAddon', () => {
187187 error Command failed with exit code 1.
188188 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.` ;
189189 const actionOptions = [ {
190- id : 'terminal.freePort ' ,
190+ id : 'Free Port ' ,
191191 label : 'Free port 3000' ,
192192 run : true ,
193193 tooltip : 'Free port 3000' ,
@@ -200,11 +200,11 @@ suite('QuickFixAddon', () => {
200200 } ) ;
201201 suite ( 'returns undefined when' , ( ) => {
202202 test ( 'output does not match' , async ( ) => {
203- strictEqual ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( portCommand , `invalid output` , FreePortOutputRegex ) , expectedMap , openerService ) ) ?. fixes , undefined ) ;
203+ strictEqual ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( portCommand , `invalid output` , FreePortOutputRegex ) , expectedMap , openerService ) ) , undefined ) ;
204204 } ) ;
205205 } ) ;
206206 test ( 'returns actions' , async ( ) => {
207- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( portCommand , output , FreePortOutputRegex ) , expectedMap , openerService ) ) ?. fixes , actionOptions ) ;
207+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( portCommand , output , FreePortOutputRegex ) , expectedMap , openerService ) ) , actionOptions ) ;
208208 } ) ;
209209 } ) ;
210210 }
@@ -239,10 +239,10 @@ suite('QuickFixAddon', () => {
239239 } ) ;
240240 suite ( 'returns actions when' , ( ) => {
241241 test ( 'expected unix exit code' , async ( ) => {
242- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitPushOutputRegex , exitCode ) , expectedMap , openerService ) ) ?. fixes , actions ) ;
242+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitPushOutputRegex , exitCode ) , expectedMap , openerService ) ) , actions ) ;
243243 } ) ;
244244 test ( 'matching exit status' , async ( ) => {
245- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitPushOutputRegex , 2 ) , expectedMap , openerService ) ) ?. fixes , actions ) ;
245+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitPushOutputRegex , 2 ) , expectedMap , openerService ) ) , actions ) ;
246246 } ) ;
247247 } ) ;
248248 } ) ;
@@ -283,7 +283,7 @@ suite('QuickFixAddon', () => {
283283 } ) ;
284284 suite ( 'returns actions when' , ( ) => {
285285 test ( 'expected unix exit code' , async ( ) => {
286- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitCreatePrOutputRegex , exitCode ) , expectedMap , openerService ) ) ?. fixes , actions ) ;
286+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitCreatePrOutputRegex , exitCode ) , expectedMap , openerService ) ) , actions ) ;
287287 } ) ;
288288 } ) ;
289289 } ) ;
@@ -319,10 +319,10 @@ suite('QuickFixAddon', () => {
319319 } ) ;
320320 suite ( 'returns actions when' , ( ) => {
321321 test ( 'expected unix exit code' , async ( ) => {
322- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitPushOutputRegex , exitCode ) , expectedMap , openerService ) ) ?. fixes , actions ) ;
322+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitPushOutputRegex , exitCode ) , expectedMap , openerService ) ) , actions ) ;
323323 } ) ;
324324 test ( 'matching exit status' , async ( ) => {
325- assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitPushOutputRegex , 2 ) , expectedMap , openerService ) ) ?. fixes , actions ) ;
325+ assertMatchOptions ( ( await getQuickFixesForCommand ( [ ] , terminal , createCommand ( command , output , GitPushOutputRegex , 2 ) , expectedMap , openerService ) ) , actions ) ;
326326 } ) ;
327327 } ) ;
328328 } ) ;
0 commit comments