提交 c8a6e6e8 编写于 作者: A Alex Dima

Tweaks

上级 7f9d7012
...@@ -134,7 +134,8 @@ export function createApiFactory( ...@@ -134,7 +134,8 @@ export function createApiFactory(
const extHostLanguages = new ExtHostLanguages(rpcProtocol, extHostDocuments); const extHostLanguages = new ExtHostLanguages(rpcProtocol, extHostDocuments);
// Register an output channel for exthost log // Register an output channel for exthost log
extHostOutputService.createOutputChannelFromLogFile(localize('extensionsLog', "Extension Host"), extHostLogService.logFile); const name = localize('extensionsLog', "Extension Host");
extHostOutputService.createOutputChannelFromLogFile(name, extHostLogService.logFile);
// Register API-ish commands // Register API-ish commands
ExtHostApiCommands.register(extHostCommands); ExtHostApiCommands.register(extHostCommands);
......
...@@ -263,7 +263,7 @@ export class ExtensionHostProcessWorker implements IExtensionHostStarter { ...@@ -263,7 +263,7 @@ export class ExtensionHostProcessWorker implements IExtensionHostStarter {
// Help in case we fail to start it // Help in case we fail to start it
let startupTimeoutHandle: any; let startupTimeoutHandle: any;
if (!this._environmentService.isBuilt || this._isExtensionDevHost) { if (!this._environmentService.isBuilt && !this._windowService.getConfiguration().remoteAuthority || this._isExtensionDevHost) {
startupTimeoutHandle = setTimeout(() => { startupTimeoutHandle = setTimeout(() => {
const msg = this._isExtensionDevDebugBrk const msg = this._isExtensionDevDebugBrk
? nls.localize('extensionHostProcess.startupFailDebug', "Extension host did not start in 10 seconds, it might be stopped on the first line and needs a debugger to continue.") ? nls.localize('extensionHostProcess.startupFailDebug', "Extension host did not start in 10 seconds, it might be stopped on the first line and needs a debugger to continue.")
......
...@@ -66,7 +66,7 @@ function _transformOutgoingURIs(obj: any, transformer: IURITransformer, depth: n ...@@ -66,7 +66,7 @@ function _transformOutgoingURIs(obj: any, transformer: IURITransformer, depth: n
return null; return null;
} }
export function transformOutgoingURIs(obj: any, transformer: IURITransformer): any { export function transformOutgoingURIs<T>(obj: T, transformer: IURITransformer): T {
const result = _transformOutgoingURIs(obj, transformer, 0); const result = _transformOutgoingURIs(obj, transformer, 0);
if (result === null) { if (result === null) {
// no change // no change
...@@ -101,7 +101,7 @@ function _transformIncomingURIs(obj: any, transformer: IURITransformer, depth: n ...@@ -101,7 +101,7 @@ function _transformIncomingURIs(obj: any, transformer: IURITransformer, depth: n
return null; return null;
} }
function transformIncomingURIs(obj: any, transformer: IURITransformer): any { function transformIncomingURIs<T>(obj: T, transformer: IURITransformer): T {
const result = _transformIncomingURIs(obj, transformer, 0); const result = _transformIncomingURIs(obj, transformer, 0);
if (result === null) { if (result === null) {
// no change // no change
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册