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 } :
90
90
in
91
91
let tenv = Tast_env. tast_env_as_typing_env tast_env in
92
92
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
94
94
Lsp.TextEdit. { range; newText = text }
95
95
in
96
96
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:
11
11
"changes":{
12
12
"FILE.php":[
13
13
{
14
- "newText":"type placeholder_ = shape('a' => int, 'b' => A);\n\n",
14
+ "newText":"type T${0: placeholder_} = shape('a' => int, 'b' => A);\n\n",
15
15
"range":{"end":{"character":0,"line":5},"start":{"character":0,"line":5}}
16
16
}
17
17
]
@@ -28,7 +28,7 @@ Applied edit for code action:
28
28
class Other {}
29
29
class A {}
30
30
31
- type placeholder_ = shape('a' => int, 'b' => A);
31
+ type T${0: placeholder_} = shape('a' => int, 'b' => A);
32
32
33
33
function foo(): void {
34
34
$a = new A();
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ JSON for selected code action:
12
12
"changes":{
13
13
"FILE.php":[
14
14
{
15
- "newText":"type placeholder_ = shape('a' => int, 'b' => A);\n\n",
15
+ "newText":"type T${0: placeholder_} = shape('a' => int, 'b' => A);\n\n",
16
16
"range":{"end":{"character":0,"line":4},"start":{"character":0,"line":4}}
17
17
}
18
18
]
@@ -28,7 +28,7 @@ Applied edit for code action:
28
28
29
29
class A {}
30
30
31
- type placeholder_ = shape('a' => int, 'b' => A);
31
+ type T${0: placeholder_} = shape('a' => int, 'b' => A);
32
32
33
33
class C {
34
34
public function foo(): void {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ JSON for selected code action:
12
12
"changes":{
13
13
"FILE.php":[
14
14
{
15
- "newText":"type placeholder_ = shape();\n\n",
15
+ "newText":"type T${0: placeholder_} = shape();\n\n",
16
16
"range":{"end":{"character":0,"line":2},"start":{"character":0,"line":2}}
17
17
}
18
18
]
@@ -26,7 +26,7 @@ Applied edit for code action:
26
26
------------------------------------------
27
27
<?hh
28
28
29
- type placeholder_ = shape();
29
+ type T${0: placeholder_} = shape();
30
30
31
31
class C {
32
32
public function foo(): void {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ JSON for selected code action:
12
12
"changes":{
13
13
"FILE.php":[
14
14
{
15
- "newText":"type placeholder_ = shape('the_union' => (int | bool));\n\n",
15
+ "newText":"type T${0: placeholder_} = shape('the_union' => (int | bool));\n\n",
16
16
"range":{"end":{"character":0,"line":2},"start":{"character":0,"line":2}}
17
17
}
18
18
]
@@ -26,7 +26,7 @@ Applied edit for code action:
26
26
------------------------------------------
27
27
<?hh
28
28
29
- type placeholder_ = shape('the_union' => (int | bool));
29
+ type T${0: placeholder_} = shape('the_union' => (int | bool));
30
30
31
31
class C {
32
32
public function foo(): void {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ JSON for selected code action:
12
12
"changes":{
13
13
"FILE.php":[
14
14
{
15
- "newText":"type placeholder_ = shape('a' => nothing);\n\n",
15
+ "newText":"type T${0: placeholder_} = shape('a' => nothing);\n\n",
16
16
"range":{"end":{"character":0,"line":2},"start":{"character":0,"line":2}}
17
17
}
18
18
]
@@ -26,7 +26,7 @@ Applied edit for code action:
26
26
------------------------------------------
27
27
<?hh
28
28
29
- type placeholder_ = shape('a' => nothing);
29
+ type T${0: placeholder_} = shape('a' => nothing);
30
30
31
31
class C {
32
32
public function foo(): void {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ JSON for selected code action:
12
12
"changes":{
13
13
"FILE.php":[
14
14
{
15
- "newText":"type placeholder_ = shape('a' => int);\n\n",
15
+ "newText":"type T${0: placeholder_} = shape('a' => int);\n\n",
16
16
"range":{"end":{"character":0,"line":2},"start":{"character":0,"line":2}}
17
17
}
18
18
]
@@ -26,7 +26,7 @@ Applied edit for code action:
26
26
------------------------------------------
27
27
<?hh
28
28
29
- type placeholder_ = shape('a' => int);
29
+ type T${0: placeholder_} = shape('a' => int);
30
30
31
31
class C {
32
32
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:
12
12
"changes":{
13
13
"FILE.php":[
14
14
{
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",
16
16
"range":{"end":{"character":0,"line":2},"start":{"character":0,"line":2}}
17
17
}
18
18
]
@@ -26,7 +26,7 @@ Applied edit for code action:
26
26
------------------------------------------
27
27
<?hh
28
28
29
- type placeholder_ = shape('a' => shape('b' => vec<int>));
29
+ type T${0: placeholder_} = shape('a' => shape('b' => vec<int>));
30
30
31
31
class C {
32
32
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:
11
11
"changes":{
12
12
"FILE.php":[
13
13
{
14
- "newText":"type placeholder_ = shape('a' => int);\n\n",
14
+ "newText":"type T${0: placeholder_} = shape('a' => int);\n\n",
15
15
"range":{"end":{"character":0,"line":2},"start":{"character":0,"line":2}}
16
16
}
17
17
]
@@ -25,7 +25,7 @@ Applied edit for code action:
25
25
------------------------------------------
26
26
<?hh
27
27
28
- type placeholder_ = shape('a' => int);
28
+ type T${0: placeholder_} = shape('a' => int);
29
29
30
30
function foo(vec<shape('a' => int)> $v): void {
31
31
$sh = $v[0];
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ JSON for selected code action:
12
12
"changes":{
13
13
"FILE.php":[
14
14
{
15
- "newText":"type placeholder_ = shape(?'a' => int, 'b' => int, ...);\n\n",
15
+ "newText":"type T${0: placeholder_} = shape(?'a' => int, 'b' => int, ...);\n\n",
16
16
"range":{"end":{"character":0,"line":2},"start":{"character":0,"line":2}}
17
17
}
18
18
]
@@ -26,7 +26,7 @@ Applied edit for code action:
26
26
------------------------------------------
27
27
<?hh
28
28
29
- type placeholder_ = shape(?'a' => int, 'b' => int, ...);
29
+ type T${0: placeholder_} = shape(?'a' => int, 'b' => int, ...);
30
30
31
31
class C {
32
32
public function foo(shape(?"a" => int, ...) $sh): void {
You can’t perform that action at this time.
0 commit comments