Skip to content

Commit

Permalink
fix: remove unused demo code
Browse files Browse the repository at this point in the history
  • Loading branch information
plantain-00 committed Sep 12, 2020
1 parent e60245a commit 7efbae2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ function init(modules: { typescript: typeof tsserverlibrary }) {
const lintOptions = info.config as LintOptions
const proxy: tsserverlibrary.LanguageService = {
...info.languageService,
getCompletionsAtPosition: (fileName, position, options) => {
const prior = info.languageService.getCompletionsAtPosition(fileName, position, options);
if (!prior) {
return prior
}
prior.entries = prior.entries.filter(e => ['caller'].indexOf(e.name) < 0);
return prior;
},
getSemanticDiagnostics(fileName) {
const prior = info.languageService.getSemanticDiagnostics(fileName)
const result = lintSync(
Expand Down

0 comments on commit 7efbae2

Please sign in to comment.