Skip to content

Commit dad39b4

Browse files
chore: Add rebasing rules for openssl related changes
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com> Generated-by: Cursor AI
1 parent d7721b5 commit dad39b4

4 files changed

Lines changed: 38 additions & 2 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[
2+
{
3+
"from": "import { clamp } from '../../../base/common/numbers.js';",
4+
"by": "import { clamp } from '../../../base/common/numbers.js';\\\nimport { sanitizeLdLibraryPathInEnvironment, shouldStripLdLibraryPathForShellEnv } from '../../che/utils.js';"
5+
},
6+
{
7+
"from": "const env = {",
8+
"by": "const env: NodeJS.ProcessEnv = {"
9+
},
10+
{
11+
"from": "delete env['VSCODE_RESOLVING_ENVIRONMENT'];",
12+
"by": "delete env['VSCODE_RESOLVING_ENVIRONMENT'];\\\n\t\t\t\tif (shouldStripLdLibraryPathForShellEnv()) {\\\n\t\t\t\t\tsanitizeLdLibraryPathInEnvironment(env, message => logService.trace(message), 'shellEnv');\\\n\t\t\t\t}"
13+
}
14+
]

.rebase/replace/code/src/vs/server/node/extensionHostConnection.ts.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
3-
"from": "import { getNLSConfiguration } from 'vs/server/node/remoteLanguagePacks';",
4-
"by": "import { getNLSConfiguration } from 'vs/server/node/remoteLanguagePacks';\\\nimport { getResolvedPathEnvVar } from 'vs/server/node/che/utils';"
3+
"from": "import { getNLSConfiguration } from './remoteLanguagePacks.js';",
4+
"by": "import { getNLSConfiguration } from './remoteLanguagePacks.js';\\\nimport { getResolvedPathEnvVar } from '../../platform/che/utils.js';"
55
},
66
{
77
"from": "setCaseInsensitive(env, 'PATH', PATH);",
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[
2+
{
3+
"from": "import { shouldUseEnvironmentVariableCollection } from '../../platform/terminal/common/terminalEnvironment.js';",
4+
"by": "import { shouldUseEnvironmentVariableCollection } from '../../platform/terminal/common/terminalEnvironment.js';\\\nimport { sanitizeLdLibraryPathInEnvironment, shouldStripLdLibraryPathForTerminal } from '../../platform/che/utils.js';"
5+
},
6+
{
7+
"from": "const baseEnv = await buildUserEnvironment(args.resolverEnv, !!args.shellLaunchConfig.useShellEnvironment, platform.language, this._environmentService, this._logService, this._configurationService);",
8+
"by": "const baseEnv = await buildUserEnvironment(args.resolverEnv, !!args.shellLaunchConfig.useShellEnvironment, platform.language, this._environmentService, this._logService, this._configurationService);\\\n\t\tif (shouldStripLdLibraryPathForTerminal()) {\\\n\t\t\tsanitizeLdLibraryPathInEnvironment(baseEnv, message => this._logService.trace(message), 'remoteTerminalChannel:baseEnv');\\\n\t\t}"
9+
},
10+
{
11+
"from": "// Apply extension environment variable collections to the environment",
12+
"by": "if (shouldStripLdLibraryPathForTerminal()) {\\\n\t\t\tsanitizeLdLibraryPathInEnvironment(env, message => this._logService.trace(message), 'remoteTerminalChannel:terminalEnv');\\\n\t\t}\\\n\\\n\t\t// Apply extension environment variable collections to the environment"
13+
},
14+
{
15+
"from": "return { ...process.env };",
16+
"by": "const env: platform.IProcessEnvironment = { ...process.env };\\\n\t\tif (shouldStripLdLibraryPathForTerminal()) {\\\n\t\t\tsanitizeLdLibraryPathInEnvironment(env, message => this._logService.trace(message), 'remoteTerminalChannel:getEnvironment');\\\n\t\t}\\\n\t\treturn env;"
17+
}
18+
]

rebase.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,12 @@ resolve_conflicts() {
484484
apply_changes "$conflictingFile"
485485
elif [[ "$conflictingFile" == "code/src/vs/server/node/serverEnvironmentService.ts" ]]; then
486486
apply_changes "$conflictingFile"
487+
elif [[ "$conflictingFile" == "code/src/vs/platform/shell/node/shellEnv.ts" ]]; then
488+
apply_changes "$conflictingFile"
487489
elif [[ "$conflictingFile" == "code/src/vs/server/node/extensionHostConnection.ts" ]]; then
488490
apply_changes "$conflictingFile"
491+
elif [[ "$conflictingFile" == "code/src/vs/server/node/remoteTerminalChannel.ts" ]]; then
492+
apply_changes "$conflictingFile"
489493
elif [[ "$conflictingFile" == "code/src/vs/code/browser/workbench/workbench.html" ]]; then
490494
apply_changes "$conflictingFile"
491495
elif [[ "$conflictingFile" == "code/src/vs/workbench/browser/workbench.contribution.ts" ]]; then

0 commit comments

Comments
 (0)