File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 8
8
} from "atom" ;
9
9
import React from "react" ;
10
10
import ReactDOM from "react-dom" ;
11
- import _ from "lodash" ;
11
+ import findKey from "lodash/findKey " ;
12
12
import os from "os" ;
13
13
import path from "path" ;
14
14
import Config from "./config" ;
@@ -76,7 +76,7 @@ export function grammarToLanguage(grammar: Grammar | null | undefined) {
76
76
const grammarLanguage = grammar . name . toLowerCase ( ) ;
77
77
const mappings = Config . getJson ( "languageMappings" ) ;
78
78
79
- const kernelLanguage = _ . findKey (
79
+ const kernelLanguage = findKey (
80
80
mappings ,
81
81
( l ) => l . toLowerCase ( ) === grammarLanguage
82
82
) ;
@@ -174,7 +174,7 @@ export function getEmbeddedScope(
174
174
const scopes = editor
175
175
. scopeDescriptorForBufferPosition ( position )
176
176
. getScopesArray ( ) ;
177
- return _ . find ( scopes , ( s ) => s . indexOf ( "source.embedded." ) === 0 ) ;
177
+ return scopes . find ( ( s ) => s . indexOf ( "source.embedded." ) === 0 ) ;
178
178
}
179
179
export function getEditorDirectory ( editor : TextEditor | null | undefined ) {
180
180
if ( ! editor ) {
You can’t perform that action at this time.
0 commit comments