Skip to content

Remove long deprecated completions protocol commands#52346

Closed
sheetalkamat wants to merge 1 commit into
mainfrom
removeCompletions
Closed

Remove long deprecated completions protocol commands#52346
sheetalkamat wants to merge 1 commit into
mainfrom
removeCompletions

Conversation

@sheetalkamat
Copy link
Copy Markdown
Member

No description provided.

@typescript-bot
Copy link
Copy Markdown
Collaborator

Thanks for the PR! It looks like you've changed the TSServer protocol in some way. Please ensure that any changes here don't break consumers of the current TSServer API. For some extra review, we'll ping @sheetalkamat, @mjbvz, and @minestarks for you. Feel free to loop in other consumers/maintainers if necessary

Comment thread src/server/protocol.ts
Change = "change",
Close = "close",
/** @deprecated Prefer CompletionInfo -- see comment on CompletionsResponse */
Completions = "completions",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if there are any clients sending the string "completions" to TSServer.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought of that immediately after closing the tab, I have no idea how to check for that one...

Searching for executeCommand("completions", it seems not.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been deprecated since #25080

Copy link
Copy Markdown
Member

@DanielRosenwasser DanielRosenwasser Jan 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But does this mean we will never remove the long deprecated server/services API/commands ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eg Occurrences is another such command

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just think that if we want to remove these, we should be willing to send PRs to fix these plugins up.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say we can merge this if we send PRs by Monday to the above packages.

jakebailey
jakebailey previously approved these changes Jan 21, 2023
@jakebailey jakebailey dismissed their stale review January 21, 2023 00:27

Discarding, see discussion

@minestarks
Copy link
Copy Markdown
Member

Adding @zkat to confirm the protocol changes are OK for VS

Copy link
Copy Markdown
Contributor

@mjbvz mjbvz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for vscode

@sandersn
Copy link
Copy Markdown
Member

sandersn commented Mar 9, 2023

Reading the comments, it looks like this PR is blocked on sending PRs to update a number of projects that still use the old commands.

@sandersn
Copy link
Copy Markdown
Member

sandersn commented May 1, 2025

This has been sitting for 2.5 years. Is it still worth merging? Otherwise I'd like to close it.

@jakebailey
Copy link
Copy Markdown
Member

Given the new codebase will be using LSP I would think we could skip this

@sandersn sandersn closed this May 2, 2025
@github-project-automation github-project-automation Bot moved this from Waiting on author to Done in PR Backlog May 2, 2025
@microsoft microsoft locked as resolved and limited conversation to collaborators Nov 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Housekeeping Housekeeping PRs

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

8 participants