diff --git a/lib/xcodesnippet/commands/install.rb b/lib/xcodesnippet/commands/install.rb index 826457d..3372596 100644 --- a/lib/xcodesnippet/commands/install.rb +++ b/lib/xcodesnippet/commands/install.rb @@ -58,6 +58,9 @@ def extract_front_matter! @snippet.title = front_matter["title"] || "" @snippet.summary = front_matter["summary"] || "" @snippet.completion_scopes = [front_matter["completion-scope"]] || front_matter["completion-scopes"] || "All" + @snippet.completion_scopes.collect! { |var| + var == "Function or Method" ? "CodeBlock" : var + } @snippet.identifier = SecureRandom.uuid().upcase @snippet.is_user_snippet = true @snippet.version = 0