We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
getPasteEdits
5.6.0-dev.20240619
No response
a.ts
export interface Foo { } export const foo: Foo = {}
Foo
b.ts
|
The returned edits are at the same location:
{"seq":0,"type":"response","command":"getPasteEdits","request_seq":166,"success":true,"performanceData":{"updateGraphDurationMs":1.7999577522277832},"body":{"edits":[{"fileName":"/Users/matb/projects/sandbox/b.ts","textChanges":[{"start":{"line":1,"offset":1},"end":{"line":1,"offset":1},"newText":"import { Foo } from \"./a\";\n"},{"start":{"line":1,"offset":2},"end":{"line":1,"offset":2},"newText":"Foo"}]}],"fixId":"providePostPasteEdits"}} Info 567 [13:03:44.720] request: { "seq": 167, "type": "request", "command": "updateOpen", "arguments": { "changedFiles": [ { "fileName": "/Users/matb/projects/sandbox/b.ts", "textChanges": [ { "newText": "import { Foo } from \"./a\";\n", "start": { "line": 1, "offset": 1 }, "end": { "line": 1, "offset": 1 } }, { "newText": "Foo", "start": { "line": 1, "offset": 1 }, "end": { "line": 1, "offset": 1 } } ] } ], "closedFiles": [], "openFiles": [] } }
This causes VS Code to place the cursor incorrectly after applying the edit
There should be two edits: the import one on line 1 and the normal paste on line 2
1
2
The text was updated successfully, but these errors were encountered:
navya9singh
Successfully merging a pull request may close this issue.
π Search Terms
getPasteEdits
π Version & Regression Information
5.6.0-dev.20240619
β― Playground Link
No response
π» Code
a.ts
Foo
b.ts
at the|
(notice the blank lines before and after):|
π Actual behavior
The returned edits are at the same location:
This causes VS Code to place the cursor incorrectly after applying the edit
π Expected behavior
There should be two edits: the import one on line
1
and the normal paste on line2
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: