onivim/oni

Snippets: Create workspace snippets provider

Open

#1,736 opened on Mar 7, 2018

View on GitHub
 (0 comments) (0 reactions) (0 assignees)TypeScript (11,389 stars) (336 forks)batch import
enhancementhelp wantedinsider

Description

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

Contributor guide

Snippets: Create workspace snippets provider · onivim/oni#1736 | Good First Issue