From edd79a6b1c6e019d69d8d1304686391ea9cb4209 Mon Sep 17 00:00:00 2001 From: unexge Date: Sun, 2 Aug 2020 22:56:54 +0300 Subject: Add expand glob import assist --- crates/ra_assists/src/assist_context.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/ra_assists/src/assist_context.rs') diff --git a/crates/ra_assists/src/assist_context.rs b/crates/ra_assists/src/assist_context.rs index 3407df856..afd3fd4b9 100644 --- a/crates/ra_assists/src/assist_context.rs +++ b/crates/ra_assists/src/assist_context.rs @@ -73,6 +73,10 @@ impl<'a> AssistContext<'a> { self.sema.db } + pub(crate) fn source_file(&self) -> &SourceFile { + &self.source_file + } + // NB, this ignores active selection. pub(crate) fn offset(&self) -> TextSize { self.frange.range.start() -- cgit v1.2.3