glowingblue / composer-package-name

Command to get the package name of the currently open project by parsing composer.json

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GB Composer package name

Features

Adds a command to get the package name of the currently open project by parsing composer.json.

"commands": [
	{
		"command": "glowingblue-composer-package-name.getName",
		"title": "GB Composer: Get Package Name"
	}
]

This commands just returns a string.

This can be used in configuration files to access the package name as a substitution variable (${command:glowingblue-composer-package-name.getName}).

Example:

Path mapping for debugging JavaScript:

"pathMappings": [
	{
		"url": "webpack://${command:glowingblue-composer-package-name.getName}/src/",
		"path": "${workspaceFolder}/js/src/"
	}
]

About

Command to get the package name of the currently open project by parsing composer.json

License:MIT License


Languages

Language:JavaScript 100.0%