Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Support reading completions.json when loading the package from snapshot - #53

Merged
as-cii merged 1 commit into
masterfrom
as-support-snapshot
Mar 16, 2017
Merged

as-cii merged 1 commit into
masterfrom
as-support-snapshot

Conversation

@as-cii

@as-cii as-cii commented Mar 16, 2017

Copy link
Copy Markdown
Contributor

Refs: atom/atom#13916 (comment)

Using __dirname inside the snapshot will return a relative path, which will cause this package to fail to load completions from {packageRoot}/completions.json. With this pull request we use the require system to load such file so that it can be snapshotted; doing so will fix the aforementioned error and will improve performance as well because we will save a file system call.

@as-cii
as-cii merged commit e8020f1 into master Mar 16, 2017
@as-cii
as-cii deleted the as-support-snapshot branch March 16, 2017 09:13
@as-cii as-cii mentioned this pull request Mar 16, 2017
13 tasks done
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant