Skip to content

Commit ff63adf

Browse files
authored
1 parent 5efdeef commit ff63adf

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/vs/base/common/types.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
import { URI } from './uri.js';
76
import { assert } from './assert.js';
87

98
/**
@@ -342,8 +341,3 @@ export type DeepPartial<T> = {
342341
* Represents a type that is a partial version of a given type `T`, except a subset.
343342
*/
344343
export type PartialExcept<T, K extends keyof T> = Partial<Omit<T, K>> & Pick<T, K>;
345-
346-
/**
347-
* Type for an `object` with its `value` property being a {@link URI}.
348-
*/
349-
export type WithUriValue<T extends object> = T & { value: URI };

src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptSourceFolder.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import { localize } from '../../../../../../../../nls.js';
77
import { URI } from '../../../../../../../../base/common/uri.js';
8-
import { WithUriValue } from '../../../../../../../../base/common/types.js';
98
import { basename, extUri, isEqual } from '../../../../../../../../base/common/resources.js';
109
import { ILabelService } from '../../../../../../../../platform/label/common/label.js';
1110
import { IOpenerService } from '../../../../../../../../platform/opener/common/opener.js';
@@ -164,7 +163,7 @@ async function showNoFoldersDialog(accessor: ServicesAccessor, type: PromptsType
164163
const quickInputService = accessor.get(IQuickInputService);
165164
const openerService = accessor.get(IOpenerService);
166165

167-
const docsQuickPick: WithUriValue<IQuickPickItem> = {
166+
const docsQuickPick: IQuickPickItem & { value: URI } = {
168167
type: 'item',
169168
label: getLearnLabel(type),
170169
description: PROMPT_DOCUMENTATION_URL,

0 commit comments

Comments
 (0)