Thomas Smith

Results 165 comments of Thomas Smith

I've run into a bit of trouble with `GlobalSettingsListener`. It turns out that `EventListener`s are never garbage-collected. (I'm pretty sure this is a bug.) I have solved the problem with...

@FichteFoll Any thoughts on the above hack?

I wrote up some docs for the projection function. I'm not completely satisfied with it, but it might be good enough.

I imagine that the API would be something like this: - list_commands() → List[CommandInfo] - get_command_by_name(name) → CommandInfo Where CommandInfo is a namedtuple with the following properties: - name: string...

The easy way to do this is: ```python len([ v for v in view.window().views() if v.buffer_id() == view.buffer_id() ]) > 1 ``` Or, if you want to examine all windows:...

> if I have a window with 10.000 views Have you tried this? I did just to see what would happen, and the performance seemed nonlinear anyway. I'm not sure...

How long does it take Sublime to close thousands of file tabs on your machine? When I tested, it took about 40 seconds to create ten thousand tabs, and about...

After experimenting with the improved type hint output, I have come to the conclusion that it's still awful. But probably not totally unworkable.

The default rendering isn't any different, but I've used the new markup to make some basic improvements: In the `type-annotations-in-docs` branch, I've used a heavier weight for the parameter name,...

I've played around with this recently. The stumbling block for me is that I can't really think of any especially complex examples out in the wild. (Maybe this is a...