Skip to content

Commit d306d4c

Browse files
committed
fix conflicts
2 parents 2cc48b2 + 0af4ba0 commit d306d4c

File tree

69 files changed

+1303
-608
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1303
-608
lines changed

build/azure-pipelines/alpine/cli-build-alpine.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ steps:
3030
workingDirectory: build
3131
displayName: Install pipeline build
3232
33-
- script: node build/azure-pipelines/distro/apply-cli-patches
33+
- script: node .build/distro/cli-patches/index.js
3434
displayName: Apply distro patches
3535

3636
- task: Npm@1
Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
steps:
22
- template: ../distro/download-distro.yml
33

4-
- task: Cache@2
5-
inputs:
6-
key: '"build_node_modules" | build/yarn.lock'
7-
path: build/node_modules
8-
cacheHitVar: BUILD_NODE_MODULES_RESTORED
9-
displayName: Restore node_modules cache
10-
11-
- script: yarn --frozen-lockfile --ignore-optional --check-files
12-
workingDirectory: build
13-
condition: and(succeeded(), ne(variables.BUILD_NODE_MODULES_RESTORED, 'true'))
14-
displayName: Install pipeline build
15-
16-
- script: node build/azure-pipelines/distro/apply-cli-patches
4+
- script: node .build/distro/cli-patches/index.js
175
displayName: Apply distro patches

build/azure-pipelines/distro/apply-cli-patches.js

Lines changed: 0 additions & 45 deletions
This file was deleted.

build/azure-pipelines/distro/apply-cli-patches.ts

Lines changed: 0 additions & 45 deletions
This file was deleted.

build/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"@azure/identity": "^3.1.3",
88
"@azure/storage-blob": "^12.13.0",
99
"@electron/get": "^1.12.4",
10-
"@iarna/toml": "^2.2.5",
1110
"@types/ansi-colors": "^3.2.0",
1211
"@types/byline": "^4.2.32",
1312
"@types/cssnano": "^4.0.0",
@@ -24,7 +23,6 @@
2423
"@types/gulp-postcss": "^8.0.0",
2524
"@types/gulp-rename": "^0.0.33",
2625
"@types/gulp-sourcemaps": "^0.0.32",
27-
"@types/iarna__toml": "^2.0.2",
2826
"@types/mime": "0.0.29",
2927
"@types/minimatch": "^3.0.3",
3028
"@types/minimist": "^1.2.1",

build/yarn.lock

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,6 @@
339339
resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.17.14.tgz#e81fb49de05fed91bf74251c9ca0343f4fc77d31"
340340
integrity sha512-gPQmsi2DKTaEgG14hc3CHXHp62k8g6qr0Pas+I4lUxRMugGSATh/Bi8Dgusoz9IQ0IfdrvLpco6kujEIBoaogA==
341341

342-
"@iarna/toml@^2.2.5":
343-
version "2.2.5"
344-
resolved "https://registry.yarnpkg.com/@iarna/toml/-/toml-2.2.5.tgz#b32366c89b43c6f8cefbdefac778b9c828e3ba8c"
345-
integrity sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==
346-
347342
"@malept/cross-spawn-promise@^1.1.0":
348343
version "1.1.1"
349344
resolved "https://registry.yarnpkg.com/@malept/cross-spawn-promise/-/cross-spawn-promise-1.1.1.tgz#504af200af6b98e198bce768bc1730c6936ae01d"
@@ -506,13 +501,6 @@
506501
"@types/undertaker" "*"
507502
"@types/vinyl-fs" "*"
508503

509-
"@types/iarna__toml@^2.0.2":
510-
version "2.0.2"
511-
resolved "https://registry.yarnpkg.com/@types/iarna__toml/-/iarna__toml-2.0.2.tgz#2e61b079e50760b477bc70e4df1fe5b633ef6c63"
512-
integrity sha512-Q3obxKhBLVVbEQ8zsAmsQVobAAZhi8dFFFjF0q5xKXiaHvH8IkSxcbM27e46M9feUMieR03SPpmp5CtaNzpdBg==
513-
dependencies:
514-
"@types/node" "*"
515-
516504
"@types/js-beautify@*":
517505
version "1.8.0"
518506
resolved "https://registry.yarnpkg.com/@types/js-beautify/-/js-beautify-1.8.0.tgz#0369d3d0e1f35a6aec07cb4da2ee2bcda111367c"

extensions/github/src/branchProtection.ts

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { Repository as GitHubRepository, RepositoryRuleset } from '@octokit/grap
88
import { AuthenticationError, getOctokitGraphql } from './auth';
99
import { API, BranchProtection, BranchProtectionProvider, BranchProtectionRule, Repository } from './typings/git';
1010
import { DisposableStore, getRepositoryFromUrl } from './util';
11+
import TelemetryReporter from '@vscode/extension-telemetry';
1112

1213
const REPOSITORY_QUERY = `
1314
query repositoryPermissions($owner: String!, $repo: String!) {
@@ -60,7 +61,7 @@ export class GithubBranchProtectionProviderManager {
6061

6162
if (enabled) {
6263
for (const repository of this.gitAPI.repositories) {
63-
this.providerDisposables.add(this.gitAPI.registerBranchProtectionProvider(repository.rootUri, new GithubBranchProtectionProvider(repository, this.globalState, this.logger)));
64+
this.providerDisposables.add(this.gitAPI.registerBranchProtectionProvider(repository.rootUri, new GithubBranchProtectionProvider(repository, this.globalState, this.logger, this.telemetryReporter)));
6465
}
6566
} else {
6667
this.providerDisposables.dispose();
@@ -72,10 +73,11 @@ export class GithubBranchProtectionProviderManager {
7273
constructor(
7374
private readonly gitAPI: API,
7475
private readonly globalState: Memento,
75-
private readonly logger: LogOutputChannel) {
76+
private readonly logger: LogOutputChannel,
77+
private readonly telemetryReporter: TelemetryReporter) {
7678
this.disposables.add(this.gitAPI.onDidOpenRepository(repository => {
7779
if (this._enabled) {
78-
this.providerDisposables.add(gitAPI.registerBranchProtectionProvider(repository.rootUri, new GithubBranchProtectionProvider(repository, this.globalState, this.logger)));
80+
this.providerDisposables.add(gitAPI.registerBranchProtectionProvider(repository.rootUri, new GithubBranchProtectionProvider(repository, this.globalState, this.logger, this.telemetryReporter)));
7981
}
8082
}));
8183

@@ -110,7 +112,8 @@ export class GithubBranchProtectionProvider implements BranchProtectionProvider
110112
constructor(
111113
private readonly repository: Repository,
112114
private readonly globalState: Memento,
113-
private readonly logger: LogOutputChannel) {
115+
private readonly logger: LogOutputChannel,
116+
private readonly telemetryReporter: TelemetryReporter) {
114117
// Restore branch protection from global state
115118
this.branchProtection = this.globalState.get<BranchProtection[]>(this.globalStateKey, []);
116119

@@ -199,6 +202,14 @@ export class GithubBranchProtectionProvider implements BranchProtectionProvider
199202
// Save branch protection to global state
200203
await this.globalState.update(this.globalStateKey, branchProtection);
201204
this.logger.trace(`Branch protection for "${this.repository.rootUri.toString()}": ${JSON.stringify(branchProtection)}.`);
205+
206+
/* __GDPR__
207+
"branchProtection" : {
208+
"owner": "lszomoru",
209+
"rulesetCount": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "isMeasurement": true, "comment": "Number of repository rulesets" }
210+
}
211+
*/
212+
this.telemetryReporter.sendTelemetryEvent('branchProtection', undefined, { rulesetCount: this.branchProtection.length });
202213
} catch (err) {
203214
this.logger.warn(`Failed to update repository branch protection: ${err.message}`);
204215

extensions/github/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function initializeGitExtension(context: ExtensionContext, telemetryReporter: Te
9797

9898
disposables.add(registerCommands(gitAPI));
9999
disposables.add(new GithubCredentialProviderManager(gitAPI));
100-
disposables.add(new GithubBranchProtectionProviderManager(gitAPI, context.globalState, logger));
100+
disposables.add(new GithubBranchProtectionProviderManager(gitAPI, context.globalState, logger, telemetryReporter));
101101
disposables.add(gitAPI.registerPushErrorHandler(new GithubPushErrorHandler(telemetryReporter)));
102102
disposables.add(gitAPI.registerRemoteSourcePublisher(new GithubRemoteSourcePublisher(gitAPI)));
103103
disposables.add(new GitHubCanonicalUriProvider(gitAPI));

extensions/markdown-language-features/media/markdown.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ html, body {
99
padding: 0 26px;
1010
line-height: var(--markdown-line-height, 22px);
1111
word-wrap: break-word;
12-
overscroll-behavior-x: none;
1312
}
1413

1514
body {

extensions/markdown-language-features/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@
723723
"dependencies": {
724724
"@vscode/extension-telemetry": "0.7.5",
725725
"dompurify": "^2.4.1",
726-
"highlight.js": "^11.4.0",
726+
"highlight.js": "^11.8.0",
727727
"markdown-it": "^12.3.2",
728728
"markdown-it-front-matter": "^0.2.1",
729729
"morphdom": "^2.6.1",

0 commit comments

Comments
 (0)