Fix projectInfo call signature for TS 3.0

This commit is contained in:
Matt Bierner 2018-07-26 17:20:53 -07:00
parent e49f6543a6
commit 21bb402655

View file

@ -9,6 +9,7 @@ import TypeScriptServiceClientHost from './typeScriptServiceClientHost';
import { Command } from './utils/commandManager';
import { Lazy } from './utils/lazy';
import { isImplicitProjectConfigFile, openOrCreateConfigFile } from './utils/tsconfig';
import { nulToken } from './utils/cancellation';
const localize = nls.loadMessageBundle();
@ -131,7 +132,7 @@ async function goToProjectConfig(
let res: protocol.ProjectInfoResponse | undefined = undefined;
try {
res = await client.execute('projectInfo', { file, needFileNameList: false } as protocol.ProjectInfoRequestArgs);
res = await client.execute('projectInfo', { file, needFileNameList: false }, nulToken);
} catch {
// noop
}