@effect/language-service 0.62.4 → 0.62.5
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/cli.js +3 -1
- package/cli.js.map +1 -1
- package/effect-lsp-patch-utils.js +3 -1
- package/effect-lsp-patch-utils.js.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/transform.js +3 -1
- package/transform.js.map +1 -1
package/index.js
CHANGED
|
@@ -3945,7 +3945,9 @@ function makeTypeScriptUtils(ts) {
|
|
|
3945
3945
|
} else {
|
|
3946
3946
|
return;
|
|
3947
3947
|
}
|
|
3948
|
-
|
|
3948
|
+
const importDeclaration = ts.findAncestor(accessedObject, ts.isImportDeclaration);
|
|
3949
|
+
if (importDeclaration) return;
|
|
3950
|
+
return { accessedObject, outerNode, replacementSpan, insideImportDeclaration: !!importDeclaration };
|
|
3949
3951
|
}
|
|
3950
3952
|
function parseDataForExtendsClassCompletion(sourceFile, position) {
|
|
3951
3953
|
const maybeInfos = parseAccessedExpressionForCompletion(sourceFile, position);
|