@arm-software/vscode-cmsis-csolution
Advanced tools
Comparing version 0.27.0 to 0.28.0
@@ -5,2 +5,4 @@ /* | ||
import type { Uri } from 'vscode'; | ||
export type ManageComponentsContext = { | ||
@@ -18,2 +20,32 @@ /** | ||
export type SolutionContext = { | ||
/** | ||
* Name of the build type (`type` field from the build type) | ||
*/ | ||
buildType?: string; | ||
/** | ||
* Name of the target type (`type` field from the target type) | ||
*/ | ||
targetType?: string; | ||
/** | ||
* Name of the project to build (project file name without the .cproject.yml extension) | ||
*/ | ||
projectName?: string; | ||
} | ||
export type BuildOptions = { | ||
/** | ||
* Absolute path to the csolution file (required). | ||
*/ | ||
solutionPath: string; | ||
/** | ||
* Optional context to build. | ||
*/ | ||
context?: SolutionContext; | ||
/** | ||
* Should this be a rebuild (clean then build)? | ||
*/ | ||
rebuild?: boolean; | ||
} | ||
export interface CsolutionApiV1 { | ||
@@ -25,2 +57,14 @@ /** | ||
manageComponents(context: ManageComponentsContext): Promise<void>; | ||
/** | ||
* Convert the given μVision project to Csolution. | ||
*/ | ||
convertΜVisionProjectToCsolution(μVisionProjectUri: Uri): Promise<void>; | ||
/** | ||
* Build a csolution, sending output to a terminal. | ||
* @param buildOptions Absolute path to the csolution (required), and optional context to build | ||
* @returns Promise that resolves if the build succeeds, or rejects if it fails or the build tools cannot be found | ||
*/ | ||
build(buildOptions: BuildOptions): Promise<void>; | ||
} |
{ | ||
"name": "@arm-software/vscode-cmsis-csolution", | ||
"version": "0.27.0", | ||
"version": "0.28.0", | ||
"description": "API for the Arm.cmsis-csolution VS Code extension", | ||
@@ -5,0 +5,0 @@ "types": "csolution.d.ts", |
5202
133