onivim/oni

Snippets: Create workspace snippets provider

Open

#1736 aperta il 7 mar 2018

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)TypeScript (336 fork)batch import
enhancementhelp wantedinsider

Metriche repository

Star
 (11.389 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

It'd be great to have a parallel snippets provider to the UserSnippetsProvider, that is per-workspace. It's often the case that each workspace has its own coding standards / boilerplate, and having per-workspace snippets makes a lot of sense.

The implementation would be very similiar to the UserSnippetsProvider - just the path is different, and we need to update it (or create a new instance) whenever the workspace changes: https://github.com/onivim/oni/blob/7ad938cbcfe8b25acd2d358e3e3cb94f4a00953c/browser/src/Services/Snippets/UserSnippetProvider.ts#L37

Guida contributor