This commit is contained in:
Eric Chen 2020-08-20 09:56:03 +08:00
Родитель 30377bc59d
Коммит e4a4f50262
3 изменённых файлов: 2312 добавлений и 4826 удалений

7130
package-lock.json сгенерированный

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -75,7 +75,6 @@
"@types/vscode": "^1.36.0", "@types/vscode": "^1.36.0",
"@typescript-eslint/eslint-plugin": "^2.28.0", "@typescript-eslint/eslint-plugin": "^2.28.0",
"@typescript-eslint/parser": "^2.28.0", "@typescript-eslint/parser": "^2.28.0",
"cz-conventional-changelog": "^3.1.0",
"eslint": "^6.8.0", "eslint": "^6.8.0",
"eslint-config-prettier": "^6.11.0", "eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.3", "eslint-plugin-prettier": "^3.1.3",
@ -94,10 +93,5 @@
"fs-extra": "^7.0.1", "fs-extra": "^7.0.1",
"vscode-extension-telemetry": "^0.1.6", "vscode-extension-telemetry": "^0.1.6",
"vscode-languageclient": "^6.1.3" "vscode-languageclient": "^6.1.3"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
} }
} }

Просмотреть файл

@ -57,7 +57,7 @@ export class UI {
* @param label label * @param label label
*/ */
public static async selectRootFolder(label: string): Promise<string> { public static async selectRootFolder(label: string): Promise<string> {
const workspaceFolders: vscode.WorkspaceFolder[] | undefined = vscode.workspace.workspaceFolders; const workspaceFolders: ReadonlyArray<vscode.WorkspaceFolder> | undefined = vscode.workspace.workspaceFolders;
// use the only folder as default // use the only folder as default
if (workspaceFolders && workspaceFolders.length === 1) { if (workspaceFolders && workspaceFolders.length === 1) {
return workspaceFolders[0].uri.fsPath; return workspaceFolders[0].uri.fsPath;