From 1daeab72b238705bc9cb2c6abf2a0889e6ed4ad5 Mon Sep 17 00:00:00 2001 From: Alex Cao Date: Tue, 19 Jun 2018 13:31:54 -0700 Subject: [PATCH] Add configuration to package.json --- package.json | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5f24443..2e87414 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,28 @@ "key": "ctrl+alt+n", "mac": "cmd+alt+n", "when": "editorTextFocus" - }] + }], + + "configuration": { + "title": "Insert Numbers Configuration", + "properties": { + "insertnum.formatstr": { + "type": "string", + "default": "%d", + "description": "Format string for sprintf" + }, + "insertnum.start": { + "type": "number", + "default": 0, + "description": "Start number" + }, + "insertnum.step": { + "type": "number", + "default": 1, + "description": "Step" + } + } + } }, "scripts": { "vscode:prepublish": "node ./node_modules/vscode/bin/compile", @@ -51,4 +72,4 @@ "typescript": "^1.8.5", "vscode": "^0.11.0" } -} \ No newline at end of file +}