Skip to content

Commit 0eb3b4c

Browse files
authored
Merge pull request #7 from aws-spenceng/staging_1.83.1-pr3
Initialize copy-resources.sh script, resources folder, and updated README
2 parents 440f9f0 + f97b426 commit 0eb3b4c

File tree

9 files changed

+56
-0
lines changed

9 files changed

+56
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
This is the repo for `sagemaker-code-editor`.
44

5+
The `patched-vscode` folder's only usage is to help reviewers review the patch changes. To ease reviewing patches (`.diff` files), whenever we raise a PR for adding/updating a patch, we will also apply the patches to this directory so that this folder's diff shows up in the PR.
6+
7+
Whenever we create a new branch with `vscode` pointing to a specific commit, this folder must be populated with the same contents as `vscode` at that particular commit.
8+
59
To properly patch, please follow instructions below:
610

711
* Copy resources with the shell script (also in the root directory) by running these commands:

copy-resources.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
# Define the source directory for the resources
4+
SOURCE_DIR="resources"
5+
6+
# Define the destination base directory
7+
DEST_DIR="vscode"
8+
9+
# Define paths for each file relative to the base directories
10+
# Format: "source_file_path:destination_file_path"
11+
FILES_TO_COPY=(
12+
"favicon.ico:src/sagemaker-code-editor/vscode/resources/server/favicon.ico"
13+
"code-icon.svg:src/sagemaker-code-editor/vscode/src/vs/workbench/browser/media/code-icon.svg"
14+
"letterpress-dark.svg:src/sagemaker-code-editor/vscode/src/vs/workbench/browser/parts/editor/media/letterpress-dark.svg"
15+
"letterpress-hcDark.svg:src/sagemaker-code-editor/vscode/src/vs/workbench/browser/parts/editor/media/letterpress-hcDark.svg"
16+
"letterpress-hcLight.svg:src/sagemaker-code-editor/vscode/src/vs/workbench/browser/parts/editor/media/letterpress-hcLight.svg"
17+
"letterpress-light.svg:src/sagemaker-code-editor/vscode/src/vs/workbench/browser/parts/editor/media/letterpress-light.svg"
18+
)
19+
20+
# Loop through the file paths and copy each one to its new location
21+
for FILE_PATH in "${FILES_TO_COPY[@]}"; do
22+
IFS=":" read -r SRC_FILE DEST_FILE <<< "$FILE_PATH"
23+
24+
# Construct full source and destination paths
25+
FULL_SRC_PATH="$SOURCE_DIR/$SRC_FILE"
26+
FULL_DEST_PATH="$DEST_DIR/$DEST_FILE"
27+
28+
# Copy file from source to destination
29+
cp "$FULL_SRC_PATH" "$FULL_DEST_PATH"
30+
echo "Copied $FULL_SRC_PATH to $FULL_DEST_PATH"
31+
done

resources/code-icon.svg

Lines changed: 4 additions & 0 deletions
Loading

resources/favicon.ico

1.12 KB
Binary file not shown.

resources/letterpress-dark.svg

Lines changed: 4 additions & 0 deletions
Loading

resources/letterpress-hcDark.svg

Lines changed: 4 additions & 0 deletions
Loading

resources/letterpress-hcLight.svg

Lines changed: 4 additions & 0 deletions
Loading

resources/letterpress-light.svg

Lines changed: 4 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)