@effect/language-service 0.84.1 → 0.84.2

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 CHANGED
@@ -25942,7 +25942,7 @@ var runWith2 = (command, config2) => {
25942
25942
  // package.json
25943
25943
  var package_default = {
25944
25944
  name: "@effect/language-service",
25945
- version: "0.84.1",
25945
+ version: "0.84.2",
25946
25946
  publishConfig: {
25947
25947
  access: "public",
25948
25948
  directory: "dist"
@@ -28665,10 +28665,42 @@ function makeTypeCheckerUtils(ts, typeChecker, tsUtils) {
28665
28665
  if (node.parent && ts.isJsxOpeningElement(node.parent) && node.parent.tagName === node) return;
28666
28666
  if (node.parent && ts.isJsxClosingElement(node.parent) && node.parent.tagName === node) return;
28667
28667
  if (node.parent && ts.isJsxAttribute(node.parent) && node.parent.name === node) return;
28668
+ if (isInsideTypeOnlyHeritageExpression(node)) return;
28668
28669
  if (ts.isExpression(node) || ts.isTypeNode(node)) {
28669
28670
  return typeChecker.getTypeAtLocation(node);
28670
28671
  }
28671
28672
  }
28673
+ function isInsideTypeOnlyHeritageExpression(node) {
28674
+ if (ts.isExpressionWithTypeArguments(node)) {
28675
+ return isTypeOnlyHeritageClause(node.parent);
28676
+ }
28677
+ if (!ts.isIdentifier(node) && !ts.isPropertyAccessExpression(node)) {
28678
+ return false;
28679
+ }
28680
+ for (let current = node.parent; current; current = current.parent) {
28681
+ if (ts.isPropertyAccessExpression(current)) {
28682
+ continue;
28683
+ }
28684
+ if (ts.isExpressionWithTypeArguments(current)) {
28685
+ return isTypeOnlyHeritageClause(current.parent);
28686
+ }
28687
+ return false;
28688
+ }
28689
+ return false;
28690
+ }
28691
+ function isTypeOnlyHeritageClause(node) {
28692
+ if (!node || !ts.isHeritageClause(node)) {
28693
+ return false;
28694
+ }
28695
+ const container = node.parent;
28696
+ if (!container) {
28697
+ return false;
28698
+ }
28699
+ if (ts.isInterfaceDeclaration(container)) {
28700
+ return true;
28701
+ }
28702
+ return ts.isClassLike(container) && node.token === ts.SyntaxKind.ImplementsKeyword;
28703
+ }
28672
28704
  function resolveToGlobalSymbol(symbol4) {
28673
28705
  if (symbol4.flags & ts.SymbolFlags.Alias) {
28674
28706
  symbol4 = typeChecker.getAliasedSymbol(symbol4);