getActiveFile method

Future<String?> getActiveFile()

Get the active editor file path.

Implementation

Future<String?> getActiveFile() async {
  final resp = await _protocol.sendRequest('jetbrains/getActiveFile', null);
  if (resp.isSuccess) return resp.result as String?;
  return null;
}