@@ -34,34 +34,24 @@ Index: sagemaker-code-editor/vscode/src/vs/workbench/contrib/extensions/browser/
34
34
===================================================================
35
35
--- sagemaker-code-editor.orig/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.ts
36
36
+++ sagemaker-code-editor/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.ts
37
- @@ -64,6 +64,8 @@ import { ILocalizedString } from 'vs/pla
38
- import { registerNavigableContainer } from 'vs/workbench/browser/actions/widgetNavigationCommands';
39
- import { MenuWorkbenchToolBar } from 'vs/platform/actions/browser/toolbar';
40
- import { createActionViewItem } from 'vs/platform/actions/browser/menuEntryActionViewItem';
41
- + import { IProductService } from 'vs/platform/product/common/productService';
42
- + import { memoize } from 'vs/base/common/decorators';
43
-
44
- export const DefaultViewsContext = new RawContextKey<boolean>('defaultExtensionViews', true);
45
- export const ExtensionsSortByContext = new RawContextKey<string>('extensionsSortByValue', '');
46
- @@ -87,7 +89,6 @@ const SortByUpdateDateContext = new RawC
47
- const REMOTE_CATEGORY: ILocalizedString = localize2({ key: 'remote', comment: ['Remote as in remote machine'] }, "Remote");
48
-
49
- export class ExtensionsViewletViewsContribution extends Disposable implements IWorkbenchContribution {
50
- -
51
- private readonly container: ViewContainer;
52
-
53
- constructor(
54
- @@ -516,7 +517,8 @@ export class ExtensionsViewPaneContainer
55
- @IExtensionService extensionService: IExtensionService,
56
- @IViewDescriptorService viewDescriptorService: IViewDescriptorService,
57
- @IPreferencesService private readonly preferencesService: IPreferencesService,
58
- - @ICommandService private readonly commandService: ICommandService
59
- + @ICommandService private readonly commandService: ICommandService,
37
+ @@ -64,6 +64,8 @@ import { createActionViewItem } from '..
38
+ import { SeverityIcon } from '../../../../base/browser/ui/severityIcon/severityIcon.js';
39
+ import { StandardKeyboardEvent } from '../../../../base/browser/keyboardEvent.js';
40
+ import { KeyCode } from '../../../../base/common/keyCodes.js';
41
+ + import { IProductService } from '../../../../platform/product/common/productService.js';
42
+ + import { memoize } from '../../../../base/common/decorators.js';
43
+ import { ThemeIcon } from '../../../../base/common/themables.js';
44
+ import { Codicon } from '../../../../base/common/codicons.js';
45
+ import { IExtensionGalleryManifest, IExtensionGalleryManifestService } from '../../../../platform/extensionManagement/common/extensionGalleryManifest.js';
46
+ @@ -531,6 +533,7 @@ export class ExtensionsViewPaneContainer
47
+ @ICommandService private readonly commandService: ICommandService,
48
+ @IMcpGalleryService private readonly mcpGalleryService: IMcpGalleryService,
49
+ @ILogService logService: ILogService,
60
50
+ @IProductService private readonly productService: IProductService,
61
51
) {
62
- super(VIEWLET_ID, { mergeViewWithContainerWhenSingleView: true }, instantiationService, configurationService, layoutService, contextMenuService, telemetryService, extensionService, themeService, storageService, contextService, viewDescriptorService);
52
+ super(VIEWLET_ID, { mergeViewWithContainerWhenSingleView: true }, instantiationService, configurationService, layoutService, contextMenuService, telemetryService, extensionService, themeService, storageService, contextService, viewDescriptorService, logService );
63
53
64
- @@ -544 ,6 +546 ,15 @@ export class ExtensionsViewPaneContainer
54
+ @@ -560 ,6 +563 ,15 @@ export class ExtensionsViewPaneContainer
65
55
this.searchViewletState = this.getMemento(StorageScope.WORKSPACE, StorageTarget.MACHINE);
66
56
}
67
57
@@ -77,43 +67,33 @@ Index: sagemaker-code-editor/vscode/src/vs/workbench/contrib/extensions/browser/
77
67
get searchValue(): string | undefined {
78
68
return this.searchBox?.getValue();
79
69
}
80
- @@ -558,8 +569,7 @@ export class ExtensionsViewPaneContainer
81
- hide(overlay);
70
+ @@ -586,7 +598,7 @@ export class ExtensionsViewPaneContainer
82
71
83
- const header = append(this.root, $('.header'));
72
+ this. header = append(this.root, $('.header'));
84
73
- const placeholder = localize('searchExtensions', "Search Extensions in Marketplace");
85
- -
86
74
+ const placeholder = localize('searchExtensions', 'Search extensions in {0}', this.extensionsGalleryHostname);
75
+
87
76
const searchValue = this.searchViewletState['query.value'] ? this.searchViewletState['query.value'] : '';
88
77
89
- const searchContainer = append(header, $('.extensions-search-container'));
90
- @@ -924,4 +934,4 @@ export class MaliciousExtensionChecker i
91
- }).then(() => undefined);
92
- }, err => this.logService.error(err));
93
- }
94
- - }
95
- + }
96
- \ No newline at end of file
97
78
Index: sagemaker-code-editor/vscode/src/vs/server/node/webClientServer.ts
98
79
===================================================================
99
80
--- sagemaker-code-editor.orig/vscode/src/vs/server/node/webClientServer.ts
100
81
+++ sagemaker-code-editor/vscode/src/vs/server/node/webClientServer.ts
101
- @@ -331,14 +331,7 @@ export class WebClientServer {
102
- const productConfiguration = {
103
- rootEndpoint: base,
82
+ @@ -339,11 +339,7 @@ export class WebClientServer {
83
+ const productConfiguration: Partial<Mutable<IProductConfiguration>> = {
104
84
embedderIdentifier: 'server-distro',
105
85
- extensionsGallery: this._webExtensionResourceUrlTemplate && this._productService.extensionsGallery ? {
106
86
- ...this._productService.extensionsGallery,
107
87
- resourceUrlTemplate: this._webExtensionResourceUrlTemplate.with({
108
88
- scheme: 'http',
109
89
- authority: remoteAuthority,
110
- - path: `${this._webExtensionRoute }/${this._webExtensionResourceUrlTemplate.authority}${this._webExtensionResourceUrlTemplate.path}`
90
+ - path: `${webExtensionRoute }/${this._webExtensionResourceUrlTemplate.authority}${this._webExtensionResourceUrlTemplate.path}`
111
91
- }).toString(true)
112
92
- } : undefined
113
93
+ extensionsGallery: this._productService.extensionsGallery,
114
- } satisfies Partial<IProductConfiguration> ;
94
+ };
115
95
116
- if (! this._environmentService.isBuilt) {
96
+ const proposedApi = this._environmentService.args['enable-proposed-api'];
117
97
Index: sagemaker-code-editor/vscode/product.json
118
98
===================================================================
119
99
--- sagemaker-code-editor.orig/vscode/product.json
@@ -146,7 +126,16 @@ Index: sagemaker-code-editor/vscode/src/vs/platform/extensionResourceLoader/comm
146
126
import { TargetPlatform } from 'vs/platform/extensions/common/extensions';
147
127
148
128
const WEB_EXTENSION_RESOURCE_END_POINT_SEGMENT = '/web-extension-resource/';
149
- @@ -141,9 +140,9 @@ export abstract class AbstractExtensionR
129
+ @@ -123,7 +122,7 @@ export abstract class AbstractExtensionR
130
+ : version,
131
+ path: 'extension'
132
+ }));
133
+ - return this._isWebExtensionResourceEndPoint(uri) ? uri.with({ scheme: RemoteAuthorities.getPreferredWebSchema() }) : uri;
134
+ + return this._isWebExtensionResourceEndPoint(uri) ? uri.with({ scheme: 'https' }) : uri;
135
+ }
136
+ return undefined;
137
+ }
138
+ @@ -163,9 +162,9 @@ export abstract class AbstractExtensionR
150
139
}
151
140
152
141
protected _isWebExtensionResourceEndPoint(uri: URI): boolean {
@@ -158,4 +147,4 @@ Index: sagemaker-code-editor/vscode/src/vs/platform/extensionResourceLoader/comm
158
147
+ return uriPath.startsWith(WEB_EXTENSION_RESOURCE_END_POINT_SEGMENT);
159
148
}
160
149
161
- }
150
+ }
0 commit comments