Skip to content

Commit 8605ea2

Browse files
committed
Do not required A for lens
Signed-off-by: Liam Allan <[email protected]>
1 parent abb2be6 commit 8605ea2

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

src/lensProvider.js

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,20 @@ module.exports = class lensProvider {
2929
line = line.padEnd(30);
3030
// Not a comment
3131
if (line[6] !== `*`) {
32-
if (line[5].toUpperCase() === `A`) {
33-
// Is a record format definition
34-
if (line[16].toUpperCase() === `R`) {
35-
const name = line.substring(18, 28).trim();
32+
// Is a record format definition
33+
if (line[16].toUpperCase() === `R`) {
34+
const name = line.substring(18, 28).trim();
3635

37-
codeLens.push(new vscode.CodeLens(
38-
new vscode.Range(
39-
index, 0, index, 0
40-
),
41-
{
42-
command: `vscode-displayfile.render`,
43-
title: `Preview ${name}`,
44-
arguments: [lines, name, document.languageId]
45-
}
46-
));
47-
}
36+
codeLens.push(new vscode.CodeLens(
37+
new vscode.Range(
38+
index, 0, index, 0
39+
),
40+
{
41+
command: `vscode-displayfile.render`,
42+
title: `Preview ${name}`,
43+
arguments: [lines, name, document.languageId]
44+
}
45+
));
4846
}
4947
}
5048
});

0 commit comments

Comments
 (0)