Skip to content

Commit

Permalink
Apply review
Browse files Browse the repository at this point in the history
  • Loading branch information
suyoung.lee committed Dec 18, 2022
1 parent db1f6a1 commit 446ac7f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/documentation/ko/release-notes/TypeScript 4.9.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ You can [read up more on this change on GitHub](https://github.com/microsoft/Typ

## "Remove Unused Imports" 와 "Sort Imports" 편집기 명령어

이전까지 Typescript 는 import 를 관리하기 위한 편집기 명령어로 두 가지만을 지원했습니다.
지금까지 TypeScript는 import를 관리하기 위한 편집기 명령어로 단 두 가지만 지원했습니다.
예시를 위해 다음 코드를 참고하세요.

```ts
Expand All @@ -342,7 +342,7 @@ import { foo, bar } from "./helper";
let x: Moose | HoneyBadger = foo();
```

첫 번째는 사용되지 않는 import 를 제거하고 남은 import 를 정렬하는 "Organize Imports" 입니다.
먼저 사용하지 않는 import를 제거하고 남은 import를 정렬하는 "Organize Imports" 입니다.
이것은 파일을 다음과 같이 재작성합니다.

```ts
Expand All @@ -352,7 +352,7 @@ import { HoneyBadger, Moose } from "./zoo";
let x: Moose | HoneyBadger = foo();
```

Typescript 4.3 에서는, 파일 내 import를 *오직* 정렬만 하고 제거하지는 않는 "Sort Imports" 가 소개되었습니다. 이것은 파일을 다음과 같이 재작성합니다.
TypeScript 4.3에서, 파일 내 import를 *오직* 정렬만 하고 제거하지는 않는 "Sort Imports"가 도입되었습니다. 이것은 파일을 다음과 같이 재작성합니다.

```ts
import { bar, foo } from "./helper";
Expand All @@ -361,9 +361,9 @@ import { HoneyBadger, Moose, Zebra } from "./zoo";
let x: Moose | HoneyBadger = foo();
```

"Sort Imports" 에 대한 주의 사항은, Visual Studio Code 에서 이 기능이 수동으로 트리거할 수 있는 명령이 아닌 on-save 명령으로만 사용할 수 있었다는 점입니다.
"Sort Imports"에 대한 주의 사항은, Visual Studio Code에서 이 기능이 수동으로 트리거할 수 있는 명령이 아닌 on-save 명령으로만 사용할 수 있었다는 점입니다.

Typescript 4.9 는 나머지 절반을 추가하여 이제 "Remove Unused Improts" 기능을 제공합니다.
TypeScript 4.9는 나머지 절반을 추가하여 이제 "Remove Unused Imports" 기능을 제공합니다.
TypeScript는 이제 사용되지 않는 이름 import 및 구문 import를 제거하지만, 그 외 상대적인 순서는 그대로 유지합니다.

```ts
Expand All @@ -374,17 +374,17 @@ let x: Moose | HoneyBadger = foo();
```

이 기능은 두 명령어를 사용하고자 하는 모든 편집기에서 사용 가능합니다.
특히 Visual Studio Code (1.73 이상) 에선 이에 대한 빌트인 기능을 지원하며 *또한* Command Palette 를 통해 해당 명령어들을 확인할 수 있습니다.
특히 Visual Studio Code (1.73 이상)에선 이에 대한 빌트인 기능을 지원하며 *또한* Command Palette를 통해 해당 명령어들을 확인할 수 있습니다.
더 세분화된 "Remove Unused Imports" 또는 "Sort Imports" 사용을 선호하는 사용자는 원하는 경우 "Organize Imports" 키 조합을 재할당할 수 있습니다.

[여기서 이 기능의 세부 사항](https://github.com/microsoft/TypeScript/pull/50931)을 볼 수 있습니다.

## `return` 키워드에 대한 Go-to-Definition

Typescript는 이제 편집기에서 return 키워드에 대한 go-to-definition 기능이 수행되면 해당 함수의 상단부로 이동할 수 있게 합니다.
TypeScript는 이제 편집기에 `return` 키워드에 대한 go-to-definition 기능이 수행되면 해당 함수의 상단부로 이동할 수 있게 합니다.
이는 `return` 이 어떤 함수에 속하는지 빠르게 파악하는 데 도움이 됩니다.

Typescript 는 이 기능을 [`await``yield`](https://github.com/microsoft/TypeScript/issues/51223) 또는 [`switch`, `case`, 그리고 `default`](https://github.com/microsoft/TypeScript/issues/51225) 같은 더 많은 키워드에도 확장할 것으로 기대합니다.
TypeScript는 이 기능을 [`await``yield`](https://github.com/microsoft/TypeScript/issues/51223) 또는 [`switch`, `case`, 그리고 `default`](https://github.com/microsoft/TypeScript/issues/51225) 같은 더 많은 키워드에도 확장할 예정입니다.

[Oleksandr Tarasiuk](https://github.com/a-tarasyuk) 덕분에 [이 기능이 구현되었습니다](https://github.com/microsoft/TypeScript/pull/51227).

Expand Down

0 comments on commit 446ac7f

Please sign in to comment.