We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efc1aef commit d8fd3faCopy full SHA for d8fd3fa
1 file changed
packages/ai-native/src/browser/contrib/intelligent-completions/source/line-change.source.ts
@@ -28,21 +28,13 @@ export class LineChangeCodeEditsSource extends BaseCodeEditsSource {
28
return this;
29
}
30
31
- private lastEditTime: number | null = null;
32
protected doTrigger(position: Position) {
33
const isLineChangeEnabled = this.preferenceService.getValid(AINativeSettingSectionsId.CodeEditsLineChange, false);
34
35
if (!isLineChangeEnabled || !position) {
36
return;
37
38
39
- // 如果在 60 秒内再次编辑代码,则不触发
40
- const currentTime = Date.now();
41
- if (this.lastEditTime && currentTime - this.lastEditTime < 60 * 1000) {
42
- return;
43
- }
44
-
45
- this.lastEditTime = currentTime;
46
this.setBean({
47
typing: ECodeEditsSourceTyping.LineChange,
48
position,
0 commit comments