Skip to content

Commit 10a19f6

Browse files
committed
Respond to feedback
1 parent 32f8f52 commit 10a19f6

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

extensions/npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@
236236
"type": "boolean",
237237
"default": false,
238238
"scope": "resource",
239-
"deprecationMessage": "The NPM Script Explorer is now available in 'Views' menu in the Explorer in all folders.",
239+
"deprecationMessage": "The NPM Script Explorer is now available in the 'Views' menu in the Explorer in all folders.",
240240
"description": "%config.npm.enableScriptExplorer%"
241241
},
242242
"npm.enableRunFromFolder": {

extensions/npm/src/tasks.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -311,22 +311,6 @@ export function getPackageJsonUriFromTask(task: Task): Uri | null {
311311
return null;
312312
}
313313

314-
export async function hasPackageJson(): Promise<boolean> {
315-
let folders = workspace.workspaceFolders;
316-
if (!folders) {
317-
return false;
318-
}
319-
for (const folder of folders) {
320-
if (folder.uri.scheme === 'file') {
321-
let packageJson = path.join(folder.uri.fsPath, 'package.json');
322-
if (await exists(packageJson)) {
323-
return true;
324-
}
325-
}
326-
}
327-
return false;
328-
}
329-
330314
async function exists(file: string): Promise<boolean> {
331315
return new Promise<boolean>((resolve, _reject) => {
332316
fs.exists(file, (value) => {

0 commit comments

Comments
 (0)