Skip to content

Commit 890ca88

Browse files
committed
move asStatusBarItemIdentifier into extHostTypes
1 parent 74fe1d7 commit 890ca88

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/vs/workbench/api/browser/statusBarExtensionPoint.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { hash } from 'vs/base/common/hash';
1919
import { InstantiationType, registerSingleton } from 'vs/platform/instantiation/common/extensions';
2020
import { Iterable } from 'vs/base/common/iterator';
2121
import { ExtensionIdentifier } from 'vs/platform/extensions/common/extensions';
22+
import { asStatusBarItemIdentifier } from 'vs/workbench/api/common/extHostTypes';
2223

2324

2425
// --- service
@@ -223,8 +224,3 @@ export class StatusBarItemsExtensionPoint {
223224
});
224225
}
225226
}
226-
227-
228-
export function asStatusBarItemIdentifier(extension: ExtensionIdentifier, id: string): string {
229-
return `${ExtensionIdentifier.toKey(extension)}.${id}`;
230-
}

src/vs/workbench/api/common/extHostStatusBar.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
import { StatusBarAlignment as ExtHostStatusBarAlignment, Disposable, ThemeColor } from './extHostTypes';
6+
import { StatusBarAlignment as ExtHostStatusBarAlignment, Disposable, ThemeColor, asStatusBarItemIdentifier } from './extHostTypes';
77
import type * as vscode from 'vscode';
88
import { MainContext, MainThreadStatusBarShape, IMainContext, ICommandDto } from './extHost.protocol';
99
import { localize } from 'vs/nls';
@@ -12,7 +12,7 @@ import { DisposableStore } from 'vs/base/common/lifecycle';
1212
import { IExtensionDescription } from 'vs/platform/extensions/common/extensions';
1313
import { MarkdownString } from 'vs/workbench/api/common/extHostTypeConverters';
1414
import { isNumber } from 'vs/base/common/types';
15-
import { asStatusBarItemIdentifier } from 'vs/workbench/api/common/statusBarExtensionPoint';
15+
1616

1717
export class ExtHostStatusBarEntry implements vscode.StatusBarItem {
1818

src/vs/workbench/api/common/extHostTypes.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { nextCharLength } from 'vs/base/common/strings';
1313
import { isNumber, isObject, isString, isStringArray } from 'vs/base/common/types';
1414
import { URI } from 'vs/base/common/uri';
1515
import { generateUuid } from 'vs/base/common/uuid';
16-
import { IExtensionDescription } from 'vs/platform/extensions/common/extensions';
16+
import { ExtensionIdentifier, IExtensionDescription } from 'vs/platform/extensions/common/extensions';
1717
import { FileSystemProviderErrorCode, markAsFileSystemProviderError } from 'vs/platform/files/common/files';
1818
import { RemoteAuthorityResolverErrorCode } from 'vs/platform/remote/common/remoteAuthorityResolver';
1919
import { IRelativePatternDto } from 'vs/workbench/api/common/extHost.protocol';
@@ -1787,6 +1787,10 @@ export enum StatusBarAlignment {
17871787
Right = 2
17881788
}
17891789

1790+
export function asStatusBarItemIdentifier(extension: ExtensionIdentifier, id: string): string {
1791+
return `${ExtensionIdentifier.toKey(extension)}.${id}`;
1792+
}
1793+
17901794
export enum TextEditorLineNumbersStyle {
17911795
Off = 0,
17921796
On = 1,

0 commit comments

Comments
 (0)