Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize let/const exports in vscode.d.ts #216555

Open
roblourens opened this issue Jun 18, 2024 · 0 comments · May be fixed by #219596
Open

Normalize let/const exports in vscode.d.ts #216555

roblourens opened this issue Jun 18, 2024 · 0 comments · May be fixed by #219596
Assignees
Labels
Milestone

Comments

@roblourens
Copy link
Member

Some properties in extension API like

export let activeTextEditor: TextEditor | undefined;
are exported with let because they can change, but this also implies that extensions can set them. That isn't allowed, only vscode can change them. Some similar properties already use const. We should normalize these to const everywhere to avoid confusion.

readonly communicates the intent a little better, but this is a namespace, not properties on an interface. But I think it's clear from the name and behavior that these properties will change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant