Skip to content

Commit 2fbbb98

Browse files
committed
fix: import only lodash/debounce in main
1 parent fe88f95 commit 2fbbb98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
Grammar,
88
} from "atom";
99
import { StatusBar } from "atom/status-bar";
10-
import _ from "lodash";
10+
import debounce from "lodash/debounce";
1111
import { autorun } from "mobx";
1212
import React from "react";
1313
import InspectorPane from "./panes/inspector";
@@ -182,7 +182,7 @@ export function activate() {
182182
if (isMultilanguageGrammar(editor.getGrammar())) {
183183
editorSubscriptions.add(
184184
editor.onDidChangeCursorPosition(
185-
_.debounce(() => {
185+
debounce(() => {
186186
store.setGrammar(editor);
187187
}, 75)
188188
)

0 commit comments

Comments
 (0)