File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5656 {
5757 "id" : " npm" ,
5858 "name" : " %view.name%" ,
59- "when" : " npm:showScriptExplorer" ,
6059 "icon" : " images/code.svg" ,
6160 "visibility" : " hidden"
6261 }
232231 "type" : " boolean" ,
233232 "default" : false ,
234233 "scope" : " resource" ,
234+ "deprecationMessage" : " The NPM Script Explorer is now available in 'Views' menu in the Explorer in all folders." ,
235235 "description" : " %config.npm.enableScriptExplorer%"
236236 },
237237 "npm.enableRunFromFolder" : {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import * as vscode from 'vscode';
88import { addJSONProviders } from './features/jsonContributions' ;
99import { runSelectedScript , selectAndRunScriptFromFolder } from './commands' ;
1010import { NpmScriptsTreeDataProvider } from './npmView' ;
11- import { invalidateTasksCache , NpmTaskProvider , hasPackageJson } from './tasks' ;
11+ import { invalidateTasksCache , NpmTaskProvider } from './tasks' ;
1212import { invalidateHoverScriptsCache , NpmScriptHoverProvider } from './scriptHover' ;
1313
1414let treeDataProvider : NpmScriptsTreeDataProvider | undefined ;
@@ -44,11 +44,6 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
4444 registerHoverProvider ( context ) ;
4545
4646 context . subscriptions . push ( vscode . commands . registerCommand ( 'npm.runSelectedScript' , runSelectedScript ) ) ;
47-
48- if ( await hasPackageJson ( ) ) {
49- vscode . commands . executeCommand ( 'setContext' , 'npm:showScriptExplorer' , true ) ;
50- }
51-
5247 context . subscriptions . push ( vscode . commands . registerCommand ( 'npm.runScriptFromFolder' , selectAndRunScriptFromFolder ) ) ;
5348}
5449
You can’t perform that action at this time.
0 commit comments