File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ 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 ( ) ;
332+ const newWorkspaceEdit = codeAction . edit ;
333333 for ( const docEdit of docEdits ) {
334334 const uri = docEdit [ 0 ] ;
335335 if ( documentUris . includes ( uri . toString ( ) ) ) {
@@ -346,9 +346,8 @@ export async function activate(context: ExtensionContext): Promise<ExtensionAPI>
346346 editList . push ( edit ) ;
347347 }
348348 }
349+ newWorkspaceEdit . set ( uri , null ) ;
349350 newWorkspaceEdit . set ( uri , editList ) ;
350- } else {
351- newWorkspaceEdit . set ( uri , docEdit [ 1 ] ) ;
352351 }
353352 }
354353 codeAction . edit = newWorkspaceEdit ;
You can’t perform that action at this time.
0 commit comments