@@ -289,7 +289,7 @@ async function exerciseServerWorker(testDir: string, tsserverPath: string, repla
289
289
} , isAt ? 0.5 : 0.00005 ) ;
290
290
291
291
// auto-imports are too slow to test everywhere
292
- const requestWithAutoImports = prng . random ( ) < 0.02 ;
292
+ const requestWithAutoImports = prng . random ( ) < 0.05 ;
293
293
294
294
const invokedResponse = await message ( {
295
295
"command" : "completionInfo" ,
@@ -314,38 +314,6 @@ async function exerciseServerWorker(testDir: string, tsserverPath: string, repla
314
314
] ,
315
315
}
316
316
} ) ;
317
-
318
- // Auto-import completions frequently cause issues with completion entry details.
319
- if ( requestWithAutoImports ) {
320
- const completionEntries = invokedResponse . body . entries ;
321
- for ( let entry of completionEntries ) {
322
- if ( entry . hasAction && entry . source !== undefined && "data" in entry ) {
323
- let { name, source, data } = entry ;
324
- // `source` may or may not be relative.
325
- if ( path . isAbsolute ( source ) ) {
326
- source = path . join ( testDirPlaceholder , path . relative ( testDir , source ) ) . replace ( / \\ / g, "/" ) ;
327
- }
328
- // Technically data is supposed to be opaque... but what can you do?
329
- if ( typeof data . fileName === "string" && path . isAbsolute ( data . fileName ) ) {
330
- data . fileName = path . join ( testDirPlaceholder , path . relative ( testDir , data . fileName ) ) . replace ( / \\ / g, "/" ) ;
331
- }
332
-
333
- // 'completionEntryDetails' can take multiple entries; however, it's not useful for diagnostics
334
- // to report that "this command failed when asking for details on any of these 100 completions."
335
- await message ( {
336
- "command" : "completionEntryDetails" ,
337
- "arguments" : {
338
- "file" : openFileAbsolutePath ,
339
- "line" : line ,
340
- "offset" : column ,
341
- "entryNames" : [
342
- { name, source, data } ,
343
- ] ,
344
- }
345
- } )
346
- }
347
- }
348
- }
349
317
}
350
318
351
319
const triggerCharIndex = triggerChars . indexOf ( curr ) ;
0 commit comments