Skip to content

Commit

Permalink
- fix for LanguageServiceHost ignoring virtual modules #78
Browse files Browse the repository at this point in the history
  • Loading branch information
ezolenko committed Jun 22, 2018
1 parent aab0cc7 commit ffe3b6c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/rollup-plugin-typescript2.cjs.js
Expand Up @@ -17292,7 +17292,7 @@ var LanguageServiceHost = /** @class */ (function () {
return (this.versions[fileName] || 0).toString();
};
LanguageServiceHost.prototype.getScriptFileNames = function () {
return this.parsedConfig.fileNames;
return Object.keys(this.snapshots);
};
LanguageServiceHost.prototype.getCompilationSettings = function () {
return this.parsedConfig.options;
Expand Down
2 changes: 1 addition & 1 deletion dist/rollup-plugin-typescript2.cjs.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/rollup-plugin-typescript2.es.js
Expand Up @@ -17288,7 +17288,7 @@ var LanguageServiceHost = /** @class */ (function () {
return (this.versions[fileName] || 0).toString();
};
LanguageServiceHost.prototype.getScriptFileNames = function () {
return this.parsedConfig.fileNames;
return Object.keys(this.snapshots);
};
LanguageServiceHost.prototype.getCompilationSettings = function () {
return this.parsedConfig.options;
Expand Down
2 changes: 1 addition & 1 deletion dist/rollup-plugin-typescript2.es.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/host.ts
Expand Up @@ -68,7 +68,7 @@ export class LanguageServiceHost implements tsTypes.LanguageServiceHost

public getScriptFileNames()
{
return this.parsedConfig.fileNames;
return Object.keys(this.snapshots);
}

public getCompilationSettings(): tsTypes.CompilerOptions
Expand Down

0 comments on commit ffe3b6c

Please sign in to comment.