Skip to content

Commit 8e1b095

Browse files
committed
cleaning the code
1 parent c61a08d commit 8e1b095

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class StartSessionAction extends EditorAction2 {
5656
typeof message !== 'undefined' && typeof message !== 'string'
5757
|| typeof autoSend !== 'undefined' && typeof autoSend !== 'boolean'
5858
|| typeof initialRange !== 'undefined' && !Range.isIRange(initialRange)
59-
|| typeof position !== 'undefined' && typeof !Position.isIPosition(position)) {
59+
|| typeof position !== 'undefined' && !Position.isIPosition(position)) {
6060
return false;
6161
}
6262
return true;
@@ -68,7 +68,6 @@ export class StartSessionAction extends EditorAction2 {
6868
if (arg && this._isInteractivEditorOptions(arg)) {
6969
options = arg;
7070
}
71-
console.log('options inside of run editor command : ', options);
7271
InlineChatController.get(editor)?.run(options);
7372
}
7473
}

src/vs/workbench/contrib/inlineChat/browser/inlineChatController.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,6 @@ export class InlineChatController implements IEditorContribution {
185185

186186
// ---- state machine
187187

188-
// TODO: maybe should instead use the position inside of the line number?
189-
// Makes the code more difficult but more coherent
190188
private _showWidget(initialRender: boolean = false, position?: IPosition) {
191189
assertType(this._editor.hasModel());
192190

@@ -222,7 +220,6 @@ export class InlineChatController implements IEditorContribution {
222220

223221
let session: Session | undefined = options.existingSession;
224222

225-
console.log('options : ', options);
226223
this._showWidget(true, options.position);
227224
this._zone.value.widget.updateInfo(localize('welcome.1', "AI-generated code may be incorrect"));
228225
this._zone.value.widget.placeholder = this._getPlaceholderText();
@@ -311,7 +308,6 @@ export class InlineChatController implements IEditorContribution {
311308
}
312309
});
313310

314-
console.log('options : ', options);
315311
this._showWidget(true, options.position);
316312

317313
this._sessionStore.add(this._editor.onDidChangeModel((e) => {

0 commit comments

Comments
 (0)