@macroforge/typescript-plugin 0.1.34 → 0.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/package.json +2 -2
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AAEH,OAAO,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAmdrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,iBAAS,IAAI,CAAC,OAAO,EAAE;IAAE,UAAU,EAAE,OAAO,EAAE,CAAA;CAAE;mBAcxB,EAAE,CAAC,MAAM,CAAC,gBAAgB;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AAEH,OAAO,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAmdrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,iBAAS,IAAI,CAAC,OAAO,EAAE;IAAE,UAAU,EAAE,OAAO,EAAE,CAAA;CAAE;mBAcxB,EAAE,CAAC,MAAM,CAAC,gBAAgB;EAg+DjD;AAED,SAAS,IAAI,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1298,7 +1298,10 @@ function init(modules) {
|
|
|
1298
1298
|
return originalGetQuickInfoAtPosition(fileName, position);
|
|
1299
1299
|
}
|
|
1300
1300
|
// Check for macro hover first (JSDoc @derive comments and decorators)
|
|
1301
|
-
|
|
1301
|
+
// Use the *original* snapshot for macro/decorator hover detection.
|
|
1302
|
+
// The plugin's host hook returns expanded code where macro directives
|
|
1303
|
+
// are stripped by default, which would make macro hover impossible.
|
|
1304
|
+
const snapshot = originalGetScriptSnapshot(fileName);
|
|
1302
1305
|
if (snapshot) {
|
|
1303
1306
|
const text = snapshot.getText(0, snapshot.getLength());
|
|
1304
1307
|
const macroHover = getMacroHoverInfo(text, position, tsModule);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@macroforge/typescript-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.36",
|
|
4
4
|
"description": "TypeScript language service plugin that augments classes decorated with @derive to include macro-generated methods.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"test": "bun run build && node --test tests/**/*.test.js"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"macroforge": "^0.1.
|
|
36
|
+
"macroforge": "^0.1.36"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"typescript": ">=5.0.0"
|