Skip to content

Commit

Permalink
Merge pull request #124 from splunk/hover
Browse files Browse the repository at this point in the history
Inline hover
  • Loading branch information
JasonConger authored May 21, 2024
2 parents 2371de9 + c64b6db commit 42fc712
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
25 changes: 25 additions & 0 deletions test/spec.stats.test.js
Original file line number Diff line number Diff line change
@@ -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)
})

0 comments on commit 42fc712

Please sign in to comment.