Path: blob/main/extensions/copilot/src/extension/linkify/common/commands.ts
13399 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { UriComponents } from '../../../util/vs/base/common/uri';67// TODO: keep these commands around for backwards compatibility, but remove them in the future8export const openFileLinkCommand = '_github.copilot.openRelativePath';9export type OpenFileLinkCommandArgs = [path: string | UriComponents, requestId?: string];1011export const openSymbolInFileCommand = '_github.copilot.openSymbolInFile';12export type OpenSymbolInFileCommandArgs = [inFileUri: UriComponents, symbolText: string, requestId?: string];1314export function commandUri(command: string, args: readonly any[]): string {15return `command:${command}?${encodeURIComponent(JSON.stringify(args))}`;16}171819