Skip to content

Commit 4266db1

Browse files
updated flow-bin to 0.71.0, try to solve 'Interoperability with sublimelinter' #47
1 parent d8ebc6d commit 4266db1

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
3-
"flow-bin": "0.70.0",
3+
"flow-bin": "0.71.0",
44
"flow-remove-types": "1.2.3",
55
"flow-typed": "2.4.0",
66
"jsdoc": "3.5.5"

src/commands/can_i_use/can_i_use_data.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/listeners/hover_description.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,17 @@ def on_hover(self, view, point, hover_zone) :
7070
if region.contains(point):
7171
return
7272

73+
try:
74+
# fix for #47 - "Interoperability with sublimelinter"
75+
import SublimeLinter
76+
regions_key = SublimeLinter.highlight_view.get_regions_keys(view)
77+
for key in regions_key:
78+
region = view.get_regions(key)[0]
79+
if region.contains(point):
80+
return
81+
except Exception as e:
82+
pass
83+
7384
region = view.word(point)
7485
word = view.substr(region)
7586
if not word.strip() :
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{"caption": "Tools", "children": [{"caption": "Npm/Yarn Scripts", "children": [], "id": "npm_scripts"}], "id": "tools"}]
1+
[{"caption": "Tools", "id": "tools", "children": [{"caption": "Npm/Yarn Scripts", "id": "npm_scripts", "children": []}]}]

0 commit comments

Comments
 (0)