mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 22:41:31 +01:00
Remove inefficient code to set a custom tooltip
This commit is contained in:
@@ -108,13 +108,6 @@ class NpmScript extends TreeItem {
|
||||
dark: context.asAbsolutePath(path.join('resources', 'dark', 'script.svg'))
|
||||
};
|
||||
}
|
||||
|
||||
let uri = getPackageJsonUriFromTask(task);
|
||||
getScripts(uri!).then(scripts => {
|
||||
if (scripts && scripts[task.definition['script']]) {
|
||||
this.tooltip = scripts[task.definition['script']];
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
getFolder(): WorkspaceFolder {
|
||||
|
||||
Reference in New Issue
Block a user