@glint/tsserver-plugin 1.4.1-unstable.ee13f9d → 2.0.1-unstable.4151d64
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.
|
@@ -1,3 +1,34 @@
|
|
|
1
1
|
declare const plugin: any;
|
|
2
2
|
export = plugin;
|
|
3
|
+
/**
|
|
4
|
+
* Return semantic tokens for semantic highlighting:
|
|
5
|
+
* https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide
|
|
6
|
+
function getEncodedSemanticClassifications<T>(
|
|
7
|
+
ts: typeof import('typescript'),
|
|
8
|
+
language: any, // Language<T>,
|
|
9
|
+
languageService: ts.LanguageService,
|
|
10
|
+
asScriptId: (fileName: string) => T,
|
|
11
|
+
getEncodedSemanticClassifications: ts.LanguageService['getEncodedSemanticClassifications'],
|
|
12
|
+
): ts.LanguageService['getEncodedSemanticClassifications'] {
|
|
13
|
+
return (filePath, span, format) => {
|
|
14
|
+
const fileName = filePath.replace(windowsPathReg, '/');
|
|
15
|
+
const result = getEncodedSemanticClassifications(fileName, span, format);
|
|
16
|
+
const sourceScript = language.scripts.get(asScriptId(fileName));
|
|
17
|
+
const root = sourceScript?.generated?.root;
|
|
18
|
+
if (root instanceof VirtualGtsCode) {
|
|
19
|
+
// This would remove all semantic highlighting from .gts files, including the TS parts
|
|
20
|
+
// outside of the `<template>` tags, which is probably undesirable.
|
|
21
|
+
// result.spans = [];
|
|
22
|
+
|
|
23
|
+
// We can push span to the end of the array to override previous entries.
|
|
24
|
+
// result.spans.push(
|
|
25
|
+
// 0,
|
|
26
|
+
// 100,
|
|
27
|
+
// 256, // class
|
|
28
|
+
// );
|
|
29
|
+
}
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
*/
|
|
3
34
|
//# sourceMappingURL=typescript-server-plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-server-plugin.d.ts","sourceRoot":"","sources":["../src/typescript-server-plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typescript-server-plugin.d.ts","sourceRoot":"","sources":["../src/typescript-server-plugin.ts"],"names":[],"mappings":"AA+BA,QAAA,MAAM,MAAM,KA8FX,CAAC;AAEF,SAAS,MAAM,CAAC;AAqIhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG"}
|
|
@@ -10,7 +10,15 @@ const { createLanguageServicePlugin, } = require('@volar/typescript/lib/quicksta
|
|
|
10
10
|
* modules from CJS which lets us avoid a ton of hacks and complexity we (or Volar)
|
|
11
11
|
* would otherwise have to write to bridge the sync/async APIs.
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
let glintCorePath = '@glint/core';
|
|
14
|
+
try {
|
|
15
|
+
// @ts-expect-error esbuild define
|
|
16
|
+
glintCorePath = GLINT_CORE_PATH;
|
|
17
|
+
}
|
|
18
|
+
catch {
|
|
19
|
+
// Ignore; must not be running in esbuild context
|
|
20
|
+
}
|
|
21
|
+
const glintCore = jiti(glintCorePath);
|
|
14
22
|
const { VirtualGtsCode, LooseModeBackingComponentClassVirtualCode, augmentDiagnostics } = glintCore;
|
|
15
23
|
const plugin = createLanguageServicePlugin((ts, info) => {
|
|
16
24
|
const { findConfig, createEmberLanguagePlugin } = glintCore;
|
|
@@ -32,6 +40,32 @@ const plugin = createLanguageServicePlugin((ts, info) => {
|
|
|
32
40
|
// info.languageService,
|
|
33
41
|
// ]);
|
|
34
42
|
info.languageService = proxyLanguageServiceForGlint(ts, language, info.languageService, (fileName) => fileName);
|
|
43
|
+
const resolveModuleNameLiterals = info.languageServiceHost.resolveModuleNameLiterals?.bind(info.languageServiceHost);
|
|
44
|
+
if (resolveModuleNameLiterals) {
|
|
45
|
+
// TS isn't aware of our custom .gts/.gjs extensions by default which causes
|
|
46
|
+
// issues with resolving imports that omit extensions. We hackishly "teach"
|
|
47
|
+
// TS about these extensions by overriding `resolveModuleNameLiterals` to
|
|
48
|
+
// inject non-existent imports that cause TS to consider the extensions when
|
|
49
|
+
// resolving.
|
|
50
|
+
//
|
|
51
|
+
// Origin of this hack:
|
|
52
|
+
// https://github.com/typed-ember/glint/issues/806#issuecomment-2758616327
|
|
53
|
+
info.languageServiceHost.resolveModuleNameLiterals = (moduleLiterals, containingFile, redirectedReference, options, ...rest) => {
|
|
54
|
+
let fakeImportNodes = [];
|
|
55
|
+
if (moduleLiterals.length > 0) {
|
|
56
|
+
fakeImportNodes.push({
|
|
57
|
+
...moduleLiterals[0],
|
|
58
|
+
text: './__NONEXISTENT_GLINT_HACK__.gts',
|
|
59
|
+
});
|
|
60
|
+
fakeImportNodes.push({
|
|
61
|
+
...moduleLiterals[0],
|
|
62
|
+
text: './__NONEXISTENT_GLINT_HACK__.gjs',
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
const result = resolveModuleNameLiterals([...fakeImportNodes, ...moduleLiterals], containingFile, redirectedReference, options, ...rest);
|
|
66
|
+
return result.slice(fakeImportNodes.length);
|
|
67
|
+
};
|
|
68
|
+
}
|
|
35
69
|
// #3963
|
|
36
70
|
// const timer = setInterval(() => {
|
|
37
71
|
// if (info.project['program']) {
|
|
@@ -57,13 +91,17 @@ languageService, asScriptId) {
|
|
|
57
91
|
const proxyCache = new Map();
|
|
58
92
|
const getProxyMethod = (target, p) => {
|
|
59
93
|
switch (p) {
|
|
60
|
-
|
|
94
|
+
case 'getCompletionsAtPosition':
|
|
95
|
+
return getCompletionsAtPosition(ts, language, languageService, asScriptId, target[p]);
|
|
61
96
|
// case 'getCompletionEntryDetails': return getCompletionEntryDetails(language, asScriptId, target[p]);
|
|
62
97
|
// case 'getCodeFixesAtPosition': return getCodeFixesAtPosition(target[p]);
|
|
63
98
|
// case 'getDefinitionAndBoundSpan': return getDefinitionAndBoundSpan(ts, language, languageService, glintOptions, asScriptId, target[p]);
|
|
64
99
|
// case 'getQuickInfoAtPosition': return getQuickInfoAtPosition(ts, target, target[p]);
|
|
65
100
|
// TS plugin only
|
|
66
|
-
// case
|
|
101
|
+
// Left as an example in case we want to augment semantic classification in .gts files.
|
|
102
|
+
// e.g. Vue does this to semantically classify Component names as `class` tokens.
|
|
103
|
+
// case 'getEncodedSemanticClassifications':
|
|
104
|
+
// return getEncodedSemanticClassifications(ts, language, target, asScriptId, target[p]);
|
|
67
105
|
case 'getSemanticDiagnostics':
|
|
68
106
|
return getSemanticDiagnostics(ts, language, languageService, asScriptId, target[p]);
|
|
69
107
|
}
|
|
@@ -86,6 +124,35 @@ languageService, asScriptId) {
|
|
|
86
124
|
},
|
|
87
125
|
});
|
|
88
126
|
}
|
|
127
|
+
function getCompletionsAtPosition(ts, language, // Language<T>,
|
|
128
|
+
languageService, asScriptId, getCompletionsAtPosition) {
|
|
129
|
+
return (fileName, position, options, formattingSettings) => {
|
|
130
|
+
try {
|
|
131
|
+
const sourceScript = language.scripts.get(asScriptId(fileName));
|
|
132
|
+
const root = sourceScript?.generated?.root;
|
|
133
|
+
const transformedModule = root?.transformedModule;
|
|
134
|
+
const completions = getCompletionsAtPosition(fileName, position, options, formattingSettings);
|
|
135
|
+
const transformedRange = transformedModule?.getTransformedRange(transformedModule.originalFileName, position, position);
|
|
136
|
+
if (completions && transformedRange) {
|
|
137
|
+
// for attribute names on elements, we do not want the wrapping `"`.
|
|
138
|
+
if (transformedRange.mapping?.parent?.sourceNode.type === 'ElementNode') {
|
|
139
|
+
completions.entries = completions.entries.map((e) => ({
|
|
140
|
+
...e,
|
|
141
|
+
name: e.name.replace(/^"/, '').replace(/"$/, ''),
|
|
142
|
+
sortText: e.sortText.replace(/\\"/g, ''),
|
|
143
|
+
}));
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
console.log(completions);
|
|
147
|
+
return completions;
|
|
148
|
+
}
|
|
149
|
+
catch (e) {
|
|
150
|
+
console.log('error', e?.message);
|
|
151
|
+
console.log(e);
|
|
152
|
+
throw e;
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
}
|
|
89
156
|
function getSemanticDiagnostics(ts, language, // Language<T>,
|
|
90
157
|
languageService, asScriptId, getSemanticDiagnostics) {
|
|
91
158
|
return (fileName) => {
|
|
@@ -107,8 +174,40 @@ languageService, asScriptId, getSemanticDiagnostics) {
|
|
|
107
174
|
if (!sourceFile) {
|
|
108
175
|
return tsDiagnostics;
|
|
109
176
|
}
|
|
110
|
-
const augmentedTsDiagnostics = augmentDiagnostics(transformedModule, tsDiagnostics);
|
|
177
|
+
const augmentedTsDiagnostics = augmentDiagnostics(ts, sourceFile, transformedModule, tsDiagnostics);
|
|
111
178
|
return augmentedTsDiagnostics;
|
|
112
179
|
};
|
|
113
180
|
}
|
|
181
|
+
const windowsPathReg = /\\/g;
|
|
182
|
+
/**
|
|
183
|
+
* Return semantic tokens for semantic highlighting:
|
|
184
|
+
* https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide
|
|
185
|
+
function getEncodedSemanticClassifications<T>(
|
|
186
|
+
ts: typeof import('typescript'),
|
|
187
|
+
language: any, // Language<T>,
|
|
188
|
+
languageService: ts.LanguageService,
|
|
189
|
+
asScriptId: (fileName: string) => T,
|
|
190
|
+
getEncodedSemanticClassifications: ts.LanguageService['getEncodedSemanticClassifications'],
|
|
191
|
+
): ts.LanguageService['getEncodedSemanticClassifications'] {
|
|
192
|
+
return (filePath, span, format) => {
|
|
193
|
+
const fileName = filePath.replace(windowsPathReg, '/');
|
|
194
|
+
const result = getEncodedSemanticClassifications(fileName, span, format);
|
|
195
|
+
const sourceScript = language.scripts.get(asScriptId(fileName));
|
|
196
|
+
const root = sourceScript?.generated?.root;
|
|
197
|
+
if (root instanceof VirtualGtsCode) {
|
|
198
|
+
// This would remove all semantic highlighting from .gts files, including the TS parts
|
|
199
|
+
// outside of the `<template>` tags, which is probably undesirable.
|
|
200
|
+
// result.spans = [];
|
|
201
|
+
|
|
202
|
+
// We can push span to the end of the array to override previous entries.
|
|
203
|
+
// result.spans.push(
|
|
204
|
+
// 0,
|
|
205
|
+
// 100,
|
|
206
|
+
// 256, // class
|
|
207
|
+
// );
|
|
208
|
+
}
|
|
209
|
+
return result;
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
*/
|
|
114
213
|
//# sourceMappingURL=typescript-server-plugin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-server-plugin.js","sourceRoot":"","sources":["../src/typescript-server-plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typescript-server-plugin.js","sourceRoot":"","sources":["../src/typescript-server-plugin.ts"],"names":[],"mappings":"AAEA,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AACvC,MAAM,IAAI,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC;AAIpC,MAAM,EACJ,2BAA2B,GAC5B,GAAG,OAAO,CAAC,iEAAiE,CAAC,CAAC;AAE/E;;;;;;;;GAQG;AACH,IAAI,aAAa,GAAG,aAAa,CAAC;AAClC,IAAI,CAAC;IACH,kCAAkC;IAClC,aAAa,GAAG,eAAe,CAAC;AAClC,CAAC;AAAC,MAAM,CAAC;IACP,iDAAiD;AACnD,CAAC;AACD,MAAM,SAAS,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC;AAEtC,MAAM,EAAE,cAAc,EAAE,yCAAyC,EAAE,kBAAkB,EAAE,GAAG,SAAS,CAAC;AAEpG,MAAM,MAAM,GAAG,2BAA2B,CACxC,CAAC,EAA+B,EAAE,IAAgC,EAAE,EAAE;IACpE,MAAM,EAAE,UAAU,EAAE,yBAAyB,EAAE,GAAG,SAAS,CAAC;IAE5D,MAAM,GAAG,GAAG,IAAI,CAAC,mBAAmB,CAAC,mBAAmB,EAAE,CAAC;IAC3D,MAAM,WAAW,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;IAEpC,4DAA4D;IAC5D,MAAM,aAAa,GAAG,KAAK,CAAC;IAE5B,IAAI,WAAW,EAAE,CAAC;QAChB,IAAI,aAAa,EAAE,CAAC;YACl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AAQ,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;QAChE,IAAI,CAAC,YAAY,EAAE,SAAS,EAAE,CAAC;YAC7B,OAAO,aAAa,CAAC;QACvB,CAAC;QAED,MAAM,IAAI,GAAG,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC;QACzC,IACE,CAAC,CAAC,IAAI,YAAY,cAAc,IAAI,IAAI,YAAY,yCAAyC,CAAC,EAC9F,CAAC;YACD,OAAO,aAAa,CAAC;QACvB,CAAC;QAED,MAAM,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC;QACjD,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,OAAO,aAAa,CAAC;QACvB,CAAC;QAED,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO,aAAa,CAAC;QACvB,CAAC;QAED,MAAM,sBAAsB,GAAG,kBAAkB,CAC/C,EAAE,EACF,UAAU,EACV,iBAAiB,EACjB,aAAa,CACd,CAAC;QAEF,OAAO,sBAAsB,CAAC;IAChC,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,cAAc,GAAG,KAAK,CAAC;AAE7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glint/tsserver-plugin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1-unstable.4151d64",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"repository": "typed-ember/glint",
|
|
6
6
|
"description": "TypeScript Server Plugin for Glint",
|
|
@@ -18,15 +18,28 @@
|
|
|
18
18
|
"test:typecheck": "echo 'no standalone typecheck within this project'",
|
|
19
19
|
"test:tsc": "echo 'no standalone typecheck within this project'",
|
|
20
20
|
"build": "tsc --build",
|
|
21
|
-
"prepack": "
|
|
21
|
+
"prepack": "pnpm build"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"
|
|
25
|
-
"@glint/core": "1.4.1-unstable.ee13f9d",
|
|
24
|
+
"@glint/core": "2.0.1-unstable.4151d64",
|
|
26
25
|
"@volar/language-core": "2.4.12",
|
|
27
|
-
"@volar/typescript": "2.4.12"
|
|
26
|
+
"@volar/typescript": "2.4.12",
|
|
27
|
+
"jiti": "~2.4.2",
|
|
28
|
+
"typescript": ">=5.6.0"
|
|
29
|
+
},
|
|
30
|
+
"release-plan": {
|
|
31
|
+
"semverIncrementAs": {
|
|
32
|
+
"major": "prerelease",
|
|
33
|
+
"minor": "prerelease",
|
|
34
|
+
"patch": "prerelease"
|
|
35
|
+
},
|
|
36
|
+
"semverIncrementTag": "alpha",
|
|
37
|
+
"publishTag": "alpha"
|
|
28
38
|
},
|
|
29
39
|
"publishConfig": {
|
|
30
40
|
"access": "public"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/node": "^22.13.11"
|
|
31
44
|
}
|
|
32
45
|
}
|