-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR updates `qsc_project` logic so Q# projects: - Default to `/src/**/*.qs` (instead of all sibling files) - Ignore all dot entries - Don't support exclude files and regexes Aside: This PR nicely proves that our project logic is indeed centralized. We only need to update `qsc_project`, and we get project
- Loading branch information
Showing
52 changed files
with
195 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
compiler/qsc_project/tests/projects/exclude_blobs/qsharp.json
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
compiler/qsc_project/tests/projects/exclude_blobs/to_exclude/Numbers.qs
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
compiler/qsc_project/tests/projects/exclude_blobs/to_include/Numbers.qs
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
compiler/qsc_project/tests/projects/exclude_files/Main.exclude.qs
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
compiler/qsc_project/tests/projects/exclude_files/qsharp.json
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
compiler/qsc_project/tests/projects/exclude_files_with_regex/Main.exclude.qs
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
compiler/qsc_project/tests/projects/exclude_files_with_regex/Main.qs
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
compiler/qsc_project/tests/projects/exclude_files_with_regex/qsharp.json
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
1 change: 1 addition & 0 deletions
1
compiler/qsc_project/tests/projects/hidden_files/src/.HiddenFile.qs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
namespace Foo {} |
6 changes: 6 additions & 0 deletions
6
compiler/qsc_project/tests/projects/hidden_files/src/Project.qs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Project { | ||
@EntryPoint() | ||
operation Entry() : String { | ||
Strings.Concat("12", $"{(Math.Subtract(346, 1))}") | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
compiler/qsc_project/tests/projects/hidden_files/src/utils/.strings/Concat.qs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace Strings { | ||
function Concat(a: String, b: String) : String { | ||
a + b | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
compiler/qsc_project/tests/projects/hidden_files/src/utils/ops/Add.qs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace Math { | ||
function Add(a: Int, b: Int) : Int { | ||
a + b | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
compiler/qsc_project/tests/projects/hidden_files/src/utils/ops/Subtract.qs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace Math { | ||
function Subtract(a: Int, b: Int) : Int { | ||
a - b | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
compiler/qsc_project/tests/projects/peer_file/ShouldNotBeIncluded.qs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file should not be included in the project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Project { | ||
@EntryPoint() | ||
operation Entry() : String { | ||
Strings.Concat("12", $"{(Math.Subtract(346, 1))}") | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
compiler/qsc_project/tests/projects/peer_file/src/utils/ops/Add.qs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace Math { | ||
function Add(a: Int, b: Int) : Int { | ||
a + b | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
compiler/qsc_project/tests/projects/peer_file/src/utils/ops/Subtract.qs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace Math { | ||
function Subtract(a: Int, b: Int) : Int { | ||
a - b | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
compiler/qsc_project/tests/projects/peer_file/src/utils/strings/Concat.qs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace Strings { | ||
function Concat(a: String, b: String) : String { | ||
a + b | ||
} | ||
} |
Oops, something went wrong.