Skip to content

Commit 42fc712

Browse files
authored
Merge pull request #124 from splunk/hover
Inline hover
2 parents 2371de9 + c64b6db commit 42fc712

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
Complete documentation is available at the [extension wiki](https://github.com/splunk/vscode-extension-splunk/wiki)
44

5+
## [0.3.3]
6+
### New features
7+
- Added a hover provider to provide documenation on `hover` for .conf file stanzas and settings
8+
9+
### Issues fixed
10+
- Included .spec files for 9.1 and 9.1. Issue [#103](https://github.com/splunk/vscode-extension-splunk/issues/103)
11+
512
## [0.3.2]
613
### Issues fixed
714
- Updated type handler for `outpus.conf`. Issue [#99](https://github.com/splunk/vscode-extension-splunk/issues/99)

test/spec.stats.test.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
const fs = require('fs');
2+
const path = require('path');
3+
const specFolderLocation = './spec_files';
4+
const splunkSpec = require("../out/spec.js");
5+
const extensionPath = path.resolve(__dirname, '../');
6+
const specFileVersion = "9.2";
7+
8+
let stanzaCount = 0
9+
let settingCount = 0
10+
11+
fs.readdir(path.join(specFolderLocation, specFileVersion), function(err, files) {
12+
let list = files.filter(item => !(/(^|\/)\.[^\/\.]/g).test(item))
13+
console.log('.spec file count: %d', list.length)
14+
list.forEach(function (file) {
15+
let specFilePath = path.join(specFolderLocation, specFileVersion, file)
16+
let specConfig = splunkSpec.getSpecConfig(extensionPath, specFilePath);
17+
stanzaCount = stanzaCount + specConfig.stanzas.length
18+
specConfig.stanzas.forEach(function (stanza) {
19+
settingCount = settingCount + stanza.settings.length
20+
})
21+
})
22+
23+
console.log('stanza count: %d', stanzaCount)
24+
console.log('setting count: %d', settingCount)
25+
})

0 commit comments

Comments
 (0)