Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 0bf71e6

Browse files
committed
activeEditor -> textEditor
Rename the variable to match every other linter provider.
1 parent 9ffcfab commit 0bf71e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export default {
2727
grammarScopes: ['source.ruby', 'source.ruby.rails', 'source.ruby.rspec'],
2828
scope: 'file',
2929
lintOnFly: true,
30-
lint: async (activeEditor) => {
31-
const filePath = activeEditor.getPath();
30+
lint: async (textEditor) => {
31+
const filePath = textEditor.getPath();
3232
const fileExtension = extname(filePath).substr(1);
3333

3434
if (this.ignoredExtensions.includes(fileExtension)) {
@@ -37,7 +37,7 @@ export default {
3737

3838
const execArgs = ['-wc', '-E utf-8'];
3939
const execOpts = {
40-
stdin: activeEditor.getText(),
40+
stdin: textEditor.getText(),
4141
stream: 'stderr',
4242
};
4343
const output = await helpers.exec(this.executablePath, execArgs, execOpts);
@@ -49,7 +49,7 @@ export default {
4949
}
5050
const msgLine = Number.parseInt(matches[1] - 1, 10);
5151
toReturn.push({
52-
range: helpers.rangeFromLineNumber(activeEditor, msgLine),
52+
range: helpers.rangeFromLineNumber(textEditor, msgLine),
5353
type: matches[2],
5454
text: matches[3],
5555
filePath,

0 commit comments

Comments
 (0)