fix: fix security issue
This commit is contained in:
Родитель
30377bc59d
Коммит
e4a4f50262
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -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;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче