From ef15d67b96131b312151c426a53d1a4741c42f94 Mon Sep 17 00:00:00 2001 From: Scott Dickerson Date: Mon, 10 Feb 2025 12:08:22 -0500 Subject: [PATCH] :ghost: Enable use of a proposed api in dev mode (#222) In development mode, to avoid errors being displayed about proposed API use: - Add the proposed API to the extension's `package.json` so it can be activated from the vscode cli - Add the cli switch to the dev launcher.json config Note: According to [1], an extension using a proposed api cannot be published. More exploration is needed to see how we can support using the proposed api via `.vsix` install but also create a package that can be published to the extension store. [1] - https://code.visualstudio.com/api/advanced-topics/using-proposed-api Signed-off-by: Scott J Dickerson --- .vscode/launch.json | 5 ++++- vscode/package.json | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index f1c20479..375174c4 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,7 +5,10 @@ "name": "Run Extension", "type": "extensionHost", "request": "launch", - "args": ["--extensionDevelopmentPath=${workspaceFolder}/vscode"], + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}/vscode", + "--enable-proposed-api=konveyor.konveyor-ai" + ], "outFiles": ["${workspaceFolder}/vscode/out/**/*.js"], "env": { "VSCODE_DEBUG_MODE": "true" diff --git a/vscode/package.json b/vscode/package.json index a9e5523f..454e8828 100644 --- a/vscode/package.json +++ b/vscode/package.json @@ -32,6 +32,9 @@ "node": ">=22.9.0", "npm": "^9.5.0 || ^10.5.0" }, + "enabledApiProposals": [ + "contribDiffEditorGutterToolBarMenus" + ], "activationEvents": [ "onFileSystem:konveyorMemFs", "onFileSystem:konveyorReadOnly"