File tree 2 files changed +21
-6
lines changed
e2e/suite/testcases/completion
2 files changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ export class CompletionContext {
129
129
const grand = parent . parent
130
130
if ( grand ?. type === "bounced_function" ) {
131
131
this . isBouncedMessage = true
132
+ this . isMessageContext = true
132
133
}
133
134
}
134
135
@@ -137,6 +138,9 @@ export class CompletionContext {
137
138
if ( grand ?. type === "receive_function" ) {
138
139
this . isMessageContext = true
139
140
}
141
+ if ( grand ?. type === "external_function" ) {
142
+ this . isMessageContext = true
143
+ }
140
144
}
141
145
142
146
if ( parent . type === "tlb_serialization" ) {
Original file line number Diff line number Diff line change @@ -48,10 +48,21 @@ contract Foo {
48
48
}
49
49
------------------------------------------------------------------------
50
50
13 bounced<Type>
51
- 13 map<K, V>
52
- 9 Address
53
- 9 Int
54
- 9 String
55
51
21 Bar
56
- 21 Foo
57
- 24 Var
52
+
53
+ ========================================================================
54
+ Completion in external function
55
+ ========================================================================
56
+ primitive Int;
57
+ primitive Address;
58
+ primitive String;
59
+
60
+ struct Foo {}
61
+ message Bar {}
62
+ trait Var {}
63
+
64
+ contract Foo {
65
+ external(msg: <caret>) {}
66
+ }
67
+ ------------------------------------------------------------------------
68
+ 21 Bar
You can’t perform that action at this time.
0 commit comments