@@ -34,34 +34,24 @@ Index: sagemaker-code-editor/vscode/src/vs/workbench/contrib/extensions/browser/
3434===================================================================
3535--- sagemaker-code-editor.orig/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.ts
3636+++ 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,
6050+ @IProductService private readonly productService: IProductService,
6151 ) {
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 );
6353
64- @@ -544 ,6 +546 ,15 @@ export class ExtensionsViewPaneContainer
54+ @@ -560 ,6 +563 ,15 @@ export class ExtensionsViewPaneContainer
6555 this.searchViewletState = this.getMemento(StorageScope.WORKSPACE, StorageTarget.MACHINE);
6656 }
6757
@@ -77,43 +67,33 @@ Index: sagemaker-code-editor/vscode/src/vs/workbench/contrib/extensions/browser/
7767 get searchValue(): string | undefined {
7868 return this.searchBox?.getValue();
7969 }
80- @@ -558,8 +569,7 @@ export class ExtensionsViewPaneContainer
81- hide(overlay);
70+ @@ -586,7 +598,7 @@ export class ExtensionsViewPaneContainer
8271
83- const header = append(this.root, $('.header'));
72+ this. header = append(this.root, $('.header'));
8473- const placeholder = localize('searchExtensions', "Search Extensions in Marketplace");
85- -
8674+ const placeholder = localize('searchExtensions', 'Search extensions in {0}', this.extensionsGalleryHostname);
75+
8776 const searchValue = this.searchViewletState['query.value'] ? this.searchViewletState['query.value'] : '';
8877
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
9778Index: sagemaker-code-editor/vscode/src/vs/server/node/webClientServer.ts
9879===================================================================
9980--- sagemaker-code-editor.orig/vscode/src/vs/server/node/webClientServer.ts
10081+++ 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>> = {
10484 embedderIdentifier: 'server-distro',
10585- extensionsGallery: this._webExtensionResourceUrlTemplate && this._productService.extensionsGallery ? {
10686- ...this._productService.extensionsGallery,
10787- resourceUrlTemplate: this._webExtensionResourceUrlTemplate.with({
10888- scheme: 'http',
10989- authority: remoteAuthority,
110- - path: `${this._webExtensionRoute }/${this._webExtensionResourceUrlTemplate.authority}${this._webExtensionResourceUrlTemplate.path}`
90+ - path: `${webExtensionRoute }/${this._webExtensionResourceUrlTemplate.authority}${this._webExtensionResourceUrlTemplate.path}`
11191- }).toString(true)
11292- } : undefined
11393+ extensionsGallery: this._productService.extensionsGallery,
114- } satisfies Partial<IProductConfiguration> ;
94+ };
11595
116- if (! this._environmentService.isBuilt) {
96+ const proposedApi = this._environmentService.args['enable-proposed-api'];
11797Index: sagemaker-code-editor/vscode/product.json
11898===================================================================
11999--- sagemaker-code-editor.orig/vscode/product.json
@@ -146,7 +126,16 @@ Index: sagemaker-code-editor/vscode/src/vs/platform/extensionResourceLoader/comm
146126 import { TargetPlatform } from 'vs/platform/extensions/common/extensions';
147127
148128 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
150139 }
151140
152141 protected _isWebExtensionResourceEndPoint(uri: URI): boolean {
@@ -158,4 +147,4 @@ Index: sagemaker-code-editor/vscode/src/vs/platform/extensionResourceLoader/comm
158147+ return uriPath.startsWith(WEB_EXTENSION_RESOURCE_END_POINT_SEGMENT);
159148 }
160149
161- }
150+ }
0 commit comments