Skip to content
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

Various fixes for project aware mode #4299

Merged
merged 290 commits into from
Jul 24, 2023

Conversation

keyboardDrummer
Copy link
Member

@keyboardDrummer keyboardDrummer commented Jul 18, 2023

Changes

  1. Correctly handle publication of diagnostics that don't belong to the current project, using the referenced file {uri.LocalPath} contains error(s) but is not owned by this project. The first error is: {errors.First().Message}
  2. Take URIs into account when handling manual verification run and cancellation requests
  3. Enable project aware mode option
  4. Send compilation status updates for all documents owned by a project
  5. Do not retrigger compilation of a project when opening an unchanged document of that project

Tests

  1. Removed the Skip attribute from two existing tests
  2. Add test RunWithMultipleSimilarDocuments
  3. No test needed
  4. Add test CompilationStatusNotificationTest.MultipleDocuments
  5. Performance, difficult to test without an existing framework

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

alex-chew
alex-chew previously approved these changes Jul 24, 2023
alex-chew
alex-chew previously approved these changes Jul 24, 2023
@keyboardDrummer keyboardDrummer merged commit 3b876aa into dafny-lang:master Jul 24, 2023
18 checks passed
@keyboardDrummer keyboardDrummer deleted the projectAwareFixes branch July 25, 2023 08:32
keyboardDrummer added a commit to keyboardDrummer/dafny that referenced this pull request Sep 15, 2023
Depends on dafny-lang#4273

### Changes

1. Take URIs into account when handling manual verification run and
cancellation requests
1. Enable project aware mode option
1. Send compilation status updates for all documents owned by a project
1. Do not retrigger compilation of a project when opening an unchanged
document of that project

### Tests
1. Add test `RunWithMultipleSimilarDocuments`
1. No test needed
1. Add test `CompilationStatusNotificationTest.MultipleDocuments`
1. Performance, difficult to test without an existing framework

<small>By submitting this pull request, I confirm that my contribution
is made under the terms of the [MIT
license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants