Skip to content

Commit

Permalink
revert microsoft#50757 (skip contextual type checking in JsDoc for Ty…
Browse files Browse the repository at this point in the history
…peScript files)
  • Loading branch information
a-tarasyuk committed Oct 13, 2022
1 parent e14a229 commit 69854bd
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 93 deletions.
2 changes: 0 additions & 2 deletions src/services/utilities.ts
Expand Up @@ -790,8 +790,6 @@ namespace ts {
}

export function getContextualTypeFromParentOrAncestorTypeNode(node: Expression, checker: TypeChecker): Type | undefined {
if (node.flags & (NodeFlags.JSDoc & ~NodeFlags.JavaScriptFile)) return undefined;

const contextualType = getContextualTypeFromParent(node, checker);
if (contextualType) return contextualType;

Expand Down

This file was deleted.

11 changes: 0 additions & 11 deletions tests/baselines/reference/renameForStringLiteral.baseline

This file was deleted.

14 changes: 0 additions & 14 deletions tests/cases/fourslash/findAllRefsForStringLiteral.ts

This file was deleted.

14 changes: 0 additions & 14 deletions tests/cases/fourslash/renameForStringLiteral.ts

This file was deleted.

0 comments on commit 69854bd

Please sign in to comment.