Handle scoped modules via palette editor

This commit is contained in:
Nick O'Leary
2018-01-24 15:07:43 +00:00
parent 3cb5cbd8d5
commit a62a1012fa
3 changed files with 20 additions and 6 deletions

View File

@@ -29,8 +29,7 @@ var npmCommand = process.platform === 'win32' ? 'npm.cmd' : 'npm';
var paletteEditorEnabled = false;
var settings;
var moduleRe = /^[^/]+$/;
var moduleRe = /^(@[^/]+?[/])?[^/]+?$/;
var slashRe = process.platform === "win32" ? /\\|[/]/ : /[/]/;
function init(_settings) {