File tree 10 files changed +186
-5
lines changed
10 files changed +186
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ members = ["crates/*"]
3
3
resolver = " 2"
4
4
5
5
[profile .release ]
6
- strip = true
6
+ # Enable all optimizations
7
+ opt-level = 3
8
+ # Enable full link-time-optimizations
7
9
lto = true
8
10
codegen-units = 1
9
11
# Enable full debug info for optimized builds.
Original file line number Diff line number Diff line change
1
+ pre-release.yml: This should build from the ` main ` branch and publish to the Azure Pipeline feed. This will be consumed by extensions that are also doing pre-release builds. Signing is required on this build.
2
+
3
+ stable.yml: This should build from the ` release/* ` branch and publish to the Azure Pipeline feed. This will be consumed by extensions when publishing stable builds. Signing is required on this build.
4
+
5
+ playground.yml: This pipeline is for engineering/testing purposes so we can do fixes and tests without affecting the pipeline feeds. This will not publish to the Azure Pipeline feed. Signing is not required on this build.
Original file line number Diff line number Diff line change
1
+ trigger : none
2
+ pr : none
3
+ # Should only ever be manually run.
4
+
5
+ resources :
6
+ repositories :
7
+ - repository : templates
8
+ type : github
9
+ name : microsoft/vscode-engineering
10
+ ref : main
11
+ endpoint : Monaco
12
+
13
+ extends :
14
+ template : azure-pipelines/rust-package/pipeline.yml@templates
15
+ parameters :
16
+ ghCreateTag : false
17
+ binaryName : " pet"
18
+ signing : false
19
+ buildWasm : false
20
+ apiScanSoftwareVersion : 2024 # major version of `pet` for internal reporting
21
+
22
+ buildPlatforms :
23
+ - name : Linux
24
+ vsceTarget : " web"
25
+ - name : Linux
26
+ packageArch : arm64
27
+ vsceTarget : linux-arm64
28
+ - name : Linux
29
+ packageArch : arm
30
+ vsceTarget : linux-armhf
31
+ - name : Linux
32
+ packageArch : x64
33
+ vsceTarget : linux-x64
34
+ - name : Linux
35
+ packageArch : arm64
36
+ vsceTarget : alpine-arm64
37
+ - name : Linux
38
+ packageArch : x64
39
+ vsceTarget : alpine-x64
40
+ - name : MacOS
41
+ packageArch : arm64
42
+ vsceTarget : darwin-arm64
43
+ - name : MacOS
44
+ packageArch : x64
45
+ vsceTarget : darwin-x64
46
+ - name : Windows
47
+ packageArch : arm
48
+ vsceTarget : win32-arm64
49
+ - name : Windows
50
+ packageArch : x64
51
+ vsceTarget : win32-x64
52
+
53
+ preBuildSteps :
54
+ - pwsh : Rename-Item -Path "./.cargo/config.toml.disabled" -NewName "config.toml"
55
+ displayName : " Enable Azure Build config for Rust"
Original file line number Diff line number Diff line change
1
+ # Run on a schedule
2
+ trigger : none
3
+ pr : none
4
+
5
+ schedules :
6
+ - cron : " 0 10 * * 1-5" # 10AM UTC (2AM PDT) MON-FRI (VS Code Pre-release builds at 9PM PDT)
7
+ displayName : Nightly Pre-Release Schedule
8
+ always : false # only run if there are source code changes
9
+ branches :
10
+ include :
11
+ - main
12
+
13
+ resources :
14
+ repositories :
15
+ - repository : templates
16
+ type : github
17
+ name : microsoft/vscode-engineering
18
+ ref : main
19
+ endpoint : Monaco
20
+
21
+ extends :
22
+ template : azure-pipelines/rust-package/pipeline.yml@templates
23
+ parameters :
24
+ ghCreateTag : false
25
+ binaryName : " pet"
26
+ signing : true
27
+ buildWasm : false
28
+ apiScanSoftwareVersion : 2024 # major version of `pet` for internal reporting
29
+
30
+ buildPlatforms :
31
+ - name : Linux
32
+ vsceTarget : " web"
33
+ - name : Linux
34
+ packageArch : arm64
35
+ vsceTarget : linux-arm64
36
+ - name : Linux
37
+ packageArch : arm
38
+ vsceTarget : linux-armhf
39
+ - name : Linux
40
+ packageArch : x64
41
+ vsceTarget : linux-x64
42
+ - name : Linux
43
+ packageArch : arm64
44
+ vsceTarget : alpine-arm64
45
+ - name : Linux
46
+ packageArch : x64
47
+ vsceTarget : alpine-x64
48
+ - name : MacOS
49
+ packageArch : arm64
50
+ vsceTarget : darwin-arm64
51
+ - name : MacOS
52
+ packageArch : x64
53
+ vsceTarget : darwin-x64
54
+ - name : Windows
55
+ packageArch : arm
56
+ vsceTarget : win32-arm64
57
+ - name : Windows
58
+ packageArch : x64
59
+ vsceTarget : win32-x64
60
+
61
+ preBuildSteps :
62
+ - pwsh : Rename-Item -Path "./.cargo/config.toml.disabled" -NewName "config.toml"
63
+ displayName : " Enable Azure Build config for Rust"
Original file line number Diff line number Diff line change
1
+ trigger : none
2
+ pr : none
3
+ # Should only ever be manually run.
4
+
5
+ resources :
6
+ repositories :
7
+ - repository : templates
8
+ type : github
9
+ name : microsoft/vscode-engineering
10
+ ref : main
11
+ endpoint : Monaco
12
+
13
+ extends :
14
+ template : azure-pipelines/rust-package/pipeline.yml@templates
15
+ parameters :
16
+ ghCreateTag : false
17
+ binaryName : " pet"
18
+ signing : true
19
+ buildWasm : false
20
+ apiScanSoftwareVersion : 2024 # major version of `pet` for internal reporting
21
+
22
+ buildPlatforms :
23
+ - name : Linux
24
+ vsceTarget : " web"
25
+ - name : Linux
26
+ packageArch : arm64
27
+ vsceTarget : linux-arm64
28
+ - name : Linux
29
+ packageArch : arm
30
+ vsceTarget : linux-armhf
31
+ - name : Linux
32
+ packageArch : x64
33
+ vsceTarget : linux-x64
34
+ - name : Linux
35
+ packageArch : arm64
36
+ vsceTarget : alpine-arm64
37
+ - name : Linux
38
+ packageArch : x64
39
+ vsceTarget : alpine-x64
40
+ - name : MacOS
41
+ packageArch : arm64
42
+ vsceTarget : darwin-arm64
43
+ - name : MacOS
44
+ packageArch : x64
45
+ vsceTarget : darwin-x64
46
+ - name : Windows
47
+ packageArch : arm
48
+ vsceTarget : win32-arm64
49
+ - name : Windows
50
+ packageArch : x64
51
+ vsceTarget : win32-x64
52
+
53
+ preBuildSteps :
54
+ - pwsh : Rename-Item -Path "./.cargo/config.toml.disabled" -NewName "config.toml"
55
+ displayName : " Enable Azure Build config for Rust"
Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ impl Environment for EnvironmentApi {
50
50
if self . global_search_locations . lock ( ) . unwrap ( ) . is_empty ( ) {
51
51
let mut paths =
52
52
env:: split_paths ( & self . get_env_var ( "PATH" . to_string ( ) ) . unwrap_or_default ( ) )
53
- . into_iter ( )
54
53
. filter ( |p| p. exists ( ) )
55
54
. collect :: < Vec < PathBuf > > ( ) ;
56
55
trace ! ( "Env PATH: {:?}" , paths) ;
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ fn get_registry_pythons_from_key_for_company(
101
101
Ok ( install_path_key) => {
102
102
let env_path: String =
103
103
install_path_key. get_value ( "" ) . ok ( ) . unwrap_or_default ( ) ;
104
- let env_path = norm_case ( & PathBuf :: from ( env_path) ) ;
104
+ let env_path = norm_case ( PathBuf :: from ( env_path) ) ;
105
105
if is_windows_app_folder_in_program_files ( & env_path) {
106
106
trace ! (
107
107
"Found Python ({}) in {}\\ Software\\ Python\\ {}\\ {}, but skipping as this is a Windows Store Python" ,
@@ -144,7 +144,7 @@ fn get_registry_pythons_from_key_for_company(
144
144
) ;
145
145
continue ;
146
146
}
147
- let executable = norm_case ( & PathBuf :: from ( executable) ) ;
147
+ let executable = norm_case ( PathBuf :: from ( executable) ) ;
148
148
if !executable. exists ( ) {
149
149
warn ! (
150
150
"Python executable ({}) file not found for {}\\ Software\\ Python\\ {}\\ {}" ,
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ lazy_static! {
32
32
}
33
33
34
34
#[ derive( Default ) ]
35
+ #[ allow( dead_code) ]
35
36
struct PotentialPython {
36
37
#[ allow( dead_code) ]
37
38
path : Option < PathBuf > ,
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ impl Locator for WindowsStore {
74
74
}
75
75
let list_of_possible_exes = vec ! [ env. executable. clone( ) ]
76
76
. into_iter ( )
77
- . chain ( env. symlinks . clone ( ) . unwrap_or_default ( ) . into_iter ( ) )
77
+ . chain ( env. symlinks . clone ( ) . unwrap_or_default ( ) )
78
78
. collect :: < Vec < PathBuf > > ( ) ;
79
79
if let Some ( environments) = self . find_with_cache ( ) {
80
80
for found_env in environments {
Original file line number Diff line number Diff line change @@ -200,6 +200,7 @@ fn find_symlinks(executable: &PathBuf) -> Option<Vec<PathBuf>> {
200
200
}
201
201
202
202
#[ cfg( windows) ]
203
+ #[ allow( clippy:: ptr_arg) ]
203
204
fn find_symlinks ( _executable : & PathBuf ) -> Option < Vec < PathBuf > > {
204
205
// In windows we will need to spawn the Python exe and then get the exes.
205
206
// Lets wait and see if this is necessary.
You can’t perform that action at this time.
0 commit comments