dfinity / vscode-motoko

Motoko language support for VS Code.
Apache License 2.0
42 stars 15 forks source link

Support custom dfx canister principals #284

Closed rvanasa closed 4 weeks ago

rvanasa commented 4 weeks ago

This PR adds support for "type": "custom" canisters with explicit canister IDs.

Because these canisters are not included in .dfx/local/canister_ids.json or the .dfx/local/lsp/ directory, a special case is required for these canisters.

Although this fixes compiler errors in the Cycles Faucet codebase, additional follow-up changes to the extension and/or dfx may be needed to generalize this to all possible cases (e.g. deploying with a --specified-id flag).