diff options
author | unexge <[email protected]> | 2020-08-02 20:56:54 +0100 |
---|---|---|
committer | unexge <[email protected]> | 2020-08-02 20:56:54 +0100 |
commit | edd79a6b1c6e019d69d8d1304686391ea9cb4209 (patch) | |
tree | b4c29f01b25034794232a5f18ced823d6fe47529 /crates/ra_assists/src/assist_context.rs | |
parent | e96bfd812a0f883bc9aa6b5ebe3b0a712c860487 (diff) |
Add expand glob import assist
Diffstat (limited to 'crates/ra_assists/src/assist_context.rs')
-rw-r--r-- | crates/ra_assists/src/assist_context.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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> { | |||
73 | self.sema.db | 73 | self.sema.db |
74 | } | 74 | } |
75 | 75 | ||
76 | pub(crate) fn source_file(&self) -> &SourceFile { | ||
77 | &self.source_file | ||
78 | } | ||
79 | |||
76 | // NB, this ignores active selection. | 80 | // NB, this ignores active selection. |
77 | pub(crate) fn offset(&self) -> TextSize { | 81 | pub(crate) fn offset(&self) -> TextSize { |
78 | self.frange.range.start() | 82 | self.frange.range.start() |