'Toggle Code Wrap' and 'Copy Code Snippet' conflict by themselves and with 'Collapse In Comment'
See original GitHub issueSTR
-
Using TM 4.5.5663beta in Firefox 58 or TM 4.5 in Chrome 63: install latest versions of: ‘GitHub Collapse In Comment’ 1.0.13 ‘GitHub Toggle Code Wrap’ 1.1.3 ‘GitHub Copy Code Snippet’ 0.1.0
-
here is a long code example:
SublimeLinter: error in SublimeLinter daemon:
SublimeLinter: --------------------
SublimeLinter: Traceback (most recent call last):
File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\queue.py", line 57, in loop
item = self.q.get(block=True, timeout=self.MIN_DELAY)
File "./python3.3/queue.py", line 175, in get
queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\queue.py", line 65, in loop
self.lint(view_id, timestamp)
File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\queue.py", line 111, in lint
self.callback(view_id, timestamp)
File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\sublime_linter.py", line 263, in lint
Linter.lint_view(view, filename, code, hit_time, callback)
File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\linter.py", line 1008, in lint_view
callback(cls.get_view(vid), linters, hit_time)
File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\sublime_linter.py", line 316, in highlight
highlights.draw(other_view)
File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\highlight.py", line 133, in draw
all.draw(view)
File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\highlight.py", line 477, in draw
icon = self.get_style("icon", style, error_type)
File "C:\Users\Kostas\AppData\Roaming\Sublime Text 3\Packages\SublimeLinter\lint\highlight.py", line 184, in wrapper
return persist.gutter_marks["icons"][error_type]
KeyError: 'warning'
SublimeLinter: --------------------
- Here is how the markdown is displayed, i.e. the code is not collapsed:
- Clicking the header:
- Disabling either ‘GitHub Toggle Code Wrap’ or ‘GitHub Copy Code Snippet’ or both fixes the issue:
Additionally, the two scripts ‘GitHub Toggle Code Wrap’ and ‘GitHub Copy Code Snippet’ work ok by themselves, but their icon is displayed on top of one another. and so, in order to be able to use them, you have to have only one enabled at a time.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How can I switch word wrap on and off in Visual Studio Code?
Go to the Preferences tab (menu File → Settings), and then search as “word wrap”. The ...
Read more >Global toggle code wrap button #7875 - facebook/docusaurus
This proposal is that this setting will be stored globally to set it to the users needs. Self-service. I'd be willing to do...
Read more >Visual Studio Code Key Bindings
Here you will find the complete list of key bindings for Visual Studio Code and how to change them.
Read more >VS Code tips — Toggle word wrap - YouTube
Today's VS Code command: toggle word wrapQuickly enable or disable word wrapping in the current file. This works independently of your ...
Read more >Write and edit source code | IntelliJ IDEA Documentation
Move and copy code fragments by dragging them in the editor. · To toggle between the upper and lower case for the selected...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
All fixed! Please make sure to update both scripts.
Hi @darkred!
Thanks for letting me know! Hmm, actually they behave differently depending on the priority; though either way, they misbehave! I’ll see what I can do later tonight.