jiebi/CodeConvo huggingface dataset:
query2 = new Query('hello', 'installs', ''); assert(!query1.equals(query2)); }); <ins> test('autocomplete', () => { Query.autocompletions('@sort:in').some(x => x === '@sort:installs '); Query.autocompletions('@sort:installs').every(x => x !== '@sort:rating '); Query.autocompletions('@category:blah').some(x => x === '@category:"extension packs" '); Query.autocompletions('@category:"extension packs"').every(x => x !== '@category:formatters '); }); </ins> });  No newline at end of file
this.overriddenScopeList = overriddenScopeList; this.description = this.setting.description.join('n'); <del> if (this.setting.enum && (this.setting.type === 'string' || !this.setting.type)) { </del> <ins> if (this.setting.enum && (!this.setting.type || settingTypeEnumRenderable(this.setting.type))) { </ins> this.valueType = 'enum'; } else if (this.setting.type === 'string') { this.valueType = 'string';
setting.key === 'search.exclude'; } <ins> function settingTypeEnumRenderable(_type: string | string[]) { const enumRenderableSettingTypes = ['string', 'boolean', 'null', 'integer', 'number']; let type = isArray(_type) ? _type : [_type]; return type.every(type => enumRenderableSettingTypes.indexOf(type) > -1); } </ins> export enum SearchResultIdx { Local = 0, Remote = 1,
version "0.0.6" resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" <del> typescript@2.5.2: version "2.5.2" resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.5.2.tgz#038a95f7d9bbb420b1bf35ba31d4c5c1dd3ffe34" </del> <ins> typescript@2.9.2: version "2.9.2" resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.9.2.tgz#1cbf61d05d6b96269244eb6a3bce4bd914e0f00c" </ins> uid-number@^0.0.6: version "0.0.6"
this.loadedScriptsItemType = CONTEXT_LOADED_SCRIPTS_ITEM_TYPE.bindTo(contextKeyService); } <ins> @memoize private get treeRefreshScheduler(): RunOnceScheduler { return new RunOnceScheduler(() => { if (this.tree) { this.tree.refresh(undefined, this.shouldRefreshRecursive); this.shouldRefreshRecursive = false; } }, 300); } </ins> protected renderBody(container: HTMLElement): void { dom.addClass(container, 'debug-loaded-scripts');
const root = new RootTreeItem(this.debugService.getModel(), this.environmentService, this.contextService); this.tree.setInput(root); <del> let timeout: number; </del> const registerLoadedSourceListener = (session: ISession) => { this.disposables.push(session.onDidLoadedSource(event => { const sessionRoot = root.add(session); sessionRoot.addPath(event.source); <del> clearTimeout(timeout); timeout = setTimeout(() => { if (this.tree) { this.tree.refresh(root, true); } }, 300); </del> <ins> this.shouldRefreshRecursive = true; this.treeRefreshScheduler.schedule(); </ins> })); };
this.debugService.getModel().getSessions().forEach(registerLoadedSourceListener); this.disposables.push(this.debugService.onDidEndSession(session => { <del> clearTimeout(timeout); </del> root.remove(session.getId()); <del> if (this.tree) { this.tree.refresh(root, false); } </del> <ins> this.treeRefreshScheduler.schedule(); </ins> })); }
} .hljs-addition { <del> background-color: #144212; </del> <ins> background-color: var(--vscode-diffEditor-insertedTextBackground, rgba(155, 185, 85, 0.2)); color: rgb(155, 185, 85); </ins> display: inline-block; width: 100%; } .hljs-deletion { <del> background-color: #600; </del> <ins> background: var(--vscode-diffEditor-removedTextBackground, rgba(255, 0, 0, 0.2)); color: rgb(255, 0, 0); </ins> display: inline-block; width: 100%; }
.vscode-light .hljs-literal, .vscode-light .hljs-template-tag, .vscode-light .hljs-template-variable, <del> .vscode-light .hljs-type, .vscode-light .hljs-addition { </del> <ins> .vscode-light .hljs-type { </ins> color: #a31515; } <del> .vscode-light .hljs-deletion, </del> .vscode-light .hljs-selector-attr, .vscode-light .hljs-selector-pseudo, .vscode-light .hljs-meta {
white-space: nowrap; } <del> .monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row > .option-text-description { display: none; </del> <ins> /* Accepted CSS hiding technique for accessibility reader text  */ /* https://webaim.org/techniques/css/invisiblecontent/ */ .monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row > .visually-hidden { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; </ins> } .monaco-select-box-dropdown-container > .select-box-dropdown-container-width-control {
const optionDisabled = (<ISelectOptionItem>element).optionDisabled; data.optionText.textContent = optionText; <del> data.root.setAttribute('aria-label', nls.localize('selectAriaOption', "{0}", optionText) + ',.'); </del> if (typeof element.optionDescriptionText === 'string') { const optionDescriptionId = (optionText.replace(/ /g, '_').toLowerCase() + '_description_' + data.root.id); <del> data.root.setAttribute('aria-describedby', optionDescriptionId); </del> <ins> data.optionText.setAttribute('aria-describedby', optionDescriptionId); </ins> data.optionDescriptionText.id = optionDescriptionId; <del> data.optionDescriptionText.setAttribute('aria-label', element.optionDescriptionText); </del> <ins> data.optionDescriptionText.innerText = element.optionDescriptionText; </ins> } <del> // Workaround for list labels data.root.setAttribute('aria-selected', 'true'); </del> // pseudo-select disabled option if (optionDisabled) { dom.addClass((<HTMLElement>data.root), 'option-disabled');
}; registerTouchBarEntry(StartAction.ID, StartAction.LABEL, 0, CONTEXT_IN_DEBUG_MODE.toNegated(), 'continue-tb.png'); <ins> registerTouchBarEntry(RunAction.ID, RunAction.LABEL, 1, CONTEXT_IN_DEBUG_MODE.toNegated(), 'continue-without-debugging-tb.png'); </ins> registerTouchBarEntry(ContinueAction.ID, ContinueAction.LABEL, 0, CONTEXT_DEBUG_STATE.isEqualTo('stopped'), 'continue-tb.png'); registerTouchBarEntry(PauseAction.ID, PauseAction.LABEL, 1, ContextKeyExpr.and(CONTEXT_IN_DEBUG_MODE, ContextKeyExpr.notEquals('debugState', 'stopped')), 'pause-tb.png'); registerTouchBarEntry(StepOverAction.ID, StepOverAction.LABEL, 2, CONTEXT_DEBUG_STATE.isEqualTo('stopped'), 'stepover-tb.png');
} // Do not auto-close ' or " after a word character <del> if (autoClosingPair.open.length === 1 && chIsQuote && autoCloseConfig !== 'always') { </del> <ins> if (autoClosingPair.open.length === 1 && (ch === ''' || ch === '"') && autoCloseConfig !== 'always') { </ins> const wordSeparators = getMapForWordSeparators(config.wordSeparators); if (insertOpenCharacter && position.column > 1 && wordSeparators.get(lineText.charCodeAt(position.column - 2)) === WordCharacterClass.Regular) { return null;
model.undo(); } <ins> test('issue #61070: backtick (`) should auto-close after a word character', () => { let mode = new AutoClosingMode(); usingCursor({ text: ['const markup = highlight'], languageId: mode.languageId }, (editor, model, viewModel) => { model.forceTokenization(1); assertType(editor, model, viewModel, 1, 25, '`', '``', `auto closes ` @ (1, 25)`); }); mode.dispose(); }); </ins> test('open parens: default', () => { let mode = new AutoClosingMode(); usingCursor({
import 'vs/css!./media/settingsWidgets'; import { localize } from 'vs/nls'; import { IContextViewService } from 'vs/platform/contextview/browser/contextView'; <del> import { foreground, inputBackground, inputBorder, inputForeground, listActiveSelectionBackground, listActiveSelectionForeground, listHoverBackground, listHoverForeground, listInactiveSelectionBackground, listInactiveSelectionForeground, registerColor, selectBackground, selectBorder, selectForeground, textLinkForeground, textPreformatForeground, editorWidgetBorder } from 'vs/platform/theme/common/colorRegistry'; </del> <ins> import { foreground, inputBackground, inputBorder, inputForeground, listActiveSelectionBackground, listActiveSelectionForeground, listHoverBackground, listHoverForeground, listInactiveSelectionBackground, listInactiveSelectionForeground, registerColor, selectBackground, selectBorder, selectForeground, textLinkForeground, textPreformatForeground, editorWidgetBorder, textLinkActiveForeground } from 'vs/platform/theme/common/colorRegistry'; </ins> import { attachButtonStyler, attachInputBoxStyler } from 'vs/platform/theme/common/styler'; import { ICssStyleCollector, ITheme, IThemeService, registerThemingParticipant } from 'vs/platform/theme/common/themeService'; import { disposableTimeout } from 'vs/base/common/async';
collector.addRule(`.monaco-select-box-dropdown-container > .select-box-details-pane > .select-box-description-markdown a > code { color: ${link}; }`); } <ins> const activeLink = theme.getColor(textLinkActiveForeground); if (activeLink) { collector.addRule(`.settings-editor > .settings-body > .settings-tree-container .setting-item .setting-item-description-markdown a:hover, .settings-editor > .settings-body > .settings-tree-container .setting-item .setting-item-description-markdown a:active { color: ${activeLink}; }`); collector.addRule(`.settings-editor > .settings-body > .settings-tree-container .setting-item .setting-item-description-markdown a:hover > code, .settings-editor > .settings-body > .settings-tree-container .setting-item .setting-item-description-markdown a:active > code { color: ${activeLink}; }`); collector.addRule(`.monaco-select-box-dropdown-container > .select-box-details-pane > .select-box-description-markdown a:hover, .monaco-select-box-dropdown-container > .select-box-details-pane > .select-box-description-markdown a:active { color: ${activeLink}; }`); collector.addRule(`.monaco-select-box-dropdown-container > .select-box-details-pane > .select-box-description-markdown a:hover > code, .monaco-select-box-dropdown-container > .select-box-details-pane > .select-box-description-markdown a:active > code { color: ${activeLink}; }`); } </ins> const headerForegroundColor = theme.getColor(settingsHeaderForeground); if (headerForegroundColor) { collector.addRule(`.settings-editor > .settings-header > .settings-header-controls .settings-tabs-widget .action-label.checked { color: ${headerForegroundColor}; border-bottom-color: ${headerForegroundColor}; }`);
["'", "'"] ], "indentationRules": { <del> "increaseIndentPattern": "^s*((b(else|function|then|do|repeat)b((?!b(end|until)b).)*)|({s*))$", </del> <ins> "increaseIndentPattern": "^((?!(--)).)*((b(else|function|then|do|repeat)b((?!b(end|until)b).)*)|({s*))$", </ins> "decreaseIndentPattern": "^s*((b(elseif|else|end|until)b)|(})|()))" } }
private static getCommandLabel(menuCommand: ICommandAction, editorActionLabel: string): string { if (menuCommand) { <del> return typeof menuCommand.title === 'string' ? menuCommand.title : menuCommand.title.value; </del> <ins> let category; if (menuCommand.category) { category = typeof menuCommand.category === 'string' ? menuCommand.category : menuCommand.category.value; } const title = typeof menuCommand.title === 'string' ? menuCommand.title : menuCommand.title.value; return category ? `${category}: ${title}` : title; </ins> } if (editorActionLabel) {
padding: 0px 8px; border-radius: 2px; position: absolute; <del> right: 10px; </del> <ins> right: 35px; top: 0; } .settings-editor > .settings-header > .search-container > .settings-clear-widget { margin: 6px 0px; padding: 0px 8px; border-radius: 2px; position: absolute; right: 0px; </ins> top: 0; }
import { ISettingsEditorViewState, parseQuery, SearchResultIdx, SearchResultModel, SettingsTreeElement, SettingsTreeGroupChild, SettingsTreeGroupElement, SettingsTreeModel, SettingsTreeSettingElement } from 'vs/workbench/contrib/preferences/browser/settingsTreeModels'; import { settingsTextInputBorder } from 'vs/workbench/contrib/preferences/browser/settingsWidgets'; import { createTOCIterator, TOCTree, TOCTreeModel } from 'vs/workbench/contrib/preferences/browser/tocTree'; <del> import { CONTEXT_SETTINGS_EDITOR, CONTEXT_SETTINGS_SEARCH_FOCUS, CONTEXT_TOC_ROW_FOCUS, EXTENSION_SETTING_TAG, IPreferencesSearchService, ISearchProvider, MODIFIED_SETTING_TAG, SETTINGS_EDITOR_COMMAND_SHOW_CONTEXT_MENU } from 'vs/workbench/contrib/preferences/common/preferences'; </del> <ins> import { CONTEXT_SETTINGS_EDITOR, CONTEXT_SETTINGS_SEARCH_FOCUS, CONTEXT_TOC_ROW_FOCUS, EXTENSION_SETTING_TAG, IPreferencesSearchService, ISearchProvider, MODIFIED_SETTING_TAG, SETTINGS_EDITOR_COMMAND_SHOW_CONTEXT_MENU, SETTINGS_EDITOR_COMMAND_CLEAR_SEARCH_RESULTS } from 'vs/workbench/contrib/preferences/common/preferences'; </ins> import { IEditorGroupsService } from 'vs/workbench/services/editor/common/editorGroupsService'; import { IPreferencesService, ISearchResult, ISettingsEditorModel, ISettingsEditorOptions, SettingsEditorOptions, SettingValueType } from 'vs/workbench/services/preferences/common/preferences'; import { SettingsEditor2Input } from 'vs/workbench/services/preferences/common/preferencesEditorInput'; import { Settings2EditorModel } from 'vs/workbench/services/preferences/common/preferencesModels'; <ins> import { Action } from 'vs/base/common/actions'; import { ActionBar } from 'vs/base/browser/ui/actionbar/actionbar'; </ins> function createGroupIterator(group: SettingsTreeGroupElement): Iterator<ITreeElement<SettingsTreeGroupChild>> { const groupsIt = Iterator.fromArray(group.children);
this.searchWidget.setValue(query.trim()); } <ins> clearSearch(): void { this.clearSearchResults(); this.focusSearch(); } </ins> private createHeader(parent: HTMLElement): void { this.headerContainer = DOM.append(parent, $('.settings-header')); const searchContainer = DOM.append(this.headerContainer, $('.search-container')); <ins> const clearInputAction = new Action(SETTINGS_EDITOR_COMMAND_CLEAR_SEARCH_RESULTS, localize('clearInput', "Clear Settings Search Input"), 'codicon-clear-all', false, () => { this.clearSearch(); return Promise.resolve(null); }); </ins> const searchBoxLabel = localize('SearchSettings.AriaLabel', "Search settings"); this.searchWidget = this._register(this.instantiationService.createInstance(SuggestEnabledInput, `${SettingsEditor2.ID}.searchbox`, searchContainer, { triggerCharacters: ['@'],
this.countElement.style.borderColor = border; })); <del> this._register(this.searchWidget.onInputDidChange(() => this.onSearchInputChanged())); </del> <ins> this._register(this.searchWidget.onInputDidChange(() => { const searchVal = this.searchWidget.getValue(); clearInputAction.enabled = !!searchVal; this.onSearchInputChanged(); })); </ins> const headerControlsContainer = DOM.append(this.headerContainer, $('.settings-header-controls')); const targetWidgetContainer = DOM.append(headerControlsContainer, $('.settings-target-container')); this.settingsTargetsWidget = this._register(this.instantiationService.createInstance(SettingsTargetsWidget, targetWidgetContainer, { enableRemoteSettings: true })); this.settingsTargetsWidget.settingsTarget = ConfigurationTarget.USER_LOCAL; this.settingsTargetsWidget.onDidTargetChange(target => this.onDidSettingsTargetChange(target)); <ins> this.actionsContainer = DOM.append(searchContainer, DOM.$('.settings-clear-widget')); this.actionBar = this._register(new ActionBar(this.actionsContainer, { animated: false, actionViewItemProvider: (action: Action) => { return undefined; } })); this.actionBar.push([clearInputAction], { label: false, icon: true }); </ins> } private onDidSettingsTargetChange(target: SettingsTarget): void {
if (stagedUnsavedTextDocuments.length > 0) { const message = stagedUnsavedTextDocuments.length === 1 <del> ? localize('unsaved files single', "The following file is unsaved: {0}.nnWould you like to save it before committing?", path.basename(stagedUnsavedTextDocuments[0].uri.fsPath)) : localize('unsaved files', "There are {0} unsaved files.nnWould you like to save them before committing?", stagedUnsavedTextDocuments.length); </del> <ins> ? localize('unsaved files single', "The following staged file is unsaved: {0}.nnWould you like to save it before committing?", path.basename(stagedUnsavedTextDocuments[0].uri.fsPath)) : localize('unsaved files', "There are {0} unsaved staged files.nnWould you like to save them before committing?", stagedUnsavedTextDocuments.length); </ins> const saveAndCommit = localize('save and commit', "Save All & Commit"); const commit = localize('commit', "Commit Anyway"); const pick = await window.showWarningMessage(message, { modal: true }, saveAndCommit, commit);
this._register(DOM.addDisposableListener(this.container, DOM.EventType.FOCUS_OUT, (e) => { let event = e as FocusEvent; <del> if (event.relatedTarget) { if (!this.container.contains(event.relatedTarget as HTMLElement)) { this.focusToReturn = undefined; this.setUnfocusedState(); } </del> <ins> if (!event.relatedTarget || !this.container.contains(event.relatedTarget as HTMLElement)) { this.focusToReturn = undefined; this.setUnfocusedState(); </ins> } }));
cursor: pointer; } <del> .monaco-workbench .monaco-font-aliasing-antialiased { </del> <ins> .monaco-workbench.monaco-font-aliasing-antialiased { </ins> -webkit-font-smoothing: antialiased; } <del> .monaco-workbench .monaco-font-aliasing-none { </del> <ins> .monaco-workbench.monaco-font-aliasing-none { </ins> -webkit-font-smoothing: none; } @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { <del> .monaco-workbench .monaco-font-aliasing-auto { </del> <ins> .monaco-workbench.monaco-font-aliasing-auto { </ins> -webkit-font-smoothing: antialiased; } }
return; } <del> const root = element instanceof SearchResult ? null : element; this.tree.setChildren(root, this.createIterator(element, collapseResults)); </del> <ins> if (element instanceof SearchResult) { this.tree.setChildren(null, this.createIterator(element, collapseResults)); } else { this.tree.setChildren(element, this.createIterator(element, collapseResults)); this.tree.rerender(element); } </ins> }); } }
layout(dimension: dom.Dimension): void { this.dimension = dimension; if (this.tree) { <ins> const lastElementVisible = this.tree.scrollTop + this.tree.renderHeight >= this.tree.scrollHeight; </ins> const treeHeight = dimension.height - this.replInputHeight; this.tree.getHTMLElement().style.height = `${treeHeight}px`; this.tree.layout(treeHeight, dimension.width); <ins> if (lastElementVisible) { revealLastElement(this.tree); } </ins> } this.replInputContainer.style.height = `${this.replInputHeight}px`;
constructor(private configurationService: IConfigurationService) { } getHeight(element: IReplElement): number { <ins> const countNumberOfLines = (str: string) => Math.max(1, (str.match(/rn|n/g) || []).length); </ins> // Give approximate heights. Repl has dynamic height so the tree will measure the actual height on its own. const fontSize = this.configurationService.getValue<IDebugConfiguration>('debug').console.fontSize; const rowHeight = Math.ceil(1.4 * fontSize); <del> if (element instanceof Expression && element.hasChildren) { return 2 * rowHeight; } </del> // In order to keep scroll position we need to give a good approximation to the tree <del> if (element instanceof SimpleReplElement) { // For every 150 characters increase the number of lines needed let count = Math.ceil(element.value.length / 150); for (let i = 0; i < element.value.length; i++) { if (element.value[i] === 'n' || element.value[i] === 'rn') { count++; } </del> <ins> // For every 150 characters increase the number of lines needed if (element instanceof Expression) { let { name, value } = element; let nameRows = countNumberOfLines(name) + Math.floor(name.length / 150); if (element.hasChildren) { return (nameRows + 1) * rowHeight; </ins> } <del> return Math.max(1, count) * rowHeight; </del> <ins> let valueRows = countNumberOfLines(value) + Math.floor(value.length / 150); return rowHeight * (nameRows + valueRows); } if (element instanceof SimpleReplElement) { let value = element.value; let valueRows = countNumberOfLines(value) + Math.floor(value.length / 150); return valueRows * rowHeight; </ins> } return rowHeight;
} } <del> public async showCodeActionList(codeActions: Promise<CodeActionSet>, at?: IAnchor | IPosition): Promise<void> { let actions: CodeActionSet; try { actions = await codeActions; } catch (e) { onUnexpectedError(e); return; } </del> <ins> public async showCodeActionList(actions: CodeActionSet, at?: IAnchor | IPosition): Promise<void> { </ins> this._codeActionWidget.show(actions, at); }
import { Position } from 'vs/editor/common/core/position'; import { IRange, Range } from 'vs/editor/common/core/range'; import { ModelDecorationOptions } from 'vs/editor/common/model/textModel'; <del> import { DocumentColorProvider, Hover as MarkdownHover, HoverProviderRegistry, IColor, CodeAction } from 'vs/editor/common/modes'; </del> <ins> import { DocumentColorProvider, Hover as MarkdownHover, HoverProviderRegistry, IColor } from 'vs/editor/common/modes'; </ins> import { getColorPresentations } from 'vs/editor/contrib/colorPicker/color'; import { ColorDetector } from 'vs/editor/contrib/colorPicker/colorDetector'; import { ColorPickerModel } from 'vs/editor/contrib/colorPicker/colorPickerModel';
const hoverElement = $('div.hover-row.status-bar'); const disposables = new DisposableStore(); const actionsElement = dom.append(hoverElement, $('div.actions')); <del> disposables.add(this.renderAction(actionsElement, { label: nls.localize('quick fixes', "Quick Fix..."), commandId: QuickFixAction.Id, run: async (target) => { const codeActionsPromise = this.getCodeActions(markerHover.marker); disposables.add(toDisposable(() => codeActionsPromise.cancel())); const controller = QuickFixController.get(this._editor); const elementPosition = dom.getDomNodePagePosition(target); controller.showCodeActions(codeActionsPromise, { x: elementPosition.left + 6, y: elementPosition.top + elementPosition.height + 6 }); } })); </del> if (markerHover.marker.severity === MarkerSeverity.Error || markerHover.marker.severity === MarkerSeverity.Warning || markerHover.marker.severity === MarkerSeverity.Info) { disposables.add(this.renderAction(actionsElement, { label: nls.localize('peek problem', "Peek Problem"),
} })); } <ins> const quickfixPlaceholderElement = dom.append(actionsElement, $('div')); quickfixPlaceholderElement.style.opacity = '0'; quickfixPlaceholderElement.style.transition = 'opacity 0.2s'; setTimeout(() => quickfixPlaceholderElement.style.opacity = '1', 200); quickfixPlaceholderElement.textContent = nls.localize('checkingForQuickFixes', "Checking for quick fixes..."); disposables.add(toDisposable(() => quickfixPlaceholderElement.remove())); const codeActionsPromise = this.getCodeActions(markerHover.marker); disposables.add(toDisposable(() => codeActionsPromise.cancel())); codeActionsPromise.then(actions => { quickfixPlaceholderElement.style.transition = ''; quickfixPlaceholderElement.style.opacity = '1'; if (!actions.actions.length) { actions.dispose(); quickfixPlaceholderElement.textContent = nls.localize('noQuickFixes', "No quick fixes available"); return; } quickfixPlaceholderElement.remove(); let showing = false; disposables.add(toDisposable(() => { if (!showing) { actions.dispose(); } })); disposables.add(this.renderAction(actionsElement, { label: nls.localize('quick fixes', "Quick Fix..."), commandId: QuickFixAction.Id, run: (target) => { showing = true; const controller = QuickFixController.get(this._editor); const elementPosition = dom.getDomNodePagePosition(target); controller.showCodeActions(actions, { x: elementPosition.left + 6, y: elementPosition.top + elementPosition.height + 6 }); } })); }); </ins> this.renderDisposable.value = disposables; return hoverElement; } private getCodeActions(marker: IMarker): CancelablePromise<CodeActionSet> { <del> const noAction: CodeAction = { title: nls.localize('editor.action.quickFix.noneMessage', "No code actions available"), kind: CodeActionKind.QuickFix.value, }; return createCancelablePromise(async (cancellationToken): Promise<CodeActionSet> => { const result = await getCodeActions( </del> <ins> return createCancelablePromise(cancellationToken => { return getCodeActions( </ins> this._editor.getModel()!, new Range(marker.startLineNumber, marker.startColumn, marker.endLineNumber, marker.endColumn), { type: 'manual', filter: { kind: CodeActionKind.QuickFix } }, cancellationToken); <del> return { actions: result.actions.length ? result.actions : [noAction], hasAutoFix: result.hasAutoFix, dispose: () => result.dispose(), }; </del> }); }