File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6177,6 +6177,22 @@ declare module 'vscode' {
61776177 writeText ( value : string ) : Thenable < void > ;
61786178 }
61796179
6180+ /**
6181+ * Possible kinds of UI that can use extensions.
6182+ */
6183+ export enum UIKind {
6184+
6185+ /**
6186+ * Extensions are accessed from a desktop application.
6187+ */
6188+ Desktop = 1 ,
6189+
6190+ /**
6191+ * Extensions are accessed from a web browser.
6192+ */
6193+ Web = 2
6194+ }
6195+
61806196 /**
61816197 * Namespace describing the environment the editor runs in.
61826198 */
@@ -6235,6 +6251,13 @@ declare module 'vscode' {
62356251 */
62366252 export const shell : string ;
62376253
6254+ /**
6255+ * The UI kind property indicates from which UI extensions
6256+ * are accessed from. For example, extensions could be accessed
6257+ * from a desktop application or a web browser.
6258+ */
6259+ export const uiKind : UIKind ;
6260+
62386261 /**
62396262 * Opens an *external* item, e.g. a http(s) or mailto-link, using the
62406263 * default application.
Original file line number Diff line number Diff line change @@ -1039,36 +1039,6 @@ declare module 'vscode' {
10391039
10401040 //#endregion
10411041
1042- // #region Ben - UIKind
1043-
1044- /**
1045- * Possible kinds of UI that can use extensions.
1046- */
1047- export enum UIKind {
1048-
1049- /**
1050- * Extensions are accessed from a desktop application.
1051- */
1052- Desktop = 1 ,
1053-
1054- /**
1055- * Extensions are accessed from a web browser.
1056- */
1057- Web = 2
1058- }
1059-
1060- export namespace env {
1061-
1062- /**
1063- * The UI kind property indicates from which UI extensions
1064- * are accessed from. For example, extensions could be accessed
1065- * from a desktop application or a web browser.
1066- */
1067- export const uiKind : UIKind ;
1068- }
1069-
1070- //#endregion
1071-
10721042 //#region Custom editors, mjbvz
10731043
10741044 export interface WebviewEditor extends WebviewPanel {
Original file line number Diff line number Diff line change @@ -255,7 +255,6 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
255255 return getRemoteName ( initData . remote . authority ) ;
256256 } ,
257257 get uiKind ( ) {
258- checkProposedApiEnabled ( extension ) ;
259258 return initData . uiKind ;
260259 }
261260 } ;
You can’t perform that action at this time.
0 commit comments