jiebi/CodeConvo huggingface dataset:
import { ServicesAccessor } from '../../../../editor/browser/editorExtensions.js'; import { Schemas } from '../../../../base/common/network.js'; import { ITextEditorOptions } from '../../../../platform/editor/common/editor.js'; <del> import { IUserDataProfileService } from '../../userDataProfile/common/userDataProfile.js'; </del> import { coalesce } from '../../../../base/common/arrays.js'; import { mainWindow, isAuxiliaryWindow } from '../../../../base/browser/window.js'; import { isIOS, isMacintosh } from '../../../../base/common/platform.js';
} } <del> const newWindowProfile = (options?.forceProfile </del> <ins> const newWindowProfile = options?.forceProfile </ins> ? this.userDataProfilesService.profiles.find(profile => profile.name === options?.forceProfile) <del> : undefined) ?? this.userDataProfileService.currentProfile; if (!newWindowProfile.isDefault) { </del> <ins> : undefined; if (newWindowProfile && !newWindowProfile.isDefault) { </ins> newPayload.push(['profile', newWindowProfile.name]); }
type VoiceChatSessionContext = 'view' | 'inline' | 'terminal' | 'quick' | 'editor'; const VoiceChatSessionContexts: VoiceChatSessionContext[] = ['view', 'inline', 'terminal', 'quick', 'editor']; <del> const TerminalChatExecute = MenuId.for('terminalChatInput'); // unfortunately, terminal decided to go with their own menu (https://github.com/microsoft/vscode/issues/208789) </del> // Global Context Keys (set on global context key service) const CanVoiceChat = ContextKeyExpr.and(CONTEXT_CHAT_ENABLED, HasSpeechProvider); const FocusInChatInput = ContextKeyExpr.or(CTX_INLINE_CHAT_FOCUSED, CONTEXT_IN_CHAT_INPUT);
), group: 'navigation', order: -1 <del> }, { id: TerminalChatExecute, when: ContextKeyExpr.and( HasSpeechProvider, ScopedChatSynthesisInProgress.negate(),	// hide when text to speech is in progress AnyScopedVoiceChatInProgress?.negate(),	// hide when voice chat is in progress ), group: 'navigation', order: -1 </del> }] }); }
import { IConfigurationService } from '../../../../../platform/configuration/common/configuration.js'; import { IContextKeyService } from '../../../../../platform/contextkey/common/contextkey.js'; import { IListService, IWorkbenchListOptions, WorkbenchList } from '../../../../../platform/list/browser/listService.js'; <del> import { CursorAtBoundary, ICellViewModel, CellEditState, CellFocusMode, ICellOutputViewModel, CellRevealType, CellRevealRangeType, CursorAtLineBoundary, INotebookViewZoneChangeAccessor } from '../notebookBrowser.js'; </del> <ins> import { CursorAtBoundary, ICellViewModel, CellEditState, ICellOutputViewModel, CellRevealType, CellRevealRangeType, CursorAtLineBoundary, INotebookViewZoneChangeAccessor } from '../notebookBrowser.js'; </ins> import { CellViewModel, NotebookViewModel } from '../viewModel/notebookViewModelImpl.js'; import { diff, NOTEBOOK_EDITOR_CURSOR_BOUNDARY, CellKind, SelectionStateType, NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY } from '../../common/notebookCommon.js'; import { ICellRange, cellRangesToIndexes, reduceCellRanges, cellRangesEqual } from '../../common/notebookRange.js';
notebookEditorCursorAtBoundaryContext.set('none'); })); <del> this._localDisposableStore.add(this.view.onMouseDblClick(() => { const focus = this.getFocusedElements()[0]; if (focus && focus.cellKind === CellKind.Markup && !focus.isInputCollapsed && !this._viewModel?.options.isReadOnly) { // scroll the cell into view if out of viewport const focusedCellIndex = this._getViewIndexUpperBound(focus); if (focusedCellIndex >= 0) { this._revealInViewWithMinimalScrolling(focusedCellIndex); } focus.updateEditState(CellEditState.Editing, 'dbclick'); focus.focusMode = CellFocusMode.Editor; } })); </del> // update visibleRanges const updateVisibleRanges = () => { if (!this.view.length) {