MCPcopy
hub / github.com/dotnet/vscode-csharp / StatusBarItemAdapter

Class StatusBarItemAdapter

src/statusBarItemAdapter.ts:9–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7import * as vscode from 'vscode';
8
9export class StatusBarItemAdapter implements vscodeAdapter.StatusBarItem {
10 get alignment(): vscodeAdapter.StatusBarAlignment {
11 return this.statusBarItem.alignment;
12 }
13
14 get priority(): number | undefined {
15 return this.statusBarItem.priority;
16 }
17
18 get text(): string {
19 return this.statusBarItem.text;
20 }
21
22 set text(value: string) {
23 this.statusBarItem.text = value;
24 }
25
26 get tooltip(): string {
27 return <string>this.statusBarItem.tooltip;
28 }
29
30 set tooltip(value: string) {
31 this.statusBarItem.tooltip = value;
32 }
33
34 get color(): string | vscode.ThemeColor | undefined {
35 return this.statusBarItem.color;
36 }
37
38 set color(value: string | vscode.ThemeColor | undefined) {
39 this.statusBarItem.color = value;
40 }
41
42 get command(): string | vscode.Command | undefined {
43 return this.statusBarItem.command;
44 }
45
46 set command(value: string | vscode.Command | undefined) {
47 this.statusBarItem.command = value;
48 }
49
50 get name(): string | undefined {
51 return this.statusBarItem.name;
52 }
53
54 set name(value: string | undefined) {
55 this.statusBarItem.name = value;
56 }
57
58 show(): void {
59 this.statusBarItem.show();
60 }
61
62 hide(): void {
63 this.statusBarItem.hide();
64 }
65
66 dispose(): void {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected