mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
4ffdea838a
* use local registry to check if typings package exist (#12014) use local registry to check if typings package exist * enable sending telemetry events to tsserver client (#12035) enable sending telemetry events
24 lines
846 B
TypeScript
24 lines
846 B
TypeScript
/// <reference path="types.d.ts" />
|
|
|
|
namespace ts.server {
|
|
export const ActionSet: ActionSet = "action::set";
|
|
export const ActionInvalidate: ActionInvalidate = "action::invalidate";
|
|
export const EventInstall: EventInstall = "event::install";
|
|
|
|
export namespace Arguments {
|
|
export const GlobalCacheLocation = "--globalTypingsCacheLocation";
|
|
export const LogFile = "--logFile";
|
|
export const EnableTelemetry = "--enableTelemetry";
|
|
}
|
|
|
|
export function hasArgument(argumentName: string) {
|
|
return sys.args.indexOf(argumentName) >= 0;
|
|
}
|
|
|
|
export function findArgument(argumentName: string) {
|
|
const index = sys.args.indexOf(argumentName);
|
|
return index >= 0 && index < sys.args.length - 1
|
|
? sys.args[index + 1]
|
|
: undefined;
|
|
}
|
|
} |