├── .eslintrc ├── .github ├── CODEOWNERS └── workflows │ ├── release.yml │ └── tests.yml ├── .gitignore ├── .husky └── pre-commit ├── .prettierignore ├── .prettierrc ├── .vscode └── launch.json ├── .vscodeignore ├── Development.md ├── LICENSE ├── README.md ├── __mocks__ └── ic-mops │ └── commands │ └── add.js ├── assets ├── icons │ └── motoko-color.png └── logo.png ├── guide └── assets │ ├── deploy.png │ ├── intro.webp │ ├── setup.png │ ├── snippets.png │ └── tooltips.png ├── jest.config.js ├── language-configuration.json ├── package.json ├── scripts └── generate.js ├── src ├── browser.ts ├── common │ ├── connectionTypes.ts │ └── watchConfig.ts ├── extension.ts ├── server │ ├── ast.ts │ ├── bench │ │ ├── README.md │ │ ├── benchmark-hover.ts │ │ ├── benchmark-init.ts │ │ └── helpers.ts │ ├── compiler │ │ └── moc-0.10.4.js │ ├── context.spec.ts │ ├── context.ts │ ├── depgraph.ts │ ├── deployer.ts │ ├── dfx.ts │ ├── formatter.ts │ ├── handlers.ts │ ├── handlers │ │ └── onSignatureHelp.ts │ ├── hover │ │ ├── commentRanges.ts │ │ ├── docs.ts │ │ ├── hoverContent.ts │ │ └── keywords │ │ │ ├── assert.md │ │ │ ├── func.md │ │ │ ├── import.md │ │ │ ├── let.md │ │ │ └── var.md │ ├── imports.ts │ ├── information.ts │ ├── motoko.ts │ ├── navigation.ts │ ├── server.spec.ts │ ├── server.ts │ ├── syntax.spec.ts │ ├── syntax.ts │ ├── test │ │ ├── completion.spec.ts │ │ ├── definition.spec.ts │ │ ├── extraFlags.spec.ts │ │ ├── formatter.spec.ts │ │ ├── helpers.ts │ │ ├── hover.spec.ts │ │ ├── mock.ts │ │ ├── references.spec.ts │ │ └── signatureHelp.spec.ts │ ├── utils.spec.ts │ └── utils.ts └── utils.ts ├── syntaxes ├── Candid.tmLanguage └── Major.tmLanguage ├── test ├── cache │ ├── Bottom.mo │ ├── Top.mo │ └── issue-340.mo ├── completion │ ├── a.mo │ ├── b.mo │ └── c.mo ├── definition │ ├── A.mo │ ├── B.mo │ ├── C.mo │ ├── chain.mo │ ├── circular.mo │ ├── dfx.json │ ├── mops.toml │ ├── simple.mo │ ├── sub.mo │ └── var.mo ├── flags │ └── deprecated.mo ├── formatter │ └── unformatted.mo ├── hover │ ├── Actor.mo │ ├── Keyword.mo │ ├── Module.mo │ ├── NamedActor.mo │ └── NamedModule.mo ├── signatureHelp │ └── signatures.mo ├── syntax │ └── sources.mo └── workspace │ ├── package-set.dhall │ └── vessel.dhall └── tsconfig.json /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @dfinity/languages 2 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/.github/workflows/tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npm run precommit 5 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | src/generated/**/* 2 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscodeignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/.vscodeignore -------------------------------------------------------------------------------- /Development.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/Development.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/README.md -------------------------------------------------------------------------------- /__mocks__/ic-mops/commands/add.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/__mocks__/ic-mops/commands/add.js -------------------------------------------------------------------------------- /assets/icons/motoko-color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/assets/icons/motoko-color.png -------------------------------------------------------------------------------- /assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/assets/logo.png -------------------------------------------------------------------------------- /guide/assets/deploy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/guide/assets/deploy.png -------------------------------------------------------------------------------- /guide/assets/intro.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/guide/assets/intro.webp -------------------------------------------------------------------------------- /guide/assets/setup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/guide/assets/setup.png -------------------------------------------------------------------------------- /guide/assets/snippets.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/guide/assets/snippets.png -------------------------------------------------------------------------------- /guide/assets/tooltips.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/guide/assets/tooltips.png -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | }; 4 | -------------------------------------------------------------------------------- /language-configuration.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/language-configuration.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/package.json -------------------------------------------------------------------------------- /scripts/generate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/scripts/generate.js -------------------------------------------------------------------------------- /src/browser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/browser.ts -------------------------------------------------------------------------------- /src/common/connectionTypes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/common/connectionTypes.ts -------------------------------------------------------------------------------- /src/common/watchConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/common/watchConfig.ts -------------------------------------------------------------------------------- /src/extension.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/extension.ts -------------------------------------------------------------------------------- /src/server/ast.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/ast.ts -------------------------------------------------------------------------------- /src/server/bench/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/bench/README.md -------------------------------------------------------------------------------- /src/server/bench/benchmark-hover.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/bench/benchmark-hover.ts -------------------------------------------------------------------------------- /src/server/bench/benchmark-init.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/bench/benchmark-init.ts -------------------------------------------------------------------------------- /src/server/bench/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/bench/helpers.ts -------------------------------------------------------------------------------- /src/server/compiler/moc-0.10.4.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/compiler/moc-0.10.4.js -------------------------------------------------------------------------------- /src/server/context.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/context.spec.ts -------------------------------------------------------------------------------- /src/server/context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/context.ts -------------------------------------------------------------------------------- /src/server/depgraph.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/depgraph.ts -------------------------------------------------------------------------------- /src/server/deployer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/deployer.ts -------------------------------------------------------------------------------- /src/server/dfx.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/dfx.ts -------------------------------------------------------------------------------- /src/server/formatter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/formatter.ts -------------------------------------------------------------------------------- /src/server/handlers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/handlers.ts -------------------------------------------------------------------------------- /src/server/handlers/onSignatureHelp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/handlers/onSignatureHelp.ts -------------------------------------------------------------------------------- /src/server/hover/commentRanges.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/hover/commentRanges.ts -------------------------------------------------------------------------------- /src/server/hover/docs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/hover/docs.ts -------------------------------------------------------------------------------- /src/server/hover/hoverContent.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/hover/hoverContent.ts -------------------------------------------------------------------------------- /src/server/hover/keywords/assert.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/hover/keywords/assert.md -------------------------------------------------------------------------------- /src/server/hover/keywords/func.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/hover/keywords/func.md -------------------------------------------------------------------------------- /src/server/hover/keywords/import.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/hover/keywords/import.md -------------------------------------------------------------------------------- /src/server/hover/keywords/let.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/hover/keywords/let.md -------------------------------------------------------------------------------- /src/server/hover/keywords/var.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/hover/keywords/var.md -------------------------------------------------------------------------------- /src/server/imports.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/imports.ts -------------------------------------------------------------------------------- /src/server/information.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/information.ts -------------------------------------------------------------------------------- /src/server/motoko.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/motoko.ts -------------------------------------------------------------------------------- /src/server/navigation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/navigation.ts -------------------------------------------------------------------------------- /src/server/server.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/server.spec.ts -------------------------------------------------------------------------------- /src/server/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/server.ts -------------------------------------------------------------------------------- /src/server/syntax.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/syntax.spec.ts -------------------------------------------------------------------------------- /src/server/syntax.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/syntax.ts -------------------------------------------------------------------------------- /src/server/test/completion.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/test/completion.spec.ts -------------------------------------------------------------------------------- /src/server/test/definition.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/test/definition.spec.ts -------------------------------------------------------------------------------- /src/server/test/extraFlags.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/test/extraFlags.spec.ts -------------------------------------------------------------------------------- /src/server/test/formatter.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/test/formatter.spec.ts -------------------------------------------------------------------------------- /src/server/test/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/test/helpers.ts -------------------------------------------------------------------------------- /src/server/test/hover.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/test/hover.spec.ts -------------------------------------------------------------------------------- /src/server/test/mock.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/test/mock.ts -------------------------------------------------------------------------------- /src/server/test/references.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/test/references.spec.ts -------------------------------------------------------------------------------- /src/server/test/signatureHelp.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/test/signatureHelp.spec.ts -------------------------------------------------------------------------------- /src/server/utils.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/utils.spec.ts -------------------------------------------------------------------------------- /src/server/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/server/utils.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/src/utils.ts -------------------------------------------------------------------------------- /syntaxes/Candid.tmLanguage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/syntaxes/Candid.tmLanguage -------------------------------------------------------------------------------- /syntaxes/Major.tmLanguage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/syntaxes/Major.tmLanguage -------------------------------------------------------------------------------- /test/cache/Bottom.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/cache/Bottom.mo -------------------------------------------------------------------------------- /test/cache/Top.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/cache/Top.mo -------------------------------------------------------------------------------- /test/cache/issue-340.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/cache/issue-340.mo -------------------------------------------------------------------------------- /test/completion/a.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/completion/a.mo -------------------------------------------------------------------------------- /test/completion/b.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/completion/b.mo -------------------------------------------------------------------------------- /test/completion/c.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/completion/c.mo -------------------------------------------------------------------------------- /test/definition/A.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/definition/A.mo -------------------------------------------------------------------------------- /test/definition/B.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/definition/B.mo -------------------------------------------------------------------------------- /test/definition/C.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/definition/C.mo -------------------------------------------------------------------------------- /test/definition/chain.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/definition/chain.mo -------------------------------------------------------------------------------- /test/definition/circular.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/definition/circular.mo -------------------------------------------------------------------------------- /test/definition/dfx.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/definition/dfx.json -------------------------------------------------------------------------------- /test/definition/mops.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/definition/mops.toml -------------------------------------------------------------------------------- /test/definition/simple.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/definition/simple.mo -------------------------------------------------------------------------------- /test/definition/sub.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/definition/sub.mo -------------------------------------------------------------------------------- /test/definition/var.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/definition/var.mo -------------------------------------------------------------------------------- /test/flags/deprecated.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/flags/deprecated.mo -------------------------------------------------------------------------------- /test/formatter/unformatted.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/formatter/unformatted.mo -------------------------------------------------------------------------------- /test/hover/Actor.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/hover/Actor.mo -------------------------------------------------------------------------------- /test/hover/Keyword.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/hover/Keyword.mo -------------------------------------------------------------------------------- /test/hover/Module.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/hover/Module.mo -------------------------------------------------------------------------------- /test/hover/NamedActor.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/hover/NamedActor.mo -------------------------------------------------------------------------------- /test/hover/NamedModule.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/hover/NamedModule.mo -------------------------------------------------------------------------------- /test/signatureHelp/signatures.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/signatureHelp/signatures.mo -------------------------------------------------------------------------------- /test/syntax/sources.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/syntax/sources.mo -------------------------------------------------------------------------------- /test/workspace/package-set.dhall: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/workspace/package-set.dhall -------------------------------------------------------------------------------- /test/workspace/vessel.dhall: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/test/workspace/vessel.dhall -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dfinity/vscode-motoko/HEAD/tsconfig.json --------------------------------------------------------------------------------