wing icon indicating copy to clipboard operation
wing copied to clipboard

vscode no suggestions on extern syntax

Open staycoolcall911 opened this issue 1 year ago • 4 comments

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: image

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.

staycoolcall911 avatar Aug 29 '23 12:08 staycoolcall911