Skip to content

Commit adfe12e

Browse files
committed
renamed files, removed redundent checks
1 parent 6261398 commit adfe12e

File tree

7 files changed

+90121
-8
lines changed

7 files changed

+90121
-8
lines changed

packages/core/src/codewhisperer/nextEditPrediction/PredictionKeyStrokeHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
import * as vscode from 'vscode'
7-
import { PredictionTracker } from './PredictionTracker'
7+
import { PredictionTracker } from './predictionTracker'
88

99
/**
1010
* Monitors document changes in the editor and track them for prediction.

packages/core/src/codewhisperer/nextEditPrediction/PredictionTracker.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ export class PredictionTracker {
4949
public async processEdit(document: vscode.TextDocument, previousContent: string): Promise<void> {
5050
const filePath = document.uri.fsPath
5151

52-
if (!document.uri.scheme.startsWith('file')) {
53-
return
54-
}
55-
5652
try {
5753
// Get existing snapshots for this file
5854
const fileSnapshots = this.snapshots.get(filePath) || []

packages/core/src/codewhisperer/nextEditPrediction/activation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
*/
55

66
import * as vscode from 'vscode'
7-
import { PredictionTracker } from './PredictionTracker'
8-
import { PredictionKeyStrokeHandler } from './PredictionKeyStrokeHandler'
7+
import { PredictionTracker } from './predictionTracker'
8+
import { PredictionKeyStrokeHandler } from './predictionKeyStrokeHandler'
99
import { getLogger } from '../../shared/logger/logger'
1010
import { ExtContext } from '../../shared/extensions'
1111

packages/core/src/test/codewhisperer/nextEditPrediction/PredictionTracker.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
FileSnapshot,
1313
FileTrackerConfig,
1414
PredictionTracker,
15-
} from '../../../codewhisperer/nextEditPrediction/PredictionTracker'
15+
} from '../../../codewhisperer/nextEditPrediction/predictionTracker'
1616
import { FakeExtensionContext } from '../../fakeExtensionContext'
1717
import { createMockDocument } from '../testUtil'
1818
import * as diffGenerator from '../../../codewhisperer/nextEditPrediction/diffContextGenerator'

test.json

Whitespace-only changes.

test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { get } from 'http' // edit 1
2+
import { getLogger } from './packages/core/src/shared' // edit 2
3+
4+
export function helloWorld() {
5+
// edits 3
6+
}

test2.json

Lines changed: 90111 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)