Skip to content

Commit

Permalink
➖ Remove Typescript support
Browse files Browse the repository at this point in the history
As other packages support better
  • Loading branch information
JonathanYee committed Apr 6, 2018
1 parent 34fcf6b commit 9575a5f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
6 changes: 2 additions & 4 deletions README.md
Expand Up @@ -27,10 +27,8 @@ This package only activates if one of the following grammars/languages are being
* [language-javascript](https://atom.io/packages/language-javascript)
* [language-babel](https://atom.io/packages/language-babel)
* [language-coffee-script](https://atom.io/packages/language-coffee-script)
* [language-ts](https://atom.io/packages/language-ts)
* [language-typescript-grammars-only](https://atom.io/packages/language-typescript-grammars-only)
* [language-typescript](https://atom.io/packages/language-typescript)
* [atom-typescript](https://atom.io/packages/atom-typescript)

If you're using TypeScript, we suggest to use [atom-typescript](https://atom.io/packages/atom-typescript) or [ide-typescript](https://atom.io/packages/ide-typescript) packages, which are way better as it uses the TS-server.

If this package doesn't seem to be working, check that you are using one of these.
If you want another grammar/language to be supported, please submit an issue.
Expand Down
6 changes: 1 addition & 5 deletions package.json
Expand Up @@ -43,10 +43,6 @@
"activationHooks": [
"language-javascript:grammar-used",
"language-babel:grammar-used",
"language-coffee-script:grammar-used",
"language-typescript:grammar-used",
"language-ts:grammar-used",
"language-typescript-grammars-only:grammar-used",
"atom-typescript:grammar-used"
"language-coffee-script:grammar-used"
]
}
8 changes: 1 addition & 7 deletions src/completion-provider.js
Expand Up @@ -14,17 +14,11 @@ const LINE_REGEXP = /(?:^|\s)require\(['"]|^import\s.+from\s+["']|^import\s+["']

const SELECTOR = [
'.source.js',
'.source.ts',
'.source.tsx',
'.source.coffee'
];
const SELECTOR_DISABLE = [
'.source.js .comment',
'.source.js .keyword',
'.source.ts .comment',
'.source.ts .keyword',
'.source.tsx .comment',
'.source.tsx .keyword'
'.source.js .keyword'
];

class CompletionProvider {
Expand Down

0 comments on commit 9575a5f

Please sign in to comment.