We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f3ef7d commit f395bc1Copy full SHA for f395bc1
src/server/client.ts
@@ -732,6 +732,13 @@ namespace ts.server {
732
733
const request = this.processRequest<protocol.GetEditsForRefactorRequest>(CommandNames.GetEditsForRefactor, args);
734
const response = this.processResponse<protocol.GetEditsForRefactorResponse>(request);
735
+
736
+ if (!response.body) {
737
+ return {
738
+ edits: []
739
+ };
740
+ }
741
742
const edits: FileTextChanges[] = this.convertCodeEditsToTextChanges(response.body.edits);
743
744
const renameFilename: string | undefined = response.body.renameFilename;
0 commit comments