Skip to content

Commit 97e36c7

Browse files
committed
work around hyperclick bug
1 parent 7779581 commit 97e36c7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/runtime/goto.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import path from 'path'
44
import fs from 'fs'
5-
import { CompositeDisposable } from 'atom'
5+
import { CompositeDisposable, Range } from 'atom'
66

77
import { client } from '../connection'
88
import modules from './modules'
@@ -155,7 +155,10 @@ class Goto {
155155
}).then(results => {
156156
// If the `goto` call fails or there is no where to go to, do nothing
157157
if (results.error) {
158-
reject(null)
158+
resolve({
159+
range: new Range([0,0], [0,0]),
160+
callback: () => {}
161+
})
159162
}
160163
resolve({
161164
range,

0 commit comments

Comments
 (0)