norgor / vscode-capnp

Cap'n Proto extension for Visual Studio Code.
GNU General Public License v3.0
4 stars 0 forks source link

Doesn't seem to support `using` and `import` #3

Closed ImVexed closed 1 month ago

ImVexed commented 1 year ago

Using https://github.com/capnproto/go-capnp with a .capnp header of:

using Go = import "/go.capnp";
$Go.package("rpc");
$Go.import("rpc");

shows image

norgor commented 1 year ago

I presume you use the -I option when compiling the file?

Support for that would have to be added in the extension, as it does not know where to look for the files.

norgor commented 1 month ago

Support for this has now been added as of 0.2.0 with commit d7e33b5. You can now configue import paths by using the capnp.importPath configuration.

Hope this helps!