File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -329,7 +329,6 @@ export async function activate(context: ExtensionContext): Promise<ExtensionAPI>
329329 }
330330 const codeAction = await client . protocol2CodeConverter . asCodeAction ( result , token ) ;
331331 const docEdits = codeAction . edit !== undefined ? codeAction . edit . entries ( ) : [ ] ;
332- const newWorkspaceEdit = new WorkspaceEdit ( ) ;
333332 for ( const docEdit of docEdits ) {
334333 const uri = docEdit [ 0 ] ;
335334 if ( documentUris . includes ( uri . toString ( ) ) ) {
@@ -346,12 +345,10 @@ export async function activate(context: ExtensionContext): Promise<ExtensionAPI>
346345 editList . push ( edit ) ;
347346 }
348347 }
349- newWorkspaceEdit . set ( uri , editList ) ;
350- } else {
351- newWorkspaceEdit . set ( uri , docEdit [ 1 ] ) ;
348+ codeAction . edit . set ( uri , null ) ;
349+ codeAction . edit . set ( uri , editList ) ;
352350 }
353351 }
354- codeAction . edit = newWorkspaceEdit ;
355352 return codeAction ;
356353 }
357354 return await client . protocol2CodeConverter . asCodeAction ( result , token ) ;
You can’t perform that action at this time.
0 commit comments