-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Hook up prototype paste with imports for JS/TS #204665
Conversation
For microsoft/TypeScript#57262 but with proposed changes to ts protocol
arguments: GetPostPasteImportFixesRequestArgs; | ||
} | ||
export type DocumentRange = FileRangeRequestArgs; | ||
export type CopyRange = { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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")); |
There was a problem hiding this comment.
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
* Hook up prototype paste with imports for JS/TS For microsoft/TypeScript#57262 but with proposed changes to ts protocol * Support new api * Update
For microsoft/TypeScript#57262 but with proposed changes to ts protocol
cc @navya9singh