Skip to content

Commit cea1574

Browse files
authored
chore: bump javascript-api version (#797)
1 parent 31cfdab commit cea1574

21 files changed

+1595
-1608
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@
422422
"dependencies": {
423423
"@redhat-developer/vscode-redhat-telemetry": "^0.8.0",
424424
"@trustification/exhort-api-spec": "^1.0.13",
425-
"@trustification/exhort-javascript-api": "^0.2.3",
425+
"@trustification/exhort-javascript-api": "^0.2.4-ea.2",
426426
"@xml-tools/ast": "^5.0.5",
427427
"@xml-tools/parser": "^1.0.11",
428428
"fs": "^0.0.1-security",

src/caStatusBarProvider.ts

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -8,48 +8,48 @@ import * as commands from './commands';
88
* Provides status bar functionality for the extension.
99
*/
1010
class CAStatusBarProvider implements Disposable {
11-
private statusBarItem: StatusBarItem;
11+
private statusBarItem: StatusBarItem;
1212

13-
/**
14-
* Creates an instance of the CAStatusBarProvider class.
15-
*/
16-
constructor() {
17-
this.statusBarItem = window.createStatusBarItem(StatusBarAlignment.Left, 0);
18-
}
13+
/**
14+
* Creates an instance of the CAStatusBarProvider class.
15+
*/
16+
constructor() {
17+
this.statusBarItem = window.createStatusBarItem(StatusBarAlignment.Left, 0);
18+
}
1919

20-
/**
21-
* Displays summary information in the status bar.
22-
* @param text The text to display in the status bar.
23-
* @param uri The URI associated with the summary.
24-
*/
25-
public showSummary(text: string, uri: Uri): void {
26-
this.statusBarItem.text = text;
27-
this.statusBarItem.command = {
28-
title: PromptText.FULL_STACK_PROMPT_TEXT,
29-
command: commands.STACK_ANALYSIS_FROM_STATUS_BAR_COMMAND,
30-
arguments: [uri]
31-
};
32-
this.statusBarItem.tooltip = PromptText.FULL_STACK_PROMPT_TEXT;
33-
this.statusBarItem.show();
34-
}
20+
/**
21+
* Displays summary information in the status bar.
22+
* @param text The text to display in the status bar.
23+
* @param uri The URI associated with the summary.
24+
*/
25+
public showSummary(text: string, uri: Uri): void {
26+
this.statusBarItem.text = text;
27+
this.statusBarItem.command = {
28+
title: PromptText.FULL_STACK_PROMPT_TEXT,
29+
command: commands.STACK_ANALYSIS_FROM_STATUS_BAR_COMMAND,
30+
arguments: [uri]
31+
};
32+
this.statusBarItem.tooltip = PromptText.FULL_STACK_PROMPT_TEXT;
33+
this.statusBarItem.show();
34+
}
3535

36-
/**
37-
* Sets an error message in the status bar indicating a failed RHDA analysis.
38-
*/
39-
public setError(): void {
40-
this.statusBarItem.text = `$(error) RHDA analysis has failed`;
41-
this.statusBarItem.command = {
42-
title: PromptText.LSP_FAILURE_TEXT,
43-
command: commands.STACK_LOGS_COMMAND,
44-
};
45-
}
36+
/**
37+
* Sets an error message in the status bar indicating a failed RHDA analysis.
38+
*/
39+
public setError(): void {
40+
this.statusBarItem.text = `$(error) RHDA analysis has failed`;
41+
this.statusBarItem.command = {
42+
title: PromptText.LSP_FAILURE_TEXT,
43+
command: commands.STACK_LOGS_COMMAND,
44+
};
45+
}
4646

47-
/**
48-
* Disposes of the status bar item.
49-
*/
50-
public dispose(): void {
51-
this.statusBarItem.dispose();
52-
}
47+
/**
48+
* Disposes of the status bar item.
49+
*/
50+
public dispose(): void {
51+
this.statusBarItem.dispose();
52+
}
5353
}
5454

5555
/**

0 commit comments

Comments
 (0)