{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/4816","repository_url":"https://api.github.com/repos/Microsoft/visualfsharp","labels_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/4816/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/4816/comments","events_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/4816/events","html_url":"https://github.com/Microsoft/visualfsharp/issues/4816","id":319529009,"number":4816,"title":"Namespaces are highlighted as symbols when module name is a substring of a namespace","user":{"login":"nosami","id":667194,"avatar_url":"https://avatars3.githubusercontent.com/u/667194?v=4","gravatar_id":"","url":"https://api.github.com/users/nosami","html_url":"https://github.com/nosami","followers_url":"https://api.github.com/users/nosami/followers","following_url":"https://api.github.com/users/nosami/following{/other_user}","gists_url":"https://api.github.com/users/nosami/gists{/gist_id}","starred_url":"https://api.github.com/users/nosami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nosami/subscriptions","organizations_url":"https://api.github.com/users/nosami/orgs","repos_url":"https://api.github.com/users/nosami/repos","events_url":"https://api.github.com/users/nosami/events{/privacy}","received_events_url":"https://api.github.com/users/nosami/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-02T12:18:26Z","updated_at":"2018-05-02T12:42:30Z","closed_at":null,"author_association":"MEMBER","body":"In the screenshot below, we have a module named `Test` and a namespace `Test.Namespace`. The `open Test.Namespace` statement is highlighted incorrectly. It looks as if `checkResults.GetSemanticClassification(range)` is returning incorrect colorization. Probably related to this PR https://github.com/Microsoft/visualfsharp/pull/3932/files\r\n\r\nI haven't tested in VS on Windows yet, but I would assume that it has the same issue.\r\n\r\n![image](https://user-images.githubusercontent.com/667194/39522765-2377f86a-4e0b-11e8-879a-ccf3a22ca451.png)\r\n\r\n#### Repro steps\r\n\r\nPaste this code into an editor\r\n\r\n```fs\r\nnamespace Test.Namespace\r\nmodule Test = ()\r\nopen Test\r\nnamespace Test.Namespace\r\nopen Test.Namespace\r\n```\r\n\r\n#### Expected behavior\r\n\r\n`open Test.Namespace` shouldn't be highlighted any differently to any other namespace.\r\n\r\n#### Actual behavior\r\n\r\n`Test` is highlighted as if it were the `Test` module\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/comments/385964351","html_url":"https://github.com/Microsoft/visualfsharp/issues/4816#issuecomment-385964351","issue_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/4816","id":385964351,"user":{"login":"auduchinok","id":3923587,"avatar_url":"https://avatars3.githubusercontent.com/u/3923587?v=4","gravatar_id":"","url":"https://api.github.com/users/auduchinok","html_url":"https://github.com/auduchinok","followers_url":"https://api.github.com/users/auduchinok/followers","following_url":"https://api.github.com/users/auduchinok/following{/other_user}","gists_url":"https://api.github.com/users/auduchinok/gists{/gist_id}","starred_url":"https://api.github.com/users/auduchinok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auduchinok/subscriptions","organizations_url":"https://api.github.com/users/auduchinok/orgs","repos_url":"https://api.github.com/users/auduchinok/repos","events_url":"https://api.github.com/users/auduchinok/events{/privacy}","received_events_url":"https://api.github.com/users/auduchinok/received_events","type":"User","site_admin":false},"created_at":"2018-05-02T12:42:29Z","updated_at":"2018-05-02T12:42:29Z","author_association":"CONTRIBUTOR","body":"Dupe of #4658?"}}
{"actor":{"display_login":"auduchinok"}}