captbaritone / captbaritone/vscode-implicit-parentheses

Extension not showing parentheses for existing files

Open
#5 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
35
Forks
3
PR merge metrics
No merged PRs in 30d

Description

I found that the extension sometimes struggles to show parentheses for existing files. It doesn't show parentheses for the lines below. Copying the lines to another file does show parentheses there, but not even removing and re-adding the lines to the original files seems to force the parentheses to show up.

```ts
let translation = await translator.translateText(
text,
source === "auto" ? null : source as SourceLanguageCode, // <-- HERE
target as TargetLanguageCode,
{
preserveFormatting: true
}
);
```

```ts
let languages = focusedOption.name === "source" ? await translator.getSourceLanguages() : await translator.getTargetLanguages();
```

PS: The big parentheses option doesn't seem to work either. If the parentheses render, even with the option on, they show up as tiny subscript ones

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.