Skip to content

Commit 6d23fa2

Browse files
committed
Enabled for JSON Files
Update the extension to also work within JSON files.
1 parent 4cca4cf commit 6d23fa2

File tree

5 files changed

+27
-7
lines changed

5 files changed

+27
-7
lines changed

CHANGELOG.md

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

33
All notable changes to this project will be documented in this file.
44

5+
## v1.0.2 - 2024-02-07
6+
7+
### Enabled for JSON Files
8+
9+
- Update the extension to also work within JSON files.
10+
511
## v1.0.1 - 2024-02-04
612

713
### Small README Update

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,19 @@ No known issues at this time.
2626

2727
## Release Notes
2828

29-
### 1.0.0
29+
### v1.0.2
30+
31+
Enabled for JSON Files
32+
33+
- Update the extension to also work within JSON files.
34+
35+
### v1.0.1
36+
37+
Small README Update
38+
39+
- Updated the README with the correct configuration option names.
40+
41+
### v1.0.0
3042

3143
Initial release of SPT Dev Extension.
3244

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"icon": "images/icon.png",
66
"author": "Tyler Brownell <brownelltyler@gmail.com>",
77
"publisher": "refringe",
8-
"version": "1.0.1",
8+
"version": "1.0.2",
99
"repository": {
1010
"type": "git",
1111
"url": "https://github.com/refringe/spt-dev-vscode-extension.git"
@@ -27,7 +27,8 @@
2727
"modding"
2828
],
2929
"activationEvents": [
30-
"onLanguage:typescript"
30+
"onLanguage:typescript",
31+
"onLanguage:json"
3132
],
3233
"main": "./dist/extension.js",
3334
"contributes": {
@@ -99,7 +100,8 @@
99100
"vscode:prepublish": "npm run package",
100101
"compile": "npm run transform-data && webpack",
101102
"watch": "npm run transform-data && webpack --watch",
102-
"package": "npm run transform-data && webpack --mode production --devtool hidden-source-map"
103+
"package": "npm run transform-data && webpack --mode production --devtool hidden-source-map",
104+
"release": "vsce package && vsce publish"
103105
},
104106
"devDependencies": {
105107
"@types/mocha": "^10.0.6",

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export function activate(context: vscode.ExtensionContext) {
7979
}
8080
}, null, context.subscriptions);
8181

82-
const hoverProvider = vscode.languages.registerHoverProvider('typescript', {
82+
const hoverProvider = vscode.languages.registerHoverProvider(['typescript', 'json'], {
8383
provideHover(document, position, token) {
8484
const word = document.getText(document.getWordRangeAtPosition(position));
8585
const itemData = itemsData[word]; // Access the data using the word as a key

0 commit comments

Comments
 (0)