File tree Expand file tree Collapse file tree 10 files changed +19
-19
lines changed
src/server/server_code_actions_services Expand file tree Collapse file tree 10 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ let edit_of_candidate ~path { shape_ty; container_pos; tast_env } :
9090 in
9191 let tenv = Tast_env. tast_env_as_typing_env tast_env in
9292 let ty_text = Typing_print. full_strip_ns tenv shape_ty in
93- let text = Printf. sprintf " type placeholder_ = %s;\n\n " ty_text in
93+ let text = Printf. sprintf " type T${0: placeholder_} = %s;\n\n " ty_text in
9494 Lsp.TextEdit. { range; newText = text }
9595 in
9696 let changes = SMap. singleton (Relative_path. to_absolute path) [edit] in
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ JSON for selected code action:
1111 "changes":{
1212 "FILE.php":[
1313 {
14- "newText":"type placeholder_ = shape('a' => int, 'b' => A);\n\n",
14+ "newText":"type T${0: placeholder_} = shape('a' => int, 'b' => A);\n\n",
1515 "range":{"end":{"character":0,"line":5},"start":{"character":0,"line":5}}
1616 }
1717 ]
@@ -28,7 +28,7 @@ Applied edit for code action:
2828class Other {}
2929class A {}
3030
31- type placeholder_ = shape('a' => int, 'b' => A);
31+ type T${0: placeholder_} = shape('a' => int, 'b' => A);
3232
3333function foo(): void {
3434 $a = new A();
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ JSON for selected code action:
1212 "changes":{
1313 "FILE.php":[
1414 {
15- "newText":"type placeholder_ = shape('a' => int, 'b' => A);\n\n",
15+ "newText":"type T${0: placeholder_} = shape('a' => int, 'b' => A);\n\n",
1616 "range":{"end":{"character":0,"line":4},"start":{"character":0,"line":4}}
1717 }
1818 ]
@@ -28,7 +28,7 @@ Applied edit for code action:
2828
2929class A {}
3030
31- type placeholder_ = shape('a' => int, 'b' => A);
31+ type T${0: placeholder_} = shape('a' => int, 'b' => A);
3232
3333class C {
3434 public function foo(): void {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ JSON for selected code action:
1212 "changes":{
1313 "FILE.php":[
1414 {
15- "newText":"type placeholder_ = shape();\n\n",
15+ "newText":"type T${0: placeholder_} = shape();\n\n",
1616 "range":{"end":{"character":0,"line":2},"start":{"character":0,"line":2}}
1717 }
1818 ]
@@ -26,7 +26,7 @@ Applied edit for code action:
2626------------------------------------------
2727<?hh
2828
29- type placeholder_ = shape();
29+ type T${0: placeholder_} = shape();
3030
3131class C {
3232 public function foo(): void {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ JSON for selected code action:
1212 "changes":{
1313 "FILE.php":[
1414 {
15- "newText":"type placeholder_ = shape('the_union' => (int | bool));\n\n",
15+ "newText":"type T${0: placeholder_} = shape('the_union' => (int | bool));\n\n",
1616 "range":{"end":{"character":0,"line":2},"start":{"character":0,"line":2}}
1717 }
1818 ]
@@ -26,7 +26,7 @@ Applied edit for code action:
2626------------------------------------------
2727<?hh
2828
29- type placeholder_ = shape('the_union' => (int | bool));
29+ type T${0: placeholder_} = shape('the_union' => (int | bool));
3030
3131class C {
3232 public function foo(): void {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ JSON for selected code action:
1212 "changes":{
1313 "FILE.php":[
1414 {
15- "newText":"type placeholder_ = shape('a' => nothing);\n\n",
15+ "newText":"type T${0: placeholder_} = shape('a' => nothing);\n\n",
1616 "range":{"end":{"character":0,"line":2},"start":{"character":0,"line":2}}
1717 }
1818 ]
@@ -26,7 +26,7 @@ Applied edit for code action:
2626------------------------------------------
2727<?hh
2828
29- type placeholder_ = shape('a' => nothing);
29+ type T${0: placeholder_} = shape('a' => nothing);
3030
3131class C {
3232 public function foo(): void {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ JSON for selected code action:
1212 "changes":{
1313 "FILE.php":[
1414 {
15- "newText":"type placeholder_ = shape('a' => int);\n\n",
15+ "newText":"type T${0: placeholder_} = shape('a' => int);\n\n",
1616 "range":{"end":{"character":0,"line":2},"start":{"character":0,"line":2}}
1717 }
1818 ]
@@ -26,7 +26,7 @@ Applied edit for code action:
2626------------------------------------------
2727<?hh
2828
29- type placeholder_ = shape('a' => int);
29+ type T${0: placeholder_} = shape('a' => int);
3030
3131class C {
3232 public function foo(vec<int> $v): void {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ JSON for selected code action:
1212 "changes":{
1313 "FILE.php":[
1414 {
15- "newText":"type placeholder_ = shape('a' => shape('b' => vec<int>));\n\n",
15+ "newText":"type T${0: placeholder_} = shape('a' => shape('b' => vec<int>));\n\n",
1616 "range":{"end":{"character":0,"line":2},"start":{"character":0,"line":2}}
1717 }
1818 ]
@@ -26,7 +26,7 @@ Applied edit for code action:
2626------------------------------------------
2727<?hh
2828
29- type placeholder_ = shape('a' => shape('b' => vec<int>));
29+ type T${0: placeholder_} = shape('a' => shape('b' => vec<int>));
3030
3131class C {
3232 public function foo(vec<int> $v): void {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ JSON for selected code action:
1111 "changes":{
1212 "FILE.php":[
1313 {
14- "newText":"type placeholder_ = shape('a' => int);\n\n",
14+ "newText":"type T${0: placeholder_} = shape('a' => int);\n\n",
1515 "range":{"end":{"character":0,"line":2},"start":{"character":0,"line":2}}
1616 }
1717 ]
@@ -25,7 +25,7 @@ Applied edit for code action:
2525------------------------------------------
2626<?hh
2727
28- type placeholder_ = shape('a' => int);
28+ type T${0: placeholder_} = shape('a' => int);
2929
3030function foo(vec<shape('a' => int)> $v): void {
3131 $sh = $v[0];
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ JSON for selected code action:
1212 "changes":{
1313 "FILE.php":[
1414 {
15- "newText":"type placeholder_ = shape(?'a' => int, 'b' => int, ...);\n\n",
15+ "newText":"type T${0: placeholder_} = shape(?'a' => int, 'b' => int, ...);\n\n",
1616 "range":{"end":{"character":0,"line":2},"start":{"character":0,"line":2}}
1717 }
1818 ]
@@ -26,7 +26,7 @@ Applied edit for code action:
2626------------------------------------------
2727<?hh
2828
29- type placeholder_ = shape(?'a' => int, 'b' => int, ...);
29+ type T${0: placeholder_} = shape(?'a' => int, 'b' => int, ...);
3030
3131class C {
3232 public function foo(shape(?"a" => int, ...) $sh): void {
You can’t perform that action at this time.
0 commit comments