ipatalas / vscode-postfix-ts

Postfix notation for TypeScript/Javascript - extension for VS Code
MIT License
158 stars 43 forks source link

Enable usage of multiple '{{here}}' placeholder in a custom template #14

Closed AdrieanKhisbe closed 6 years ago

AdrieanKhisbe commented 6 years ago

as commit says :)

Here is the custom template I want to be able to support:

{
            "name": "ll",
            "description": "detailed log",
            "body": "console.log('{{expr}}', {{expr}});$0",
            "when": [
                "expression"
            ]
        }

I added test for the fixtures + Implementation is rather simple, feeding a global regexp to replace

codecov[bot] commented 6 years ago

Codecov Report

Merging #14 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master     #14   +/-   ##
======================================
  Coverage    99.3%   99.3%           
======================================
  Files          13      13           
  Lines         289     289           
  Branches       54      54           
======================================
  Hits          287     287           
  Misses          2       2
Impacted Files Coverage Δ
src/completionItemBuilder.ts 100% <100%> (ø) :arrow_up:

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 6174da3...125fdb6. Read the comment docs.

AdrieanKhisbe commented 6 years ago

Thanks @ipatalas 😃