From 297e5cf2c462058008beb1360b93d8d44ccd0e9e Mon Sep 17 00:00:00 2001 From: Naman Kumar Date: Thu, 20 Jun 2024 02:03:08 +0530 Subject: [PATCH] Add mention item label --- bin/package.json | 2 +- client/vscode-lib/package.json | 2 +- client/vscode/package.json | 2 +- lib/client/package.json | 2 +- lib/protocol/package.json | 2 +- lib/protocol/src/openctx-protocol.schema.json | 4 ++++ lib/protocol/src/openctx-protocol.schema.ts | 4 ++++ lib/provider/package.json | 2 +- 8 files changed, 14 insertions(+), 6 deletions(-) diff --git a/bin/package.json b/bin/package.json index 88815c48..7e80f998 100644 --- a/bin/package.json +++ b/bin/package.json @@ -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", diff --git a/client/vscode-lib/package.json b/client/vscode-lib/package.json index 419f0ec5..0ebf41c2 100644 --- a/client/vscode-lib/package.json +++ b/client/vscode-lib/package.json @@ -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": { diff --git a/client/vscode/package.json b/client/vscode/package.json index b10d816b..862ff0e3 100644 --- a/client/vscode/package.json +++ b/client/vscode/package.json @@ -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", diff --git a/lib/client/package.json b/lib/client/package.json index 845e3ccc..cecf097c 100644 --- a/lib/client/package.json +++ b/lib/client/package.json @@ -1,6 +1,6 @@ { "name": "@openctx/client", - "version": "0.0.19", + "version": "0.0.20", "description": "OpenCtx client library", "license": "Apache-2.0", "repository": { diff --git a/lib/protocol/package.json b/lib/protocol/package.json index 9b0185f7..6a1b581f 100644 --- a/lib/protocol/package.json +++ b/lib/protocol/package.json @@ -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": { diff --git a/lib/protocol/src/openctx-protocol.schema.json b/lib/protocol/src/openctx-protocol.schema.json index cf9240b0..89836585 100644 --- a/lib/protocol/src/openctx-protocol.schema.json +++ b/lib/protocol/src/openctx-protocol.schema.json @@ -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" diff --git a/lib/protocol/src/openctx-protocol.schema.ts b/lib/protocol/src/openctx-protocol.schema.ts index 36c0dace..30505100 100644 --- a/lib/protocol/src/openctx-protocol.schema.ts +++ b/lib/protocol/src/openctx-protocol.schema.ts @@ -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. */ diff --git a/lib/provider/package.json b/lib/provider/package.json index d1ce547a..09b30a65 100644 --- a/lib/provider/package.json +++ b/lib/provider/package.json @@ -1,6 +1,6 @@ { "name": "@openctx/provider", - "version": "0.0.14", + "version": "0.0.15", "description": "OpenCtx provider library", "license": "Apache-2.0", "repository": {