We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a81d746 + 776b5e7 commit c2d0ef2Copy full SHA for c2d0ef2
2 files changed
package.json
@@ -2,7 +2,7 @@
2
"name": "vscode-solidity-inspector",
3
"displayName": "Solidity Inspector",
4
"description": "A vscode extension used to inspect Solidity files",
5
- "version": "1.0.1",
+ "version": "1.0.3",
6
"engines": {
7
"vscode": "^1.72.0"
8
},
src/commands/highlight-unused-imports.js
@@ -38,6 +38,10 @@ async function unusedImportsActiveFile(editor) {
38
editor.setDecorations(decorationType, []);
39
40
const text = editor.document.getText();
41
+
42
+ const solhintRuleString = "solhint-disable no-unused-import"
43
+ if (text.includes(solhintRuleString)) return;
44
45
const importRegex = /import\s+((?:\{.+?\}\s+from\s+)?(?:\".*?\"|'.*?'));/g;
46
const imports = text.match(importRegex) || [];
47
const unusedImportDecorations = [];
0 commit comments