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.
This commit is contained in:
junderw 2023-06-26 00:03:45 -07:00 committed by Mononaut
parent 4a15cd7abe
commit 6e7a525d12
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

View File

@ -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"] }
}