提交 33aeb8e9 编写于 作者: M Matt Bierner

Remove unused functions in ts extension

上级 adb7b656
......@@ -365,9 +365,9 @@ export default class TypeScriptServiceClient implements ITypescriptServiceClient
if (this.apiVersion.has230Features()) {
if (this.plugins.length) {
args.push('--globalPlugins', this.plugins.map(x => x.name).join(','));
// if (currentVersion.path === this.versionProvider.defaultVersion.path) {
args.push('--pluginProbeLocations', this.plugins.map(x => x.path).join(','));
// }
if (currentVersion.path === this.versionProvider.defaultVersion.path) {
args.push('--pluginProbeLocations', this.plugins.map(x => x.path).join(','));
}
}
}
......
......@@ -16,7 +16,7 @@ export default class API {
return new API(localize('invalidVersion', 'invalid version'), '1.0.0');
}
// Cut of any prerelease tag since we sometimes consume those on purpose.
// Cut off any prerelease tag since we sometimes consume those on purpose.
const index = versionString.indexOf('-');
if (index >= 0) {
version = version.substr(0, index);
......@@ -29,7 +29,6 @@ export default class API {
private readonly version: string
) { }
public has203Features(): boolean {
return semver.gte(this.version, '2.0.3');
}
......
......@@ -53,27 +53,6 @@ export class Delayer<T> {
return this.completionPromise;
}
public forceDelivery(): Promise<T | null> | null {
if (!this.completionPromise) {
return null;
}
this.cancelTimeout();
let result = this.completionPromise;
if (this.onSuccess) {
this.onSuccess(undefined);
}
return result;
}
public isTriggered(): boolean {
return this.timeout !== null;
}
public cancel(): void {
this.cancelTimeout();
this.completionPromise = null;
}
private cancelTimeout(): void {
if (this.timeout !== null) {
clearTimeout(this.timeout);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册