internal/lsp: Make Text in DidSave at *string rather than a string

Fix code.ts to match CL 210780.

Change-Id: Iaaa1f8b78d483e4281e6d513cf4d20ae44e46cb7
Reviewed-on: https://go-review.googlesource.com/c/tools/+/210783
Run-TryBot: Peter Weinberger <pjw@google.com>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
diff --git a/internal/lsp/protocol/typescript/code.ts b/internal/lsp/protocol/typescript/code.ts
index 1303bcc..de8a051 100644
--- a/internal/lsp/protocol/typescript/code.ts
+++ b/internal/lsp/protocol/typescript/code.ts
@@ -482,9 +482,15 @@
     // There's a difference between a nil Range and a zero Range (at the
     // beginning of files)
     if (d.name == 'TextDocumentContentChangeEvent' &&
-        n.name.getText() == 'range')
+        n.name.getText() == 'range') {
       gt = '*' + gt;
-    if (d.name == 'CodeAction' && n.name.getText() == 'command') gt = '*' + gt;
+    }
+    if (d.name == 'CodeAction' && n.name.getText() == 'command') {
+      gt = '*' + gt;
+    }
+    if (d.name == 'DidSaveTextDocumentParams' && n.name.getText() == 'text') {
+      gt = '*' + gt;
+    }
     ans = ans.concat(`${goName(n.name.getText())} ${gt}`, json, '\n')
   };
   d.properties.forEach(g)