File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 22 "name" : " vscode-solidity-inspector" ,
33 "displayName" : " Solidity Inspector" ,
44 "description" : " A vscode extension used to inspect Solidity files" ,
5- "version" : " 1.0.1 " ,
5+ "version" : " 1.0.3 " ,
66 "engines" : {
77 "vscode" : " ^1.72.0"
88 },
Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ async function unusedImportsActiveFile(editor) {
3838 editor . setDecorations ( decorationType , [ ] ) ;
3939
4040 const text = editor . document . getText ( ) ;
41+
42+ const solhintRuleString = "solhint-disable no-unused-import"
43+ if ( text . includes ( solhintRuleString ) ) return ;
44+
4145 const importRegex = / i m p o r t \s + ( (?: \{ .+ ?\} \s + f r o m \s + ) ? (?: \" .* ?\" | ' .* ?' ) ) ; / g;
4246 const imports = text . match ( importRegex ) || [ ] ;
4347 const unusedImportDecorations = [ ] ;
You can’t perform that action at this time.
0 commit comments