Skip to content

Commit cc1711b

Browse files
committed
feat: include interface detection in regex pattern
1 parent b5b0b83 commit cc1711b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/completionItems.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async function loadRemappings(rootPath) {
3333
function extractNames(filePath) {
3434
const fileContent = fs.readFileSync(filePath, 'utf8');
3535
const names = [];
36-
const regex = /\b(contract|library|type)\s+(\w+)/g; // Regex to match contract, library and type definitions
36+
const regex = /\b(contract|library|type|interface)\s+(\w+)/g; // Regex to match contract, library, type and interface definitions
3737
let match;
3838

3939
while ((match = regex.exec(fileContent)) !== null) {

0 commit comments

Comments
 (0)