Skip to content

Commit b98e124

Browse files
committed
isValidScopeToInspect types
1 parent 92c426a commit b98e124

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib_src/misc/scopes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @babel */
22

3-
import {Point, Range, RangeCompatible, TextEditor} from "atom"
3+
import { Point, Range, RangeCompatible, TextEditor, PointCompatible } from "atom"
44

55
const juliaScopes = ["source.julia", "source.embedded.julia"]
66
const openers = [
@@ -109,7 +109,7 @@ export function isCommentScope(scopes: readonly string[]) {
109109
* Supposed to be used within Atom-IDE integrations, whose `grammarScopes` setting doesn't support
110110
* embedded scopes by default.
111111
*/
112-
export function isValidScopeToInspect(editor, bufferPosition) {
112+
export function isValidScopeToInspect(editor: TextEditor, bufferPosition: PointCompatible) {
113113
const scopes = editor.scopeDescriptorForBufferPosition(bufferPosition).getScopesArray()
114114
return scopes.some(scope => {
115115
return juliaScopes.includes(scope)

0 commit comments

Comments
 (0)