Skip to content

Commit 6e26572

Browse files
Alex-SolZeng Liisra-fel
authored
refactor: delete server code and refactor migration extension (#94)
* 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>
1 parent 7ddc0e0 commit 6e26572

18 files changed

+3476
-2543
lines changed

vscode-extension/.eslintrc.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@
99
"@typescript-eslint"
1010
],
1111
"rules": {
12-
"@typescript-eslint/class-name-casing": "warn",
1312
"@typescript-eslint/semi": "warn",
1413
"curly": "warn",
1514
"no-throw-literal": "warn",
1615
"semi": "off"
17-
}
18-
}
16+
},
17+
"extends": [
18+
"eslint:recommended",
19+
"plugin:@typescript-eslint/recommended"
20+
]
21+
}

vscode-extension/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Azure PowerShell Extension Release History
22

3+
## 0.2.0
4+
5+
Code refactoring and user experience optimization:
6+
- Adjusted product architecture - let extension communicate to Az.Tools.Migration directly
7+
- Displayed the diagnostic with migration information automatically when open a Powershell file
8+
- Made extension more lightweight and use fewer resources
9+
310
## 0.1.0
411

512
First preview release with the following features:

vscode-extension/README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@ get notified automatically about any future extension updates!
2121

2222
## Usage
2323

24-
- Open Command Palette(<kbd>Ctrl+Shift+P</kbd>) to start migration.
25-
![command-palette](resources/readme/command-palette.png)
26-
27-
- Select source version.
28-
![select-version](resources/readme/select-version.png)
24+
PowerShell scripts are analyzed automatically whenever they are opened or saved. AzureRM cmdlets will be identified and marked with suggestions of how to migrate.
2925

3026
- Quick Fix
3127
![quick-fix](resources/readme/quick-fix.png)

0 commit comments

Comments
 (0)