wing
wing copied to clipboard
vscode no suggestions on extern syntax
I tried this:
Add an extern
function. There's no way for me to figure out the syntax unless I copy it from an example or the language reference.
My code:
bring cloud;
class GDPRService {
api: cloud.Api;
bucket: cloud.Bucket;
extern
// ^ cursor here
init() {
this.api = new cloud.Api();
this.bucket = new cloud.Bucket();
this.api.post("/doc/{id}", inflight (req) => {
let id = req.vars.get("id");
let origin = Json.stringify(req.body);
this.bucket.put("origin${id}.txt", origin);
});
}
}
This happened:
No completion for the extern
syntax:
I expected this:
To get a guiding docstring or syntax completion.
Is there a workaround?
No response
Component
IDE Extension
Wing Version
0.26.7
Node.js Version
18.15.0
Platform(s)
MacOS
Anything else?
No response
Community Notes
- Please vote by adding a 👍 reaction to the issue to help us prioritize.
- If you are interested to work on this issue, please leave a comment.