mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
Last pass using ?.() for method call (#152231)
Follow up on f17b33faf2
This handles sightly more complex cases, changing:
```ts
if (a) {
a.b.c();
}
```
to:
```ts
a?.b.c();
```
This commit is contained in:
@@ -172,9 +172,7 @@ export function createExtHostComments(mainContext: IMainContext, commands: ExtHo
|
||||
$deleteCommentThread(commentControllerHandle: number, commentThreadHandle: number) {
|
||||
const commentController = this._commentControllers.get(commentControllerHandle);
|
||||
|
||||
if (commentController) {
|
||||
commentController.$deleteCommentThread(commentThreadHandle);
|
||||
}
|
||||
commentController?.$deleteCommentThread(commentThreadHandle);
|
||||
}
|
||||
|
||||
$provideCommentingRanges(commentControllerHandle: number, uriComponents: UriComponents, token: CancellationToken): Promise<IRange[] | undefined> {
|
||||
|
||||
Reference in New Issue
Block a user