Skip to content

Commit

Permalink
Add mention item label
Browse files Browse the repository at this point in the history
  • Loading branch information
thenamankumar committed Jun 19, 2024
1 parent 6a25080 commit 297e5cf
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openctx/cli",
"version": "0.0.11",
"version": "0.0.12",
"description": "OpenCtx CLI",
"license": "Apache-2.0",
"homepage": "https://openctx.org/docs/clients/cli",
Expand Down
2 changes: 1 addition & 1 deletion client/vscode-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openctx/vscode-lib",
"version": "0.0.11",
"version": "0.0.12",
"description": "OpenCtx library for VS Code extensions",
"license": "Apache-2.0",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion client/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "openctx",
"private": true,
"displayName": "OpenCtx",
"version": "0.4.3",
"version": "0.4.4",
"publisher": "sourcegraph",
"license": "Apache-2.0",
"icon": "resources/logomark-v0.png",
Expand Down
2 changes: 1 addition & 1 deletion lib/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openctx/client",
"version": "0.0.19",
"version": "0.0.20",
"description": "OpenCtx client library",
"license": "Apache-2.0",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion lib/protocol/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openctx/protocol",
"version": "0.0.15",
"version": "0.0.16",
"description": "OpenCtx client/provider protocol",
"license": "Apache-2.0",
"repository": {
Expand Down
4 changes: 4 additions & 0 deletions lib/protocol/src/openctx-protocol.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@
"description": "A descriptive title.",
"type": "string"
},
"label": {
"description": "An optional label used to display the selected mention item in the input. For example the label can be the basename for a file whereas the title can be the whole file path used to list the item in mentions list",
"type": "string"
},
"description": {
"description": "An item description.",
"type": "string"
Expand Down
4 changes: 4 additions & 0 deletions lib/protocol/src/openctx-protocol.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ export interface Mention {
* A descriptive title.
*/
title: string
/**
* An optional label used to display the selected mention item in the input. For example the label can be the basename for a file whereas the title can be the whole file path used to list the item in mentions list
*/
label?: string
/**
* An item description.
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/provider/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openctx/provider",
"version": "0.0.14",
"version": "0.0.15",
"description": "OpenCtx provider library",
"license": "Apache-2.0",
"repository": {
Expand Down

0 comments on commit 297e5cf

Please sign in to comment.