Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Fix CURRENT_MONTH Snippet variable. #2530

Merged
merged 2 commits into from
Sep 1, 2018

Conversation

CrossR
Copy link
Member

@CrossR CrossR commented Aug 30, 2018

This fixes the current month snippet variable, since its zero indexed. Having the month be one less than expected is a bit odd, so I brought it inline with VSCode (which the snippet provider is from).

I also added the other date based variables, and some placeholders for the others. I'm not sure if we will need them, and they are a bit more involved, so I left them for now. I also swapped the order around so it matches VSCode code base, which makes comparing a little easier.

CrossR added 2 commits August 30, 2018 22:33
Also added some of the other variables commented out, to be added later.
@codecov
Copy link

codecov bot commented Aug 30, 2018

Codecov Report

Merging #2530 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2530   +/-   ##
=======================================
  Coverage   44.51%   44.51%           
=======================================
  Files         351      351           
  Lines       14302    14302           
  Branches     1865     1865           
=======================================
  Hits         6367     6367           
  Misses       7709     7709           
  Partials      226      226
Impacted Files Coverage Δ
...r/src/Services/Snippets/SnippetVariableResolver.ts 66.66% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5beff5f...2e534bf. Read the comment docs.

@bryphe
Copy link
Member

bryphe commented Sep 1, 2018

Sweet! Thanks for adding these @CrossR 💯 Looks great!

@CrossR CrossR merged commit f5ca695 into onivim:master Sep 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants