Skip to content

Commit 2fa41fb

Browse files
committed
Add "web" as extensionKind to extensions which support this
1 parent 731f9c2 commit 2fa41fb

4 files changed

Lines changed: 11 additions & 6 deletions

File tree

extensions/image-preview/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "%description%",
55
"extensionKind": [
66
"ui",
7-
"workspace"
7+
"workspace",
8+
"web"
89
],
910
"version": "1.0.0",
1011
"publisher": "vscode",

extensions/python/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"activationEvents": ["onLanguage:python"],
1010
"main": "./out/pythonMain",
1111
"browser": "./dist/browser/pythonMain",
12-
"extensionKind": [ "ui", "workspace" ],
12+
"extensionKind": [ "ui", "workspace", "web" ],
1313
"contributes": {
1414
"languages": [{
1515
"id": "python",

src/vs/workbench/contrib/remote/common/remote.contribution.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,13 @@ const extensionKindSchema: IJSONSchema = {
9797
type: 'string',
9898
enum: [
9999
'ui',
100-
'workspace'
100+
'workspace',
101+
'web'
101102
],
102103
enumDescriptions: [
103104
localize('ui', "UI extension kind. In a remote window, such extensions are enabled only when available on the local machine."),
104-
localize('workspace', "Workspace extension kind. In a remote window, such extensions are enabled only when available on the remote.")
105+
localize('workspace', "Workspace extension kind. In a remote window, such extensions are enabled only when available on the remote."),
106+
localize('web', "Web worker extension kind. Such an extension can execute in a web worker extension host.")
105107
],
106108
};
107109

src/vs/workbench/services/extensions/common/extensionsRegistry.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,13 @@ const extensionKindSchema: IJSONSchema = {
150150
type: 'string',
151151
enum: [
152152
'ui',
153-
'workspace'
153+
'workspace',
154+
'web'
154155
],
155156
enumDescriptions: [
156157
nls.localize('ui', "UI extension kind. In a remote window, such extensions are enabled only when available on the local machine."),
157-
nls.localize('workspace', "Workspace extension kind. In a remote window, such extensions are enabled only when available on the remote.")
158+
nls.localize('workspace', "Workspace extension kind. In a remote window, such extensions are enabled only when available on the remote."),
159+
nls.localize('web', "Web worker extension kind. Such an extension can execute in a web worker extension host.")
158160
],
159161
};
160162

0 commit comments

Comments
 (0)