onivim/oni

Snippets: Create workspace snippets provider

Open

#1,736 建立於 2018年3月7日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)TypeScript (11,389 star) (336 fork)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

貢獻者指南