Skip to content

Commit

Permalink
refactor: delete server code and refactor migration extension (#94)
Browse files Browse the repository at this point in the history
* refactor: delete server code and initialize extension

* feat: add core feature of migration

style : add Copyright

feat:check for existence powershell and migration module

feat: add settings.ts and utils.ts

feat: use node-powershell to maintain one powershell process

fix : try/catch error

fix: module error(node-powershell)

feat: add  the command of version 0.1.0

fix: convert activationEvents to onLanguage

fix : error when node-powershell can't find the module command

feat: run the extension only when the file language is powershell

refact: the diagnostic part

docs: update the version

fix: check module existence error

feat: get the environment variable(PsModulePath) through process.env.xxx

fix: revert the 'through process instead of node-powershell when node-powershell fails' because of the last commit has made this impossible

feat: add information of diagnostic number

feat: dong't update diagnostics when the analyzation result is empty

fix: click multiple files quickly.

feat: transfer the showInformationMessage to log

feat: add Linux or MacOS getSystemModulePath

docs: add some annotation

style: update the license and version

fix

style: release final

* fix:eslint error and some unused file

* style: tab to space

* docs: update CHANGELOG.md

* docs: Update vscode-extension/README.md

Co-authored-by: Yeming Liu <11371776+isra-fel@users.noreply.github.com>

* style: Add documents for important functions

* style: group some logic to small function

* code format

* feat: add plan type

* feat: rename classes.ts

* docs: readme capture

* fix: migration.ts

* fix :eslint and type of node-powershell

* fix: eslint

Co-authored-by: Zeng Li <t-zengli@microsoft.com>
Co-authored-by: Yeming Liu <11371776+isra-fel@users.noreply.github.com>
  • Loading branch information
3 people authored Aug 31, 2021
1 parent 7ddc0e0 commit 6e26572
Show file tree
Hide file tree
Showing 18 changed files with 3,476 additions and 2,543 deletions.
9 changes: 6 additions & 3 deletions vscode-extension/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/class-name-casing": "warn",
"@typescript-eslint/semi": "warn",
"curly": "warn",
"no-throw-literal": "warn",
"semi": "off"
}
}
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
]
}
7 changes: 7 additions & 0 deletions vscode-extension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Azure PowerShell Extension Release History

## 0.2.0

Code refactoring and user experience optimization:
- Adjusted product architecture - let extension communicate to Az.Tools.Migration directly
- Displayed the diagnostic with migration information automatically when open a Powershell file
- Made extension more lightweight and use fewer resources

## 0.1.0

First preview release with the following features:
Expand Down
6 changes: 1 addition & 5 deletions vscode-extension/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ get notified automatically about any future extension updates!

## Usage

- Open Command Palette(<kbd>Ctrl+Shift+P</kbd>) to start migration.
![command-palette](resources/readme/command-palette.png)

- Select source version.
![select-version](resources/readme/select-version.png)
PowerShell scripts are analyzed automatically whenever they are opened or saved. AzureRM cmdlets will be identified and marked with suggestions of how to migrate.

- Quick Fix
![quick-fix](resources/readme/quick-fix.png)
Expand Down
Loading

0 comments on commit 6e26572

Please sign in to comment.