feat: try using sliding strategy
This commit is contained in:
parent
c3dcacf1a3
commit
d93e5a2e1b
1 changed files with 7 additions and 3 deletions
|
|
@ -324,10 +324,14 @@ export class SelectionChangeManager {
|
|||
await NextEditProvider.getInstance().deleteChain();
|
||||
|
||||
const nextEditableRegions =
|
||||
(await getNextEditableRegion(EditableRegionStrategy.Static, {
|
||||
cursorPosition: e.selections[0].anchor,
|
||||
// (await getNextEditableRegion(EditableRegionStrategy.Static, {
|
||||
// cursorPosition: e.selections[0].anchor,
|
||||
// filepath: localPathOrUriToPath(e.textEditor.document.uri.toString()),
|
||||
// ide: this.ide,
|
||||
// })) ?? [];
|
||||
(await getNextEditableRegion(EditableRegionStrategy.Sliding, {
|
||||
filepath: localPathOrUriToPath(e.textEditor.document.uri.toString()),
|
||||
ide: this.ide,
|
||||
fileLines: e.textEditor.document.getText().split("\n"),
|
||||
})) ?? [];
|
||||
|
||||
nextEditableRegions.forEach((region) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue