Skip to content

Commit 4043b9a

Browse files
committed
Merge branch 'main' into aiday/toggleDiffAsSetting
2 parents 2a65810 + 2f1013a commit 4043b9a

File tree

73 files changed

+918
-276
lines changed

Some content is hidden

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

73 files changed

+918
-276
lines changed

CodeQL.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,9 @@ path_classifiers:
2121
- "out-build"
2222
- "out-vscode"
2323
- "**/out/**"
24+
25+
# The default behavior is to tag library code as `library`. Results are hidden
26+
# for library code. You can tag further files as being library code by adding them
27+
# to the `library` section.
28+
library:
29+
- "**/node_modules/**"

build/azure-pipelines/darwin/product-build-darwin.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,16 +212,16 @@ steps:
212212
BuildDropPath: $(agent.builddirectory)/VSCode-darwin-$(VSCODE_ARCH)
213213
PackageName: Visual Studio Code
214214

215-
- publish: $(agent.builddirectory)/VSCode-darwin-$(VSCODE_ARCH)/_manifest
216-
displayName: Publish SBOM (client)
217-
artifact: $(ARTIFACT_PREFIX)sbom_client_darwin_$(VSCODE_ARCH)_sbom
218-
219215
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
220216
displayName: Generate SBOM (server)
221217
inputs:
222218
BuildDropPath: $(agent.builddirectory)/vscode-server-darwin-$(VSCODE_ARCH)
223219
PackageName: Visual Studio Code Server
224220

221+
- publish: $(agent.builddirectory)/VSCode-darwin-$(VSCODE_ARCH)/_manifest
222+
displayName: Publish SBOM (client)
223+
artifact: $(ARTIFACT_PREFIX)sbom_client_darwin_$(VSCODE_ARCH)_sbom
224+
225225
- publish: $(agent.builddirectory)/vscode-server-darwin-$(VSCODE_ARCH)/_manifest
226226
displayName: Publish SBOM (server)
227227
artifact: $(ARTIFACT_PREFIX)sbom_server_darwin_$(VSCODE_ARCH)_sbom

build/azure-pipelines/linux/product-build-linux.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,16 +290,16 @@ steps:
290290
BuildDropPath: $(agent.builddirectory)/VSCode-linux-$(VSCODE_ARCH)
291291
PackageName: Visual Studio Code
292292

293-
- publish: $(agent.builddirectory)/VSCode-linux-$(VSCODE_ARCH)/_manifest
294-
displayName: Publish SBOM (client)
295-
artifact: $(ARTIFACT_PREFIX)sbom_vscode_client_linux_$(VSCODE_ARCH)
296-
297293
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
298294
displayName: Generate SBOM (server)
299295
inputs:
300296
BuildDropPath: $(agent.builddirectory)/vscode-server-linux-$(VSCODE_ARCH)
301297
PackageName: Visual Studio Code Server
302298

299+
- publish: $(agent.builddirectory)/VSCode-linux-$(VSCODE_ARCH)/_manifest
300+
displayName: Publish SBOM (client)
301+
artifact: $(ARTIFACT_PREFIX)sbom_vscode_client_linux_$(VSCODE_ARCH)
302+
303303
- publish: $(agent.builddirectory)/vscode-server-linux-$(VSCODE_ARCH)/_manifest
304304
displayName: Publish SBOM (server)
305305
artifact: $(ARTIFACT_PREFIX)sbom_vscode_server_linux_$(VSCODE_ARCH)

build/azure-pipelines/win32/product-build-win32.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,17 +312,17 @@ steps:
312312
BuildDropPath: $(agent.builddirectory)/VSCode-win32-$(VSCODE_ARCH)
313313
PackageName: Visual Studio Code
314314

315-
- publish: $(agent.builddirectory)/VSCode-win32-$(VSCODE_ARCH)/_manifest
316-
displayName: Publish SBOM (client)
317-
artifact: $(ARTIFACT_PREFIX)sbom_client_win32_$(VSCODE_ARCH)
318-
319315
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
320316
displayName: Generate SBOM (server)
321317
inputs:
322318
BuildDropPath: $(agent.builddirectory)/vscode-server-win32-$(VSCODE_ARCH)
323319
PackageName: Visual Studio Code Server
324320
condition: and(succeeded(), ne(variables['VSCODE_ARCH'], 'arm64'))
325321

322+
- publish: $(agent.builddirectory)/VSCode-win32-$(VSCODE_ARCH)/_manifest
323+
displayName: Publish SBOM (client)
324+
artifact: $(ARTIFACT_PREFIX)sbom_client_win32_$(VSCODE_ARCH)
325+
326326
- publish: $(agent.builddirectory)/vscode-server-win32-$(VSCODE_ARCH)/_manifest
327327
displayName: Publish SBOM (server)
328328
artifact: $(ARTIFACT_PREFIX)sbom_server_win32_$(VSCODE_ARCH)

build/gulpfile.vscode.win32.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ function buildWin32Setup(arch, target) {
9898
AppMutex: product.win32MutexName,
9999
TunnelMutex: product.win32TunnelMutex,
100100
TunnelServiceMutex: product.win32TunnelServiceMutex,
101+
TunnelApplicationName: product.tunnelApplicationName,
101102
ApplicationName: product.applicationName,
102103
Arch: arch,
103104
AppId: { 'ia32': ia32AppId, 'x64': x64AppId, 'arm64': arm64AppId }[arch],

build/win32/code.iss

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,12 +1362,6 @@ begin
13621362
end;
13631363
end;
13641364
1365-
if IsNotBackgroundUpdate() and CheckForMutexes('{#TunnelMutex}') then
1366-
begin
1367-
MsgBox('{#NameShort} is still running a tunnel. Please stop the tunnel before installing.', mbInformation, MB_OK);
1368-
Result := false
1369-
end;
1370-
13711365
end;
13721366
13731367
function WizardNotSilent(): Boolean;
@@ -1380,6 +1374,31 @@ end;
13801374
var
13811375
ShouldRestartTunnelService: Boolean;
13821376
1377+
function StopTunnelOtherProcesses(): Boolean;
1378+
var
1379+
WaitCounter: Integer;
1380+
TaskKilled: Integer;
1381+
begin
1382+
Log('Stopping all tunnel services (at ' + ExpandConstant('"{app}\bin\{#TunnelApplicationName}.exe"') + ')');
1383+
ShellExec('', 'powershell.exe', '-Command "Get-WmiObject Win32_Process | Where-Object { $_.ExecutablePath -eq ' + ExpandConstant('''{app}\bin\{#TunnelApplicationName}.exe''') + ' } | Select @{Name=''Id''; Expression={$_.ProcessId}} | Stop-Process -Force"', '', SW_HIDE, ewWaitUntilTerminated, TaskKilled)
1384+
1385+
WaitCounter := 10;
1386+
while (WaitCounter > 0) and CheckForMutexes('{#TunnelMutex}') do
1387+
begin
1388+
Log('Tunnel process is is still running, waiting');
1389+
Sleep(500);
1390+
WaitCounter := WaitCounter - 1
1391+
end;
1392+
1393+
if CheckForMutexes('{#TunnelMutex}') then
1394+
begin
1395+
Log('Unable to stop tunnel processes');
1396+
Result := False;
1397+
end
1398+
else
1399+
Result := True;
1400+
end;
1401+
13831402
procedure StopTunnelServiceIfNeeded();
13841403
var
13851404
StopServiceResultCode: Integer;
@@ -1413,7 +1432,11 @@ function PrepareToInstall(var NeedsRestart: Boolean): String;
14131432
begin
14141433
if IsNotBackgroundUpdate() then
14151434
StopTunnelServiceIfNeeded();
1416-
Result := ''
1435+
1436+
if IsNotBackgroundUpdate() and not StopTunnelOtherProcesses() then
1437+
Result := '{#NameShort} is still running a tunnel process. Please stop the tunnel before installing.'
1438+
else
1439+
Result := '';
14171440
end;
14181441
14191442
// VS Code will create a flag file before the update starts (/update=C:\foo\bar)
@@ -1607,4 +1630,4 @@ begin
16071630
#endif
16081631
16091632
Exec(ExpandConstant('{sys}\icacls.exe'), ExpandConstant('"{app}" /inheritancelevel:r ') + Permissions, '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
1610-
end;
1633+
end;
Lines changed: 6 additions & 0 deletions
Loading
Lines changed: 6 additions & 0 deletions
Loading

extensions/git/src/api/api1.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ function getStatus(status: Status): string {
363363
case Status.IGNORED: return 'IGNORED';
364364
case Status.INTENT_TO_ADD: return 'INTENT_TO_ADD';
365365
case Status.INTENT_TO_RENAME: return 'INTENT_TO_RENAME';
366+
case Status.TYPE_CHANGED: return 'TYPE_CHANGED';
366367
case Status.ADDED_BY_US: return 'ADDED_BY_US';
367368
case Status.ADDED_BY_THEM: return 'ADDED_BY_THEM';
368369
case Status.DELETED_BY_US: return 'DELETED_BY_US';

extensions/git/src/api/git.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export const enum Status {
7979
IGNORED,
8080
INTENT_TO_ADD,
8181
INTENT_TO_RENAME,
82+
TYPE_CHANGED,
8283

8384
ADDED_BY_US,
8485
ADDED_BY_THEM,

0 commit comments

Comments
 (0)