-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistency in generated open
location between Code Completion and Code Fix
#789
Comments
Note: There's a function to compare the `open` location retrieved from code completion (`textDocument/completion`) with the `open` location from Quick Fix "open Namespace" (`textDocument/CodeAction`). That's currently disable because these two methods `open` in different locations: * Code Completion: Nearest position (closest module/namespace) * Code Quick: Top Level (most outer scope in file) This might be useful for testing if/when these different behaviors are unified (ionide#789)
Note: There's a function to compare the `open` location retrieved from code completion (`textDocument/completion`) with the `open` location from Quick Fix "open Namespace" (`textDocument/CodeAction`). That's currently disable because these two methods `open` in different locations: * Code Completion: Nearest position (closest module/namespace) * Code Quick: Top Level (most outer scope in file) This might be useful for testing if/when these different behaviors are unified (#789)
Closing as #788 (released in 0.46.2) fixed this. |
#788 "just" fixes some cases where But the basic behaviour of both wasn't changed: Code Completion still |
Oh of course, this was the issue you added specifically to address that inconsistency. |
Inconsistency in generated
open
location between Code Completion and Code FixWhen completing (
Ctrl+Space
) a type in an unopened Namespace, itsopen
gets automatically generated. Alternatively theopen
can be generated via Code Fix (Ctrl+.
) on a type in unopened namespace.But currently these
open
get generated at different locations:Example:
open locations:
These two should have same behaviour.
open XXXX
fixes with differentopen
locations)Additional by baronfel (#788 (comment)):
The text was updated successfully, but these errors were encountered: