How to use the botbuilder-lg.DiagnosticSeverity function in botbuilder-lg

To help you get started, we’ve selected a few botbuilder-lg examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / BotFramework-Composer / Composer / packages / tools / language-servers / lg / server / src / lg-server.ts View on Github external
protected convertSeverity(severity: lg.DiagnosticSeverity): DiagnosticSeverity {
    switch (severity) {
      case lg.DiagnosticSeverity.Error:
        return DiagnosticSeverity.Error;
      case lg.DiagnosticSeverity.Hint:
        return DiagnosticSeverity.Hint;
      case lg.DiagnosticSeverity.Information:
        return DiagnosticSeverity.Information;
      case lg.DiagnosticSeverity.Warning:
        return DiagnosticSeverity.Warning;
    }
  }
github microsoft / BotFramework-Composer / Composer / packages / tools / language-servers / lg / server / src / lg-server.ts View on Github external
protected convertSeverity(severity: lg.DiagnosticSeverity): DiagnosticSeverity {
    switch (severity) {
      case lg.DiagnosticSeverity.Error:
        return DiagnosticSeverity.Error;
      case lg.DiagnosticSeverity.Hint:
        return DiagnosticSeverity.Hint;
      case lg.DiagnosticSeverity.Information:
        return DiagnosticSeverity.Information;
      case lg.DiagnosticSeverity.Warning:
        return DiagnosticSeverity.Warning;
    }
  }
github microsoft / BotFramework-Composer / Composer / packages / tools / language-servers / lg / server / src / lg-server.ts View on Github external
protected convertSeverity(severity: lg.DiagnosticSeverity): DiagnosticSeverity {
    switch (severity) {
      case lg.DiagnosticSeverity.Error:
        return DiagnosticSeverity.Error;
      case lg.DiagnosticSeverity.Hint:
        return DiagnosticSeverity.Hint;
      case lg.DiagnosticSeverity.Information:
        return DiagnosticSeverity.Information;
      case lg.DiagnosticSeverity.Warning:
        return DiagnosticSeverity.Warning;
    }
  }
github microsoft / BotFramework-Composer / Composer / packages / tools / language-servers / lg-language-server / lib / utils.js View on Github external
function convertSeverity(severity) {
  switch (severity) {
    case lg.DiagnosticSeverity.Error:
      return vscode_languageserver_types_1.DiagnosticSeverity.Error;
    case lg.DiagnosticSeverity.Hint:
      return vscode_languageserver_types_1.DiagnosticSeverity.Hint;
    case lg.DiagnosticSeverity.Information:
      return vscode_languageserver_types_1.DiagnosticSeverity.Information;
    case lg.DiagnosticSeverity.Warning:
      return vscode_languageserver_types_1.DiagnosticSeverity.Warning;
  }
}
exports.convertSeverity = convertSeverity;
github microsoft / BotFramework-Composer / Composer / packages / tools / language-servers / lg / server / src / lg-server.ts View on Github external
protected convertSeverity(severity: lg.DiagnosticSeverity): DiagnosticSeverity {
    switch (severity) {
      case lg.DiagnosticSeverity.Error:
        return DiagnosticSeverity.Error;
      case lg.DiagnosticSeverity.Hint:
        return DiagnosticSeverity.Hint;
      case lg.DiagnosticSeverity.Information:
        return DiagnosticSeverity.Information;
      case lg.DiagnosticSeverity.Warning:
        return DiagnosticSeverity.Warning;
    }
  }
github microsoft / BotFramework-Composer / Composer / packages / tools / language-servers / language-generation / src / utils.ts View on Github external
export function convertSeverity(severity: lg.DiagnosticSeverity): DiagnosticSeverity {
  switch (severity) {
    case lg.DiagnosticSeverity.Error:
      return DiagnosticSeverity.Error;
    case lg.DiagnosticSeverity.Hint:
      return DiagnosticSeverity.Hint;
    case lg.DiagnosticSeverity.Information:
      return DiagnosticSeverity.Information;
    case lg.DiagnosticSeverity.Warning:
      return DiagnosticSeverity.Warning;
  }
}