generated from amazon-archives/__template_MIT-0
-
Notifications
You must be signed in to change notification settings - Fork 33
Post startup script notifications extension for Code Editor #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
patched-vscode/extensions/post-startup-notifications/.vscode/extensions.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| // See http://go.microsoft.com/fwlink/?LinkId=827846 | ||
| // for the documentation about the extensions.json format | ||
| "recommendations": [ | ||
| "dbaeumer.vscode-eslint", | ||
| "amodio.tsl-problem-matcher", | ||
| "ms-vscode.extension-test-runner" | ||
| ] | ||
| } |
21 changes: 21 additions & 0 deletions
21
patched-vscode/extensions/post-startup-notifications/.vscode/launch.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| // A launch configuration that compiles the extension and then opens it inside a new window | ||
| // Use IntelliSense to learn about possible attributes. | ||
| // Hover to view descriptions of existing attributes. | ||
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
| { | ||
| "version": "0.2.0", | ||
| "configurations": [ | ||
| { | ||
| "name": "Run Extension", | ||
| "type": "extensionHost", | ||
| "request": "launch", | ||
| "args": [ | ||
| "--extensionDevelopmentPath=${workspaceFolder}" | ||
| ], | ||
| "outFiles": [ | ||
| "${workspaceFolder}/dist/**/*.js" | ||
| ], | ||
| "preLaunchTask": "${defaultBuildTask}" | ||
| } | ||
| ] | ||
| } |
13 changes: 13 additions & 0 deletions
13
patched-vscode/extensions/post-startup-notifications/.vscode/settings.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| // Place your settings in this file to overwrite default and user settings. | ||
| { | ||
| "files.exclude": { | ||
| "out": false, // set this to true to hide the "out" folder with the compiled JS files | ||
| "dist": false // set this to true to hide the "dist" folder with the compiled JS files | ||
| }, | ||
| "search.exclude": { | ||
| "out": true, // set this to false to include "out" folder in search results | ||
| "dist": true // set this to false to include "dist" folder in search results | ||
| }, | ||
| // Turn off tsc task auto detection since we have the necessary tasks as npm scripts | ||
| "typescript.tsc.autoDetect": "off" | ||
| } |
40 changes: 40 additions & 0 deletions
40
patched-vscode/extensions/post-startup-notifications/.vscode/tasks.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| // See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
| // for the documentation about the tasks.json format | ||
| { | ||
| "version": "2.0.0", | ||
| "tasks": [ | ||
| { | ||
| "type": "npm", | ||
| "script": "watch", | ||
| "problemMatcher": "$ts-webpack-watch", | ||
| "isBackground": true, | ||
| "presentation": { | ||
| "reveal": "never", | ||
| "group": "watchers" | ||
| }, | ||
| "group": { | ||
| "kind": "build", | ||
| "isDefault": true | ||
| } | ||
| }, | ||
| { | ||
| "type": "npm", | ||
| "script": "watch-tests", | ||
| "problemMatcher": "$tsc-watch", | ||
| "isBackground": true, | ||
| "presentation": { | ||
| "reveal": "never", | ||
| "group": "watchers" | ||
| }, | ||
| "group": "build" | ||
| }, | ||
| { | ||
| "label": "tasks: watch-tests", | ||
| "dependsOn": [ | ||
| "npm: watch", | ||
| "npm: watch-tests" | ||
| ], | ||
| "problemMatcher": [] | ||
| } | ||
| ] | ||
| } |
14 changes: 14 additions & 0 deletions
14
patched-vscode/extensions/post-startup-notifications/.vscodeignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| .vscode/** | ||
| .vscode-test/** | ||
| out/** | ||
| node_modules/** | ||
| src/** | ||
| .gitignore | ||
| .yarnrc | ||
| webpack.config.js | ||
| vsc-extension-quickstart.md | ||
| **/tsconfig.json | ||
| **/eslint.config.mjs | ||
| **/*.map | ||
| **/*.ts | ||
| **/.vscode-test.* |
9 changes: 9 additions & 0 deletions
9
patched-vscode/extensions/post-startup-notifications/CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # Change Log | ||
|
|
||
| All notable changes to the "post-startup-notifications" extension will be documented in this file. | ||
|
|
||
| Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file. | ||
|
|
||
| ## [Unreleased] | ||
|
|
||
| - Initial release |
4 changes: 4 additions & 0 deletions
4
patched-vscode/extensions/post-startup-notifications/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| # post-startup-notifications README | ||
|
|
||
| This extension monitors post startup script execution and notifies users on success/failure. | ||
|
|
Empty file.
28 changes: 28 additions & 0 deletions
28
patched-vscode/extensions/post-startup-notifications/eslint.config.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| import typescriptEslint from "@typescript-eslint/eslint-plugin"; | ||
| import tsParser from "@typescript-eslint/parser"; | ||
|
|
||
| export default [{ | ||
| files: ["**/*.ts"], | ||
| }, { | ||
| plugins: { | ||
| "@typescript-eslint": typescriptEslint, | ||
| }, | ||
|
|
||
| languageOptions: { | ||
| parser: tsParser, | ||
| ecmaVersion: 2022, | ||
| sourceType: "module", | ||
| }, | ||
|
|
||
| rules: { | ||
| "@typescript-eslint/naming-convention": ["warn", { | ||
| selector: "import", | ||
| format: ["camelCase", "PascalCase"], | ||
| }], | ||
|
|
||
| curly: "warn", | ||
| eqeqeq: "warn", | ||
| "no-throw-literal": "warn", | ||
| semi: "warn", | ||
| }, | ||
| }]; |
57 changes: 57 additions & 0 deletions
57
patched-vscode/extensions/post-startup-notifications/package.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| { | ||
| "name": "post-startup-notifications", | ||
| "displayName": "post-startup-notifications", | ||
| "description": "Extension for surfacing post startup script status notifications to users", | ||
| "version": "0.0.1", | ||
| "publisher": "sagemaker", | ||
| "license": "MIT", | ||
| "engines": { | ||
| "vscode": "^1.73.0" | ||
| }, | ||
| "categories": [ | ||
| "Other" | ||
| ], | ||
| "activationEvents": [ | ||
| "*" | ||
| ], | ||
| "main": "./dist/extension.js", | ||
| "contributes": { | ||
| "commands": [] | ||
| }, | ||
| "scripts": { | ||
| "test": "jest", | ||
| "compile": "gulp compile-extension:post-startup-notifications", | ||
| "watch": "npm run build-preview && gulp watch-extension:post-startup-notifications", | ||
| "vscode:prepublish": "npm run build-ext", | ||
| "build-ext": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:post-startup-notifications ./tsconfig.json" | ||
| }, | ||
| "jest": { | ||
| "preset": "ts-jest", | ||
| "testEnvironment": "node", | ||
| "moduleFileExtensions": [ | ||
| "ts", | ||
| "js" | ||
| ] | ||
| }, | ||
| "devDependencies": { | ||
| "@types/jest": "^29.5.14", | ||
| "@types/mocha": "^10.0.10", | ||
| "@types/node": "20.x", | ||
| "@types/vscode": "^1.98.0", | ||
| "@typescript-eslint/eslint-plugin": "^8.25.0", | ||
| "@typescript-eslint/parser": "^8.25.0", | ||
| "@vscode/test-cli": "^0.0.10", | ||
| "@vscode/test-electron": "^2.4.1", | ||
| "eslint": "^9.21.0", | ||
| "jest": "^29.7.0", | ||
| "mocha": "^11.1.0", | ||
| "ts-jest": "^29.3.0", | ||
| "ts-loader": "^9.5.2", | ||
| "typescript": "^5.7.3", | ||
| "webpack": "^5.98.0", | ||
| "webpack-cli": "^6.0.1" | ||
| }, | ||
| "dependencies": { | ||
| "chokidar": "^4.0.3" | ||
| } | ||
| } |
3 changes: 3 additions & 0 deletions
3
patched-vscode/extensions/post-startup-notifications/src/constant.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| export const POST_START_UP_STATUS_FILE = '/tmp/.post-startup-status.json'; | ||
| export const SERVICE_NAME_ENV_VALUE = 'SageMakerUnifiedStudio'; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: SERVICE_NAME_ENV_VALUE -> SAGEMAKER_UNIFIED_STUDIO |
||
| export const SERVICE_NAME_ENV_KEY = 'SERVICE_NAME'; | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confusing to understand what is added and what is not added here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only the lines in dirs.js and gulpfile.extensions.js containing post-startup-notifications has been added.