jiebi/CodeConvo huggingface dataset:
<ins> { "comments": { "lineComment": "#", "blockComment": [ "#", " " ] }, "brackets": [ ["{", "}"], ["[", "]"], ["(", ")"] ], "autoClosingPairs": [ ["{", "}"], ["[", "]"], ["(", ")"], [""", """], ["'", "'"] ], "surroundingPairs": [ ["{", "}"], ["[", "]"], ["(", ")"], [""", """], ["'", "'"] ] } </ins>  No newline at end of file
<ins> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>fileTypes</key> <array> <string>ini</string> <string>INI</string> <string>inf</string> <string>INF</string> <string>reg</string> <string>REG</string> <string>lng</string> <string>cfg</string> <string>CFG</string> <string>url</string> <string>URL</string> <string>.editorconfig</string> </array> <key>name</key> <string>INI</string> <key>patterns</key> <array> <dict> <key>captures</key> <dict> <key>1</key> <dict> <key>name</key> <string>punctuation.definition.comment.ini</string> </dict> </dict> <key>match</key> <string>^s*(;|#).*$n?</string> <key>name</key> <string>comment.line.semicolon.ini</string> </dict> <dict> <key>captures</key> <dict> <key>1</key> <dict> <key>name</key> <string>punctuation.definition.section.ini</string> </dict> <key>2</key> <dict> <key>name</key> <string>entity.section.ini</string> </dict> <key>3</key> <dict> <key>name</key> <string>punctuation.definition.section.ini</string> </dict> </dict> <key>match</key> <string>^s*([)(.*?)(])</string> <key>name</key> <string>meta.tag.section.ini</string> </dict> <dict> <key>captures</key> <dict> <key>1</key> <dict> <key>name</key> <string>meta.property.ini</string> </dict> <key>2</key> <dict> <key>name</key> <string>punctuation.definition.quote.ini</string> </dict> <key>3</key> <dict> <key>name</key> <string>keyword.name.ini</string> </dict> <key>4</key> <dict> <key>name</key> <string>punctuation.definition.quote.ini</string> </dict> <key>5</key> <dict> <key>name</key> <string>punctuation.definition.equals.ini</string> </dict> <key>6</key> <dict> <key>name</key> <string>meta.value.ini</string> </dict> <key>7</key> <dict> <key>name</key> <string>punctuation.definition.quote.ini</string> </dict> <key>8</key> <dict> <key>name</key> <string>string.name.value.ini</string> </dict> <key>9</key> <dict> <key>name</key> <string>punctuation.definition.quote.ini</string> </dict> <key>10</key> <dict> <key>name</key> <string>comment.declarationline.semicolon.ini</string> </dict> </dict> <key>match</key> <string>^(s*(["']?)(.+?)(2)s*(=))?s*((["']?)(.*?)(7))s*(;.*)?$n?</string> <key>name</key> <string>meta.declaration.ini</string> </dict> </array> <key>scopeName</key> <string>source.ini</string> <key>uuid</key> <string>957acd74-6d7c-4732-a25b-5f66a1e637cd</string> </dict> </plist> </ins>
const renderLineInput: RenderLineInput = new RenderLineInput(true, true, lineRenderingData.content, lineRenderingData.continuesWithWrappedLine, lineRenderingData.isBasicASCII, lineRenderingData.containsRTL, 0, lineRenderingData.tokens, actualInlineDecorations, lineRenderingData.tabSize, lineRenderingData.startVisibleColumn,
"win32RegValueName": "CodeOSS", "win32AppId": "{{E34003BB-9E10-4501-8C11-BE3FAA83F23F}", "win32AppUserModelId": "Microsoft.CodeOSS", <ins> "win32ShellNameShort": "C&ode - OSS", </ins> "darwinBundleIdentifier": "com.visualstudio.code.oss", "reportIssueUrl": "https://github.com/Microsoft/vscode/issues/new", "urlProtocol": "code-oss"
this.statusbarHeight = isStatusbarHidden ? 0 : this.partLayoutInfo.statusbar.height; this.titlebarHeight = isTitlebarHidden ? 0 : this.partLayoutInfo.titlebar.height / getZoomFactor(); // adjust for zoom prevention <ins> const previousMaxPanelHeight = this.sidebarHeight - MIN_EDITOR_PART_HEIGHT; </ins> this.sidebarHeight = this.workbenchSize.height - this.statusbarHeight - this.titlebarHeight; let sidebarSize = new Dimension(sidebarWidth, this.sidebarHeight);
const maxPanelHeight = sidebarSize.height - MIN_EDITOR_PART_HEIGHT; if (isPanelHidden) { panelHeight = 0; <ins> } else if (this.panelHeight === previousMaxPanelHeight) { panelHeight = maxPanelHeight; </ins> } else if (this.panelHeight > 0) { panelHeight = Math.min(maxPanelHeight, Math.max(this.partLayoutInfo.panel.minHeight, this.panelHeight)); } else {
import * as strings from 'vs/base/common/strings'; import { Range } from 'vs/editor/common/core/range'; import * as editorCommon from 'vs/editor/common/editorCommon'; <del> import * as collections from 'vs/base/common/collections'; </del> import { Marker, Variable, Placeholder, Text, SnippetParser } from 'vs/editor/contrib/snippet/common/snippetParser'; export interface IIndentationNormalizer {
} static fromEmmet(template: string): CodeSnippet { <del> return EmmetSnippetParser.parse(template); </del> <ins> let matchFinalStops = template.match(/${0}|$0/g); if (!matchFinalStops || matchFinalStops.length === 1) { return CodeSnippet.fromTextmate(template); } // Emmet sometimes returns snippets with multiple ${0} // In such cases, replace ${0} with incremental tab stops const snippetMarkers: Marker[] = new SnippetParser(true, false).parse(template) || []; let getMaxTabStop = (markers: Marker[]): number => { let currentMaxTabStop = -1; markers.forEach(marker => { if (marker instanceof Placeholder && /^d+$/.test(marker['name'])) { let currentTabStop = Number(marker['name']); let nestedMaxTabStop = getMaxTabStop(marker['defaultValue'] || []); currentMaxTabStop = Math.max(currentMaxTabStop, currentTabStop, nestedMaxTabStop); } }); return currentMaxTabStop; }; let maxTabStop = getMaxTabStop(snippetMarkers); let setNextTabStop = (markers: Marker[]) => { markers.forEach(marker => { if (marker instanceof Placeholder) { if (marker['name'] === '0') { marker['name'] = ++maxTabStop + ''; } setNextTabStop(marker['defaultValue'] || []); } }); }; setNextTabStop(snippetMarkers); const snippet = new CodeSnippet(); _fillCodeSnippetFromMarker(snippet, snippetMarkers); return snippet; </ins> } public lines: string[] = [];
for (const originalPlaceHolder of this.placeHolders) { let resultOccurences = []; <del> for (let {startLineNumber, startColumn, endLineNumber, endColumn} of originalPlaceHolder.occurences) { </del> <ins> for (let { startLineNumber, startColumn, endLineNumber, endColumn } of originalPlaceHolder.occurences) { </ins> if (startColumn > 1 || startLineNumber === 1) { // placeholders that aren't at the beginning of new snippet lines
options.minimap = { enabled: false }; const outputConfig = this.baseConfigurationService.getValue('[Log]'); <del> if (outputConfig && outputConfig['editor.minimap.enabled']) { options.minimap = { enabled: true }; </del> <ins> if (outputConfig) { if (outputConfig['editor.minimap.enabled']) { options.minimap = { enabled: true }; } if ('editor.wordWrap' in outputConfig) { options.wordWrap = outputConfig['editor.wordWrap']; } </ins> } return options;
guess = guessMimeTypes('Randomfile.noregistration', 'RegexesAreNice'); assert.deepEqual(guess, ['text/nice-regex', 'text/plain']); <del> guess = guessMimeTypes('Randomfile.noregistration', 'RegexesAreNiceee'); </del> <ins> guess = guessMimeTypes('Randomfile.noregistration', 'RegexesAreNotNice'); </ins> assert.deepEqual(guess, ['application/unknown']); guess = guessMimeTypes('Codefile', 'RegexesAreNice');
3, 0, 3 )), parameterHints: register(new EditorParameterHints()), <ins> peekWidgetFocusInlineEditor: register(new EditorBooleanOption( EditorOption.peekWidgetFocusInlineEditor, 'peekWidgetFocusInlineEditor', false, { description: nls.localize('peekWidgetFocusInlineEditor', "Controls whether to focus the inline editor in the peek widget by default.") } )), </ins> quickSuggestions: register(new EditorQuickSuggestions()), quickSuggestionsDelay: register(new EditorIntOption( EditorOption.quickSuggestionsDelay, 'quickSuggestionsDelay',
import { KeybindingsRegistry, KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegistry'; import { KeyCode, KeyMod, KeyChord } from 'vs/base/common/keyCodes'; import { CommandsRegistry } from 'vs/platform/commands/common/commands'; <ins> import { EditorOption } from 'vs/editor/common/config/editorOptions'; </ins> export const ctxReferenceSearchVisible = new RawContextKey<boolean>('referenceSearchVisible', false);
let pos = new Position(range.startLineNumber, range.startColumn); let selection = this._model.nearestReference(uri, pos); if (selection) { <del> return this._widget.setSelection(selection); </del> <ins> return this._widget.setSelection(selection).then(() => { if (this._widget && this._editor.getOption(EditorOption.peekWidgetFocusInlineEditor)) { this._widget.focusOnPreviewEditor(); } }); </ins> } } return undefined;
} const target = this._model.nextOrPreviousReference(source, fwd); const editorFocus = this._editor.hasTextFocus(); <ins> const previewEditorFocus = this._widget.isPreviewEditorFocused(); </ins> await this._widget.setSelection(target); await this._gotoReference(target); if (editorFocus) { this._editor.focus(); <ins> } else if (this._widget && previewEditorFocus) { this._widget.focusOnPreviewEditor(); </ins> } }
}, 'terminal.integrated.enableBold': { 'type': 'boolean', <del> 'description': nls.localize('terminal.integrated.enableBold', "Whether to enable bold text within the terminal."), </del> <ins> 'description': nls.localize('terminal.integrated.enableBold', "Whether to enable bold text within the terminal, this requires support from the termianl shell."), </ins> 'default': true }, 'terminal.integrated.cursorBlinking': {
title: locations.length === 1 ? localize('oneImplementationLabel', '1 implementation') : localize('manyImplementationLabel', '{0} implementations', locations.length), <del> command: 'editor.action.showReferences', </del> <ins> command: locations.length ? 'editor.action.showReferences' : '', </ins> arguments: [codeLens.document, codeLens.range.start, locations] }; return codeLens;
title: locations.length === 1 ? localize('oneReferenceLabel', '1 reference') : localize('manyReferenceLabel', '{0} references', locations.length), <del> command: 'editor.action.showReferences', </del> <ins> command: locations.length ? 'editor.action.showReferences' : '', </ins> arguments: [codeLens.document, codeLens.range.start, locations] }; return codeLens;
border-left: 3px solid rgba(0, 0, 0, 0.40); } <ins> .vscode-light.showEditorSelection .code-line .code-line:hover:before { border-left: none; } </ins> .vscode-dark.showEditorSelection .code-active-line:before { border-left: 3px solid rgba(255, 255, 255, 0.4); }
border-left: 3px solid rgba(255, 255, 255, 0.60); } <ins> .vscode-dark.showEditorSelection .code-line .code-line:hover:before { border-left: none; } </ins> .vscode-high-contrast.showEditorSelection .code-active-line:before { border-left: 3px solid rgba(255, 160, 0, 0.7); }
[deltaY, deltaX] = [deltaX, deltaY]; } <del> if (this._options.scrollYToX && !deltaX) { </del> <ins> // Convert vertical scrolling to horizontal if shift is held, this // is handled at a higher level on Mac const shiftConvert = !Platform.isMacintosh && e.browserEvent.shiftKey; if ((this._options.scrollYToX || shiftConvert) && !deltaX) { </ins> deltaX = deltaY; deltaY = 0; }
} @command('git.openFile') <del> async openFile(arg?: Resource | Uri): Promise<void> { let uri: Uri | undefined; </del> <ins> async openFile(arg?: Resource | Uri, ...resourceStates: SourceControlResourceState[]): Promise<void> { let uris: Uri[] | undefined; </ins> if (arg instanceof Uri) { if (arg.scheme === 'git') { <del> uri = Uri.file(fromGitUri(arg).path); </del> <ins> uris = [Uri.file(fromGitUri(arg).path)]; </ins> } else if (arg.scheme === 'file') { <del> uri = arg; </del> <ins> uris = [arg]; </ins> } } else { let resource = arg;
} if (resource) { <del> uri = resource.resourceUri; </del> <ins> uris = [...resourceStates.map(r => r.resourceUri), resource.resourceUri]; </ins> } } <del> if (!uri) { </del> <ins> if (!uris) { </ins> return; } <del> const activeTextEditor = window.activeTextEditor && window.activeTextEditor; const isSameUri = activeTextEditor && activeTextEditor.document.uri.toString() === uri.toString(); const selections = activeTextEditor && activeTextEditor.selections; const viewColumn = activeTextEditor && activeTextEditor.viewColumn || ViewColumn.One; await commands.executeCommand<void>('vscode.open', uri, viewColumn); if (isSameUri && selections && window.activeTextEditor) { window.activeTextEditor.selections = selections; </del> <ins> const preview = uris.length === 1 ? true : false; const activeTextEditor = window.activeTextEditor; for (const uri of uris) { // If the active editor matches the current uri, get its selection const selections = activeTextEditor && activeTextEditor.document.uri.toString() === uri.toString() ? activeTextEditor.selections : undefined; const opts: TextDocumentShowOptions = { preserveFocus: true, preview: preview, viewColumn: activeTextEditor && activeTextEditor.viewColumn || ViewColumn.One }; const document = await workspace.openTextDocument(uri); await window.showTextDocument(document, opts); if (selections && window.activeTextEditor) { window.activeTextEditor.selections = selections; } </ins> } }
} @command('git.openChange') <del> async openChange(arg?: Resource | Uri): Promise<void> { let resource: Resource | undefined = undefined; </del> <ins> async openChange(arg?: Resource | Uri, ...resourceStates: SourceControlResourceState[]): Promise<void> { let resources: Resource[] | undefined = undefined; </ins> <del> if (arg instanceof Resource) { resource = arg; } else if (arg instanceof Uri) { resource = this.getSCMResource(arg); } else { resource = this.getSCMResource(); </del> <ins> if (arg instanceof Uri) { const resource = this.getSCMResource(arg); if (resource !== undefined) { resources = [resource]; } </ins> } <ins> else { let resource: Resource | undefined = undefined; if (arg instanceof Resource) { resource = arg; } else { resource = this.getSCMResource(); } </ins> <del> if (!resource) { </del> <ins> if (resource) { resources = [...resourceStates as Resource[], resource]; } } if (!resources) { </ins> return; } <del> return await this._openResource(resource); </del> <ins> const preview = resources.length === 1 ? undefined : false; for (const resource of resources) { await this._openResource(resource, preview); } </ins> } @command('git.stage')
} } <ins> export class CachedNavTreeResponse { response?: Promise<Proto.NavTreeResponse>; version: number = -1; document: string = ''; matches(document: TextDocument): boolean { return this.version === document.version && this.document === document.uri.toString(); } update(document: TextDocument, response: Promise<Proto.NavTreeResponse>) { this.response = response; this.version = document.version; this.document = document.uri.toString(); } } </ins> export abstract class TypeScriptBaseCodeLensProvider implements CodeLensProvider { private enabled: boolean = true; private onDidChangeCodeLensesEmitter = new EventEmitter<void>(); public constructor( <del> protected client: ITypeScriptServiceClient </del> <ins> protected client: ITypeScriptServiceClient, private cachedResponse: CachedNavTreeResponse </ins> ) { } public get onDidChangeCodeLenses(): Event<void> {
return []; } try { <del> const response = await this.client.execute('navtree', { file: filepath }, token); </del> <ins> if (!this.cachedResponse.matches(document)) { this.cachedResponse.update(document, this.client.execute('navtree', { file: filepath }, token)); } const response = await this.cachedResponse.response; </ins> if (!response) { return []; } const tree = response.body; const referenceableSpans: Range[] = []; if (tree && tree.childItems) {
import * as Proto from '../protocol'; import * as PConst from '../protocol.const'; <del> import { TypeScriptBaseCodeLensProvider, ReferencesCodeLens } from './baseCodeLensProvider'; </del> <ins> import { TypeScriptBaseCodeLensProvider, ReferencesCodeLens, CachedNavTreeResponse } from './baseCodeLensProvider'; </ins> import { ITypeScriptServiceClient } from '../typescriptService'; import { tsTextSpanToVsRange, vsPositionToTsFileLocation } from '../utils/convert';
export default class TypeScriptReferencesCodeLensProvider extends TypeScriptBaseCodeLensProvider { public constructor( client: ITypeScriptServiceClient, <del> private readonly language: string </del> <ins> private readonly language: string, cachedResponse: CachedNavTreeResponse </ins> ) { <del> super(client); </del> <ins> super(client, cachedResponse); </ins> } public updateConfiguration(): void {
this.disposables.push(languages.registerCodeActionsProvider(selector, new (await import('./features/refactorProvider')).default(client, this.formattingOptionsManager, commandManager))); this.registerVersionDependentProviders(); <del> const referenceCodeLensProvider = new (await import('./features/referencesCodeLensProvider')).default(client, this.description.id); </del> <ins> const cachedResponse = new CachedNavTreeResponse(); const referenceCodeLensProvider = new (await import('./features/referencesCodeLensProvider')).default(client, this.description.id, cachedResponse); </ins> referenceCodeLensProvider.updateConfiguration(); this.toUpdateOnConfigurationChanged.push(referenceCodeLensProvider); this.disposables.push(languages.registerCodeLensProvider(selector, referenceCodeLensProvider)); <del> const implementationCodeLensProvider = new (await import('./features/implementationsCodeLensProvider')).default(client, this.description.id); </del> <ins> const implementationCodeLensProvider = new (await import('./features/implementationsCodeLensProvider')).default(client, this.description.id, cachedResponse); </ins> implementationCodeLensProvider.updateConfiguration(); this.toUpdateOnConfigurationChanged.push(implementationCodeLensProvider); this.disposables.push(languages.registerCodeLensProvider(selector, implementationCodeLensProvider));
import * as glob from 'vs/base/common/glob'; import * as paths from 'vs/base/common/paths'; import uri from 'vs/base/common/uri'; <ins> import { untildify } from 'vs/base/common/labels'; </ins> import { IWorkspaceContextService, WorkbenchState } from 'vs/platform/workspace/common/workspace'; import { IPatternInfo, IQueryOptions, IFolderQuery, ISearchQuery, QueryType, ISearchConfiguration, getExcludes, pathIncludedInQuery } from 'vs/platform/search/common/search'; import { IConfigurationService } from 'vs/platform/configuration/common/configuration'; <ins> import { IEnvironmentService } from 'vs/platform/environment/common/environment'; </ins> export interface ISearchPathPattern { searchPath: uri;
constructor( @IConfigurationService private configurationService: IConfigurationService, <del> @IWorkspaceContextService private workspaceContextService: IWorkspaceContextService) { } </del> <ins> @IWorkspaceContextService private workspaceContextService: IWorkspaceContextService, @IEnvironmentService private environmentService: IEnvironmentService ) { } </ins> public text(contentPattern: IPatternInfo, folderResources?: uri[], options?: IQueryOptions): ISearchQuery { return this.query(QueryType.Text, contentPattern, folderResources, options);
return paths.isAbsolute(segment) || /^..?[/]/.test(segment); }; <del> const segments = splitGlobPattern(pattern); </del> <ins> const segments = splitGlobPattern(pattern) .map(segment => untildify(segment, this.environmentService.userHome)); </ins> const groups = collections.groupBy(segments, segment => isSearchPath(segment) ? 'searchPaths' : 'exprSegments');
import { IWorkspaceContextService, Workspace, toWorkspaceFolders } from 'vs/platform/workspace/common/workspace'; import { TestConfigurationService } from 'vs/platform/configuration/test/common/testConfigurationService'; import { QueryBuilder, ISearchPathsResult } from 'vs/workbench/parts/search/common/queryBuilder'; <del> import { TestContextService } from 'vs/workbench/test/workbenchTestServices'; </del> <ins> import { IEnvironmentService } from 'vs/platform/environment/common/environment'; import { TestContextService, TestEnvironmentService } from 'vs/workbench/test/workbenchTestServices'; </ins> import { ISearchQuery, QueryType, IPatternInfo, IFolderQuery } from 'vs/platform/search/common/search';
kbOpts: { weight: CORE_WEIGHT, kbExpr: EditorContextKeys.textInputFocus, <del> primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyMod.Alt | KeyCode.UpArrow, </del> <ins> primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.UpArrow, </ins> linux: { primary: 0 } } }));
kbOpts: { weight: CORE_WEIGHT, kbExpr: EditorContextKeys.textInputFocus, <del> primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyMod.Alt | KeyCode.DownArrow, </del> <ins> primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.DownArrow, </ins> linux: { primary: 0 } } }));
weight: CORE_WEIGHT, kbExpr: EditorContextKeys.textInputFocus, primary: KeyMod.Shift | KeyCode.UpArrow, <del> secondary: [KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.UpArrow], </del> mac: { primary: KeyMod.Shift | KeyCode.UpArrow }, linux: { primary: KeyMod.Shift | KeyCode.UpArrow } }
weight: CORE_WEIGHT, kbExpr: EditorContextKeys.textInputFocus, primary: KeyMod.Shift | KeyCode.DownArrow, <del> secondary: [KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.DownArrow], </del> mac: { primary: KeyMod.Shift | KeyCode.DownArrow }, linux: { primary: KeyMod.Shift | KeyCode.DownArrow } }
import { IEnvironmentService } from 'vs/platform/environment/common/environment'; import { UNTITLED_WORKSPACE_NAME } from 'vs/platform/workspaces/common/workspaces'; import { coalesce } from 'vs/base/common/arrays'; <ins> import { ICodeEditorService } from 'vs/editor/browser/services/codeEditorService'; import { EmbeddedCodeEditorWidget } from 'vs/editor/browser/widget/embeddedCodeEditorWidget'; import { ITextFileService } from 'vs/workbench/services/textfile/common/textfiles'; </ins> // Commands
// Save / Save As / Save All / Revert <del> function saveSelectedEditors(accessor: ServicesAccessor, options?: ISaveEditorsOptions): Promise<void> { </del> <ins> async function saveSelectedEditors(accessor: ServicesAccessor, options?: ISaveEditorsOptions): Promise<void> { </ins> const listService = accessor.get(IListService); const editorGroupsService = accessor.get(IEditorGroupsService); <del> return doSaveEditors(accessor, getMultiSelectedEditors(listService, editorGroupsService), options); </del> <ins> const codeEditorService = accessor.get(ICodeEditorService); const textFileService = accessor.get(ITextFileService); // Save editors const editors = getMultiSelectedEditors(listService, editorGroupsService); await doSaveEditors(accessor, editors, options); // Special treatment for embedded editors: if we detect that focus is // inside an embedded code editor, we save that model as well if we // find it in our text file models. Currently, only textual editors // support embedded editors. const focusedCodeEditor = codeEditorService.getFocusedCodeEditor(); if (focusedCodeEditor instanceof EmbeddedCodeEditorWidget) { const resource = focusedCodeEditor.getModel()?.uri; // Check that the resource of the model was not saved already if (resource && !editors.some(({ editor }) => isEqual(toResource(editor, { supportSideBySide: SideBySideEditor.MASTER }), resource))) { const model = textFileService.models.get(resource); if (!model?.isReadonly()) { await textFileService.save(resource, options); } } } </ins> } function saveDirtyEditorsOfGroups(accessor: ServicesAccessor, groups: ReadonlyArray<IEditorGroup>, options?: ISaveEditorsOptions): Promise<void> {
this.selectEntry(keybinding); this.reportKeybindingAction(KEYBINDINGS_EDITOR_COMMAND_COPY, keybinding.keybindingItem.command, keybinding.keybindingItem.keybinding); const userFriendlyKeybinding: IUserFriendlyKeybinding = { <del> command: keybinding.keybindingItem.command, key: keybinding.keybindingItem.keybinding ? keybinding.keybindingItem.keybinding.getUserSettingsLabel() : '' </del> <ins> key: keybinding.keybindingItem.keybinding ? keybinding.keybindingItem.keybinding.getUserSettingsLabel() : '', command: keybinding.keybindingItem.command </ins> }; if (keybinding.keybindingItem.when) { userFriendlyKeybinding.when = keybinding.keybindingItem.when;
const config = workspace.getConfiguration('git'); let value = config.get<string>('defaultCloneDirectory') || os.homedir(); <del> value = value.replace(/^~/, os.homedir()); </del> const parentPath = await window.showInputBox({ prompt: localize('parent', "Parent Directory"), <del> value, </del> <ins> value: this.handlePathTilde(value), </ins> ignoreFocusOut: true });