Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/media-preview/src/imagePreview/sizeStatusBarEntry.ts
4774 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import * as vscode from 'vscode';
7
import { PreviewStatusBarEntry } from '../ownedStatusBarEntry';
8
9
10
export class SizeStatusBarEntry extends PreviewStatusBarEntry {
11
12
constructor() {
13
super('status.imagePreview.size', vscode.l10n.t("Image Size"), vscode.StatusBarAlignment.Right, 101 /* to the left of editor status (100) */);
14
}
15
16
public show(owner: unknown, text: string) {
17
this.showItem(owner, text);
18
}
19
}
20
21