From 6e7a525d12146e1c7f9a1cd7763f59e01d849445 Mon Sep 17 00:00:00 2001 From: junderw Date: Mon, 26 Jun 2023 00:03:45 -0700 Subject: [PATCH] Fix: napi macro breaks rust-analyzer See issue: https://github.com/napi-rs/napi-rs/issues/944#issuecomment-1013002760 This will ignore expanding the napi macro for rust-analyzer, letting auto-complete work inside the napi impl blocks. --- .vscode/settings.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 692791184..323fa25e4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,6 @@ { "editor.tabSize": 2, "typescript.preferences.importModuleSpecifier": "relative", - "typescript.tsdk": "./backend/node_modules/typescript/lib" + "typescript.tsdk": "./backend/node_modules/typescript/lib", + "rust-analyzer.procMacro.ignored": { "napi-derive": ["napi"] } } \ No newline at end of file