Skip to content

Conversation

@mjbvz
Copy link
Collaborator

@mjbvz mjbvz commented Feb 7, 2024

For microsoft/TypeScript#57262 but with proposed changes to ts protocol

cc @navya9singh

@mjbvz mjbvz self-assigned this Feb 7, 2024
@mjbvz mjbvz added this to the March 2024 milestone Feb 7, 2024
arguments: GetPostPasteImportFixesRequestArgs;
}
export type DocumentRange = FileRangeRequestArgs;
export type CopyRange = {
Copy link
Member

Choose a reason for hiding this comment

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

Updated the protocol. I believe we can remove the CopyRange and DocumentRange here now since FileSpan extends TextSpan, so we can get the start and end locations from there.

Copy link
Member

Choose a reason for hiding this comment

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

I've updated the pull request @mjbvz microsoft/TypeScript#57262

return;
}

const edit = new vscode.DocumentPasteEdit('', vscode.l10n.t("Paste with imports"));
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This name should like come from TS

@mjbvz mjbvz modified the milestones: March 2024, April 2024 Mar 25, 2024
@mjbvz mjbvz modified the milestones: April 2024, May 2024 Apr 23, 2024
@mjbvz mjbvz marked this pull request as ready for review May 24, 2024 19:40
@mjbvz mjbvz enabled auto-merge (squash) May 24, 2024 19:41
@mjbvz mjbvz merged commit 934af75 into main May 24, 2024
@mjbvz mjbvz deleted the dev/mjbvz/ts-paste-with-imports-proto branch May 24, 2024 19:57
andremmsilva pushed a commit to PIC1G55/vscodeG55 that referenced this pull request May 26, 2024
* Hook up prototype paste with imports for JS/TS

For microsoft/TypeScript#57262 but with proposed changes to ts protocol

* Support new api

* Update
@microsoft microsoft locked and limited conversation to collaborators Jul 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants