Skip to content

Conversation

@carloscalla
Copy link

Improve manager logic by adding a validation in case the parser installation fails. Only adding the language to the list of installed parsers and attach to the buffer in case the installation was successful, otherwise skip that logic.

ts.install(language):await(function()
M.installed:add(language)
M.attach(buf, language)
ts.install(language):await(function(err)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In what situations does installation fail? Is it for languages that don't have a parser or does it just sometimes happen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants