question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proposal for new snippets folder struct

See original GitHub issue
  • New folder: data/snippetsx
  • Subdirs names must be like: C,C++,Objective-C.MyPkgName, ie comma-separated lexer names, dot, custom package name.
  • Lexer property inside snippet files must be removed (or ignored)
  • To support snips for all lexers (and none lexer), we’ll use special name like all

This way Snippets plugin will FAST find snippets for one lexer, and FAST ignores all other subdirs. Plugin loading will be fast, no need in on_start, in threads in on_start.

We can convert all snips to new format. Work for 1-2 hours. @OlehL @kvichans @dinkumoil What do you think?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
OlehLcommented, Nov 13, 2020

Залил на гит обновление для плагина. Загрузчик будет грузить только сниппеты в новом формате. Но для старых есть команда, чтоб конвертировать их в новый формат. Нужно протестировать

0reactions
OlehLcommented, Nov 7, 2020

ok

Read more comments on GitHub >

github_iconTop Results From Across the Web

A few proposals for snippets - MSDN - Microsoft
by the default namespace plus the folder structure (like what VS sets as the namespace when adding a new class or interface file);...
Read more >
Kirby 4 Proposal: Organized directory structure #382 - GitHub
Create a pages folder in project with a subfolder for each page type (blueprint); Move page blueprints to page/blueprint.yml; Move page ...
Read more >
Organizing snippets (#332) · Issues - GitLab UX Research
Currently there is no way to group or organize snippets. ... It could end up in a way that more closely resembles a...
Read more >
[Pitch] Swift Snippets
The proposal centers around a convention for writing snippets in a Swift package, building and running them, and using them in DocC ...
Read more >
Snippet for creating folder + files in vscode - Stack Overflow
You can use the extension File Templates (v1.5.0). You are able to create global templates and specific templates for a project.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found