Skip to content

Commit

Permalink
Update extension name (microsoft#2638)
Browse files Browse the repository at this point in the history
  • Loading branch information
BernieWhite authored Nov 28, 2024
1 parent 18fc681 commit dbc404d
Show file tree
Hide file tree
Showing 31 changed files with 301 additions and 301 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: Extension
path: out/package/code-*.vsix
path: out/package/vscode-ps-rule-*.vsix
retention-days: 3
if-no-files-found: error

Expand Down
2 changes: 1 addition & 1 deletion docs/CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ See [upgrade notes][1] for helpful information when upgrading from previous vers
What's changed since pre-release v3.0.0-B0315:

- New features:
- VSCode extension set to use Microsoft verified name by @BernieWhite.
- VSCode extension set to use Microsoft verified publisher name by @BernieWhite.
[#2636](https://github.com/microsoft/PSRule/issues/2636)
- General improvements:
- Expose format options to emitters by @BernieWhite.
Expand Down
2 changes: 1 addition & 1 deletion docs/updates/v3_0.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version: 3.0

The Visual Studio Code (VSCode) extension for PSRule now lives side-by-side with core components of [PSRule on GitHub][1].

As part of this change we are now publishing the extension as a **verified** Microsoft extension with the ID `ps-rule.code`.
As part of this change we are now publishing the extension as a **verified** Microsoft extension with the ID `ps-rule.vscode-ps-rule`.

We hope this will not only help the community to log issues and get help on the correct repository,
but also streamline how we deliver updates in the future.
Expand Down
2 changes: 1 addition & 1 deletion esbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ console.warn("build extension");

async function main() {
const ctx = await esbuild.context({
entryPoints: ['src/code/main.ts'],
entryPoints: ['src/vscode-ps-rule/main.ts'],
bundle: true,
format: 'cjs',
minify: production,
Expand Down
6 changes: 3 additions & 3 deletions media/walkthroughs/getStarted/01_configureOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- First, type `requires` and press Tab or Enter to complete the suggestion.
- Continue typing to replace `Module` with `PSRule` and press Tab or Enter to move to the version constraint.
- Replace `'>=1.0.0'` with the minimum version of PSRule you want to use, such as `'>=2.8.1'`.
- Replace `'>=1.0.0'` with the minimum version of PSRule you want to use, such as `'>=2.9.0'`.

## Configure additional modules

Expand All @@ -13,8 +13,8 @@ For example:

```yaml
requires:
PSRule: '>=2.8.1'
PSRule.Rules.Azure: '>=1.26.1'
PSRule: '>=2.9.0'
PSRule.Rules.Azure: '>=1.39.3'
```
### Configure other options
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "code",
"name": "vscode-ps-rule",
"displayName": "PSRule",
"version": "0.0.1",
"publisher": "ps-rule",
Expand Down Expand Up @@ -488,7 +488,7 @@
"zzz_lint": "eslint . --ext .ts,.tsx",
"zzz_pretest": "npm run compile",
"zzz_vscode:prepublish": "npm run -S esbuild-base -- --minify && dotnet publish ./src/PSRule.EditorServices/ --output server/",
"zzz_esbuild-base": "esbuild ./src/code/main.ts --bundle --outfile=out/dist/main.js --external:vscode --format=cjs --platform=node",
"zzz_esbuild-base": "esbuild ./src/vscode-ps-rule/main.ts --bundle --outfile=out/dist/main.js --external:vscode --format=cjs --platform=node",
"zzz_esbuild": "npm run -S esbuild-base -- --sourcemap",
"zzz_esbuild-watch": "npm run -S esbuild-base -- --sourcemap --watch",
"zzz_build": "tsc -p ./ && dotnet build && node build.mjs",
Expand All @@ -500,7 +500,7 @@
"build:esbuild": "node esbuild.mjs",
"package": "npm run package:dotnet && npm run package:esbuild && npm run package:pack",
"package:dotnet": "dotnet build ./src/PSRule.EditorServices/ --output server/",
"package:pack": "vsce package --dependencies --pre-release --no-git-tag-version --no-update-package-json --githubBranch main --out out/package/ --readme-path src/code/README.md --changelog-path docs/CHANGELOG-v3.md --baseImagesUrl https://raw.githubusercontent.com/microsoft/PSRule/refs/heads/main/",
"package:pack": "vsce package --dependencies --pre-release --no-git-tag-version --no-update-package-json --githubBranch main --out out/package/ --readme-path src/vscode-ps-rule/README.md --changelog-path docs/CHANGELOG-v3.md --baseImagesUrl https://raw.githubusercontent.com/microsoft/PSRule/refs/heads/main/",
"package:esbuild": "node esbuild.mjs",
"test": "npm run build:dotnet && npm run build:esbuild && vscode-test"
},
Expand Down
289 changes: 0 additions & 289 deletions src/code/extension.ts

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit dbc404d

Please sign in to comment.