beforeCreateServerGitIgnore(
  context: dotnetTypes.DsgContext,
  eventParams: dotnet.CreateServerGitIgnoreParams
): Promise<dotnet.CreateServerGitIgnoreParams> {
  eventParams.gitignorePaths.push(
    "*.user",
    "*.userosscache",
    "*.sln.docstates",
    "[Tt]est[Rr]esult*"
  );
  return eventParams;
}

Event Name

CreateServerGitIgnore

Event Parameters

gitignorePaths
string[]

An array of paths to be added to the .gitignore file.

beforeCreateServerGitIgnore(
  context: dotnetTypes.DsgContext,
  eventParams: dotnet.CreateServerGitIgnoreParams
): Promise<dotnet.CreateServerGitIgnoreParams> {
  eventParams.gitignorePaths.push(
    "*.user",
    "*.userosscache",
    "*.sln.docstates",
    "[Tt]est[Rr]esult*"
  );
  return eventParams;
}