Skip to content

Commit 8cbbadc

Browse files
author
Святослав Зайцев
committed
fixup! fix(51225): Go-to-definition on case or default should jump to the containing switch statement if available.
1 parent b4ccd4e commit 8cbbadc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/goToDefinition.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,9 @@ namespace ts.GoToDefinition {
525525
fileName: sourceFile.fileName,
526526
textSpan: createTextSpanFromNode(switchKeyword!),
527527
kind: ScriptElementKind.label,
528-
name: 'switch',
528+
name: "switch",
529529
containerKind: ScriptElementKind.unknown,
530-
containerName: '',
530+
containerName: "",
531531
contextSpan: createTextSpanFromNode(statement),
532532
isLocal: false,
533533
isAmbient: false,

0 commit comments

Comments
 (0)