@@ -18,6 +18,7 @@ import { generateUuid } from 'vs/base/common/uuid';
18
18
import { Promises } from 'vs/base/node/pfs' ;
19
19
import { findFreePort } from 'vs/base/node/ports' ;
20
20
import * as platform from 'vs/base/common/platform' ;
21
+ import { ProxyChannel } from 'vs/base/parts/ipc/common/ipc' ;
21
22
import { PersistentProtocol , ProtocolConstants } from 'vs/base/parts/ipc/common/ipc.net' ;
22
23
import { NodeSocket , WebSocketNodeSocket } from 'vs/base/parts/ipc/node/ipc.net' ;
23
24
import { ConnectionType , ConnectionTypeRequest , ErrorMessage , HandshakeMessage , IRemoteExtensionHostStartParams , ITunnelConnectionStartParams , SignRequest } from 'vs/platform/remote/common/remoteAgentConnection' ;
@@ -346,6 +347,13 @@ export class RemoteExtensionHostAgentServer extends Disposable {
346
347
const channel = new ExtensionManagementChannel ( extensionManagementService , ( ctx : RemoteAgentConnectionContext ) => this . _getUriTransformer ( ctx . remoteAuthority ) ) ;
347
348
this . _socketServer . registerChannel ( 'extensions' , channel ) ;
348
349
350
+ /**
351
+ * Register localizations channel.
352
+ * @author coder
353
+ */
354
+ const localizationsChannel = ProxyChannel . fromService < RemoteAgentConnectionContext > ( accessor . get ( ILocalizationsService ) ) ;
355
+ this . _socketServer . registerChannel ( 'localizations' , localizationsChannel ) ;
356
+
349
357
// clean up deprecated extensions
350
358
( extensionManagementService as ExtensionManagementService ) . removeDeprecatedExtensions ( ) ;
351
359
@@ -419,9 +427,13 @@ export class RemoteExtensionHostAgentServer extends Disposable {
419
427
if ( parsedPath . base === 'vscode-remote-resource' ) {
420
428
// Handle HTTP requests for resources rendered in the rich client (images, fonts, etc.)
421
429
// These resources could be files shipped with extensions or even workspace files.
422
- if ( parsedUrl . query [ 'tkn' ] !== this . _connectionToken ) {
423
- return this . _webClientServer . serveError ( req , res , 403 , `Forbidden.` ) ;
424
- }
430
+ /**
431
+ * Disable for now since we have our own auth.
432
+ * @author coder
433
+ */
434
+ // if (parsedUrl.query['tkn'] !== this._connectionToken) {
435
+ // return this._webClientServer.serveError(req, res, 403, `Forbidden.`);
436
+ // }
425
437
426
438
const desiredPath = parsedUrl . query [ 'path' ] ;
427
439
if ( typeof desiredPath !== 'string' ) {
0 commit comments