onivim/oni

Snippets: Create workspace snippets provider

Open

#1,736 opened on 2018年3月7日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)TypeScript (11,389 stars) (336 forks)batch import
enhancementhelp wantedinsider

説明

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

コントリビューターガイド