diff --git a/CHANGELOG.md b/CHANGELOG.md index 0649c25..6892e10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ Complete documentation is available at the [extension wiki](https://github.com/splunk/vscode-extension-splunk/wiki) +## [0.3.3] +### New features +- Added a hover provider to provide documenation on `hover` for .conf file stanzas and settings + +### Issues fixed +- Included .spec files for 9.1 and 9.1. Issue [#103](https://github.com/splunk/vscode-extension-splunk/issues/103) + ## [0.3.2] ### Issues fixed - Updated type handler for `outpus.conf`. Issue [#99](https://github.com/splunk/vscode-extension-splunk/issues/99) diff --git a/test/spec.stats.test.js b/test/spec.stats.test.js new file mode 100644 index 0000000..58fa2be --- /dev/null +++ b/test/spec.stats.test.js @@ -0,0 +1,25 @@ +const fs = require('fs'); +const path = require('path'); +const specFolderLocation = './spec_files'; +const splunkSpec = require("../out/spec.js"); +const extensionPath = path.resolve(__dirname, '../'); +const specFileVersion = "9.2"; + +let stanzaCount = 0 +let settingCount = 0 + +fs.readdir(path.join(specFolderLocation, specFileVersion), function(err, files) { + let list = files.filter(item => !(/(^|\/)\.[^\/\.]/g).test(item)) + console.log('.spec file count: %d', list.length) + list.forEach(function (file) { + let specFilePath = path.join(specFolderLocation, specFileVersion, file) + let specConfig = splunkSpec.getSpecConfig(extensionPath, specFilePath); + stanzaCount = stanzaCount + specConfig.stanzas.length + specConfig.stanzas.forEach(function (stanza) { + settingCount = settingCount + stanza.settings.length + }) + }) + + console.log('stanza count: %d', stanzaCount) + console.log('setting count: %d', settingCount) +}) \ No newline at end of file