Skip to content

Commit

Permalink
ext code (if needed)
Browse files Browse the repository at this point in the history
  • Loading branch information
therealsiege committed Feb 16, 2024
1 parent 89c7f47 commit 01a903e
Show file tree
Hide file tree
Showing 1,023 changed files with 169,207 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @therealsiege
4 changes: 4 additions & 0 deletions extension/[Content_Types].xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
<Default Extension=".md" ContentType="text/markdown"/><Default Extension=".js" ContentType="application/javascript"/><Default Extension=".txt" ContentType="text/plain"/><Default Extension=".json" ContentType="application/json"/><Default Extension=".png" ContentType="image/png"/><Default Extension=".svg" ContentType="image/svg+xml"/><Default Extension=".yml" ContentType="text/yaml"/><Default Extension=".bnf" ContentType="application/octet-stream"/><Default Extension=".ts" ContentType="video/mp2t"/><Default Extension=".lock" ContentType="application/octet-stream"/><Default Extension=".bak" ContentType="application/octet-stream"/><Default Extension=".el" ContentType="application/octet-stream"/><Default Extension=".opts" ContentType="application/octet-stream"/><Default Extension=".coffee" ContentType="text/coffeescript"/><Default Extension=".jst" ContentType="application/octet-stream"/><Default Extension=".def" ContentType="text/plain"/><Default Extension=".1" ContentType="application/octet-stream"/><Default Extension=".markdown" ContentType="text/markdown"/><Default Extension=".conf" ContentType="text/plain"/><Default Extension=".targ" ContentType="application/octet-stream"/><Default Extension=".xml" ContentType="application/xml"/><Default Extension=".in" ContentType="text/plain"/><Default Extension=".html" ContentType="text/html"/><Default Extension=".patch" ContentType="application/octet-stream"/><Default Extension=".vsixmanifest" ContentType="text/xml"/>
</Types>
38 changes: 38 additions & 0 deletions extension/extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Language="en-US" Id="stackery" Version="1.1.4" Publisher="stackery"/>
<DisplayName>Stackery Serverless Tools</DisplayName>
<Description xml:space="preserve">CloudFormation architecture editing + local debugging and development of any AWS Lambda function</Description>
<Tags>serverless,serverless framework,aws,lambda,cloudformation</Tags>
<Categories>Other</Categories>
<GalleryFlags>Public</GalleryFlags>
<Badges></Badges>
<Properties>
<Property Id="Microsoft.VisualStudio.Code.Engine" Value="^1.33.0" />
<Property Id="Microsoft.VisualStudio.Code.ExtensionDependencies" Value="" />
<Property Id="Microsoft.VisualStudio.Code.ExtensionPack" Value="" />
<Property Id="Microsoft.VisualStudio.Code.ExtensionKind" Value="workspace" />
<Property Id="Microsoft.VisualStudio.Code.LocalizedLanguages" Value="" />


<Property Id="Microsoft.VisualStudio.Services.Links.Learn" Value="https://www.stackery.io" />


<Property Id="Microsoft.VisualStudio.Services.GitHubFlavoredMarkdown" Value="true" />



</Properties>
<License>extension/LICENSE.txt</License>
<Icon>extension/media/icon.png</Icon>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Code"/>
</Installation>
<Dependencies/>
<Assets>
<Asset Type="Microsoft.VisualStudio.Code.Manifest" Path="extension/package.json" Addressable="true" />
<Asset Type="Microsoft.VisualStudio.Services.Content.Details" Path="extension/README.md" Addressable="true" /><Asset Type="Microsoft.VisualStudio.Services.Content.Changelog" Path="extension/CHANGELOG.md" Addressable="true" /><Asset Type="Microsoft.VisualStudio.Services.Content.License" Path="extension/LICENSE.txt" Addressable="true" /><Asset Type="Microsoft.VisualStudio.Services.Icons.Default" Path="extension/media/icon.png" Addressable="true" />
</Assets>
</PackageManifest>
31 changes: 31 additions & 0 deletions extension/extension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Change Log

## 1.1.3
- Update vscode dependencies

## 1.1.1
- Fix rendering when using VS Code 1.56 (April 2021)

## 1.1.0
- Enable sign-up flow

## 1.0.9
- Fix editing files on Windows

## 1.0.8
- Scaffold new functions relative to template location instead of root of workspace

## 1.0.7
- Keep canvas contents when switching tabs

## 1.0.2
- Open current text file if running edit command from command palette
- Only show edit command in command palette if current text file is a template
- Show error message if attempting to edit a template outside the current VS Code workspace

## 1.0.1
- Readme improvements

## 1.0.0

- Initial release
36 changes: 36 additions & 0 deletions extension/extension/DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
### Development

#### Testing against a different environment

Suppose you want the Stackery CLI to interact with a different environment than prod. The extension supports this via a few undocumented settings:

1. Open the VSCode settings editor (either for the global settings or for the workspace you are testing with).
1. The slick visual editor is shown at first, but we can't use it to set undocumented settings. Instead, click on the icon at the top right corner of the settings editor pane that looks like `{}`. This will open the pure JSON settings editor.
1. Add the following settings:
* `"stackery._env": <env>` (May be `dev`, to hit localhost, or any other environment)
* `"stackery._userPoolId": <user pool ID>` (Only needed if you need to test Stackery login through the extension)
* `"stackery._userPoolClientId": <user pool client ID>` (Only needed if you need to test Stackery login through the extension)

#### Sharing pre-release extension packages

First, when sharing pre-release extensions, try to remember to bump the version number (even if it's just the minor version), but append a beta version (e.g. `-beta.0`). This will help differentiate installed extensions between released and pre-released versions.

The extension can be packaged by doing the following:

1. Install the `vsce` tool: `$ npm install -g vsce`.
1. Package the extension: `$ vsce package`. This will create a file named `stackery-<version>.vsix` in the top-level directory.
1. Share the package.
1. Install the package using: `code --install-extension <package>`.

### Release

Acquire a personal access token and login using vsce if needed: https://code.visualstudio.com/api/working-with-extensions/publishing-extension. If you need access to the "stackery" project in Azure DevOps reach out to Chase to be added to the account.

1. Clone / check out a clean copy of the `master` branch
1. Determine next version, depending on whether this is a patch, minor, or major version increase
1. Update CHANGELOG.md (follow [Keep a Changelog](http://keepachangelog.com/) recommendations on how to structure this entries.)
1. Run `vsce publish [major|minor|patch]`.

**WARNING:** If this fails, make sure to revert any changes it made in package.json or elsewhere before re-running the command. Otherwise, it will double-increment the version before publishing.

1. Push the new commit and release tag to the repo: `git push origin HEAD --tags`
Loading

0 comments on commit 01a903e

Please sign in to comment.