start static method

Future<LspStdioConfig> start({
  1. required String executable,
  2. required String filePath,
  3. required String workspacePath,
  4. required String languageId,
  5. List<String>? args,
  6. Map<String, String>? environment,
  7. bool disableWarning = false,
  8. bool disableError = false,
})

Implementation

static Future<LspStdioConfig> start({
  required String executable,
  required String filePath,
  required String workspacePath,
  required String languageId,
  List<String>? args,
  Map<String, String>? environment,
  bool disableWarning = false,
  bool disableError = false,
}) async {
  final config = LspStdioConfig._(
    executable: executable,
    filePath: filePath,
    languageId: languageId,
    workspacePath: workspacePath,
    args: args,
    environment: environment,
    disableWarning: disableWarning,
    disableError: disableError,
  );
  await config._startProcess();
  return config;
}