Skip to content

Commit 1a88a03

Browse files
authored
adopt workspaceTrust in package.json (#621)
Signed-off-by: Yan Zhang <yanzh@microsoft.com>
1 parent 56f5a1f commit 1a88a03

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
"engines": {
1111
"vscode": "^1.43.0"
1212
},
13+
"enableProposedApi": true,
14+
"workspaceTrust": {
15+
"request": "onDemand",
16+
"description": "Extension can execute Maven commands using Maven wrapper contained in your project."
17+
},
1318
"categories": [
1419
"Programming Languages",
1520
"Other"

src/utils/contextUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export function getPathToWorkspaceStorage(...args: string[]): string | undefined
9494
return path.join(EXTENSION_CONTEXT.storagePath, ...args);
9595
}
9696

97+
/** TODO: apply workspace trust API when it's ready */
9798
export async function trustWrapper(mvnw: string): Promise<boolean> {
9899
const key: string = "trustMavenWrapper";
99100
const trust: boolean | undefined = EXTENSION_CONTEXT.workspaceState.get<boolean | undefined>(key);

0 commit comments

Comments
 (0)