Skip to content

Commit 80ee546

Browse files
committed
Cut 1.8.0-rc.1
1 parent b3feb57 commit 80ee546

File tree

5 files changed

+188
-29
lines changed

5 files changed

+188
-29
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.7.15
1+
1.8.0-rc.1

debounce.py

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
# import sublime_plugin
2+
3+
# import time
4+
# import threading
5+
# from functools import partial
6+
# from collections import namedtuple
7+
8+
9+
# class TimeoutThread(threading.Thread):
10+
11+
# """TODOC"""
12+
13+
# should_stop = False
14+
# last_poke = 0
15+
16+
# _IdentData = namedtuple("_IdentData", "call_time callback args kwargs")
17+
18+
# def __init__(self, sleep=0.1, default_ident=None, default_timeout=None,
19+
# default_callback=None, *args, **kwargs):
20+
# super(TimeoutThread, self).__init__(*args, **kwargs)
21+
22+
# self.sleep = sleep
23+
# self.default_ident = default_ident
24+
# self.default_timeout = default_timeout
25+
# self.default_callback = default_callback
26+
27+
# self.ident_map = {}
28+
# self.lock = threading.Lock()
29+
30+
# def run(self):
31+
# while not self.should_stop:
32+
# time.sleep(self.sleep)
33+
34+
# if not self.ident_map:
35+
# continue
36+
37+
# # Defer callbacks to call so that we acquire the lock for as little
38+
# # time as necessary.
39+
# to_call = {}
40+
41+
# with self.lock:
42+
# for ident, data in self.ident_map.items():
43+
# if data.call_time < time.time():
44+
# to_call[ident] = data
45+
46+
# for key in to_call:
47+
# del self.ident_map[key]
48+
49+
# # Run in another thread?
50+
# for data in to_call.values():
51+
# data.callback(*data.args, **data.kwargs)
52+
53+
# def queue_stop(self):
54+
# """Set a flag to signal the desire of termination.
55+
# """
56+
# self.should_stop = True
57+
58+
# def poke(self, ident=None, timeout=None, callback=None, args=[], kwargs={}):
59+
# """TODOC"""
60+
# ident = ident or self.default_ident
61+
# timeout = timeout or self.default_timeout
62+
# callback = callback or self.default_callback
63+
# if timeout is None:
64+
# raise ValueError(
65+
# "Must provide timeout since no default has been set")
66+
# if callback is None:
67+
# raise ValueError(
68+
# "Must provide callback since no default has been set")
69+
70+
# data = self._IdentData(time.time() + timeout, callback, args, kwargs)
71+
72+
# with self.lock:
73+
# self.ident_map[ident] = data
74+
75+
76+
# # Global reference to our thread
77+
# defer_thread = None
78+
79+
80+
# def selection_callback(view):
81+
# print("selection timeout", view.id(), time.time())
82+
83+
84+
# def modified_callback(view):
85+
# print("modified timeout", view.id(), time.time())
86+
87+
88+
# class SelectionListener(sublime_plugin.EventListener):
89+
90+
# def on_selection_modified(self, view):
91+
# if not view.settings().get('is_widget'):
92+
# defer_thread.poke(view.id(), 0.6, partial(selection_callback, view))
93+
94+
# def on_modified(self, view):
95+
# if not view.settings().get('is_widget'):
96+
# # "Ident" needs to be different from the selection callback,
97+
# # so we just use the negative view id.
98+
# # The usual way would be to create a string.
99+
# defer_thread.poke(-view.id(), callback=modified_callback,
100+
# args=[view])
101+
102+
103+
# def plugin_loaded():
104+
# global defer_thread # to bad nonlocal only works for non-global variables
105+
# defer_thread = TimeoutThread(0.1, default_timeout=0.6)
106+
# defer_thread.start()
107+
108+
109+
# def plugin_unloaded():
110+
# defer_thread.queue_stop()

messages.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@
2626
"1.7.7": "messages/1.7.7.txt",
2727
"1.7.8": "messages/1.7.8.txt",
2828
"1.7.9": "messages/1.7.9.txt",
29+
"1.8.0-rc.1": "messages/1.8.0-rc.1.txt",
2930
"install": "messages/install.txt"
3031
}

messages/1.7.15.txt

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,3 @@
77

88
Enhancement:
99
- Reduce number of git --version calls (#493)
10-
11-
12-
💛 Git Gutter? Want to support development?
13-
14-
I've teamed up with Wes Bos to offer the following discounts:
15-
16-
+------------------------------------------------+
17-
| |
18-
| Use the coupon code GITGUTTER for $10 off |
19-
| |
20-
+------------------------------------------------+
21-
22-
🏅 ⭐ ES6 ⭐
23-
24-
👉 ES6.io/friend/GITGUTTER
25-
26-
🏅 ⭐ Sublime Text Book ⭐
27-
28-
👉 SublimeTextBook.com/friend/GITGUTTER
29-
30-
🏅 ⭐ React For Beginners ⭐
31-
32-
👉 ReactForBeginners.com/friend/GITGUTTER
33-
34-
35-
Join 15,000 other developers already learning with Wes Bos.
36-
37-
These are fantastic resources - 100% money back guarantee! 🌟

messages/1.8.0-rc.1.txt

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
1.8.0-rc.1:
2+
===========
3+
4+
A N N O U N C E M E N T
5+
6+
This pre-release adds enables usage of Windows Subsystem for Linux (WSL).
7+
8+
To enable WSL just setup a unix-like path in the "git_binary" setting.
9+
10+
"git_binary": "/usr/bin/git"
11+
12+
Known Issues:
13+
1. Git via WSL runs 2 to 3 times slower than Git for Windows, which may
14+
cause some reasonable delayes here and there.
15+
2. The WSL seems to have some issues with passing long texts through the
16+
stdio interface. The content is simply truncated sometimes. This issue
17+
is worked around by reading the commited file content directly into the
18+
cache file, but the result of a `git diff` may still be truncated on
19+
large files. So GitGutter may not see some of the changes in a file.
20+
21+
This WSL issue which can't be fixed by GitGutter at the moment.
22+
23+
---------------------------------------------------------------------------
24+
25+
C H A N G E L O G
26+
27+
Enhancement:
28+
- Sort settings by categories
29+
- Directly write git cache file to disk
30+
- Improve status bar text rendering
31+
32+
Internal:
33+
- Directly start asynchronous processes
34+
- Create GitGutterViewCache class
35+
- some others ...
36+
37+
Fix:
38+
- Check git version after settings change.
39+
- Always checkout files with LF on any OS.
40+
- Ensure not to leave zombie event listeners
41+
- Don't overwrite global settings in EventListener
42+
- Enable GitGutter via Preferences only.
43+
44+
README:
45+
- Update git_binary settings section
46+
47+
Feature:
48+
- Add WSL support (#500)
49+
50+
51+
💛 Git Gutter? Want to support development?
52+
53+
I've teamed up with Wes Bos to offer the following discounts:
54+
55+
+------------------------------------------------+
56+
| |
57+
| Use the coupon code GITGUTTER for $10 off |
58+
| |
59+
+------------------------------------------------+
60+
61+
🏅 ⭐ ES6 ⭐
62+
63+
👉 ES6.io/friend/GITGUTTER
64+
65+
🏅 ⭐ Sublime Text Book ⭐
66+
67+
👉 SublimeTextBook.com/friend/GITGUTTER
68+
69+
🏅 ⭐ React For Beginners ⭐
70+
71+
👉 ReactForBeginners.com/friend/GITGUTTER
72+
73+
74+
Join 15,000 other developers already learning with Wes Bos.
75+
76+
These are fantastic resources - 100% money back guarantee! 🌟

0 commit comments

Comments
 (0)