-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to typescript-language-server
- Loading branch information
1 parent
1f57ce0
commit 9b238a3
Showing
7 changed files
with
151 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
python_packages/jupyter_lsp/jupyter_lsp/specs/typescript_language_server.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
from .utils import NodeModuleSpec | ||
|
||
|
||
class TypescriptLanguageServer(NodeModuleSpec): | ||
node_module = key = "typescript-language-server" | ||
script = ["lib", "cli.js"] | ||
args = ["--stdio"] | ||
languages = [ | ||
"javascript", | ||
"jsx", | ||
"typescript", | ||
"typescript-jsx", | ||
"typescriptreact", | ||
"javascriptreact", | ||
] | ||
spec = dict( | ||
display_name=key, | ||
mime_types=[ | ||
"application/typescript", | ||
"text/typescript-jsx", | ||
"text/javascript", | ||
"text/ecmascript", | ||
"application/javascript", | ||
"application/x-javascript", | ||
"application/ecmascript", | ||
"text/jsx", | ||
], | ||
urls=dict( | ||
home="https://github.com/typescript-language-server/{}".format(key), | ||
issues="https://github.com/typescript-language-server/{}/issues".format( | ||
key | ||
), | ||
), | ||
install=dict( | ||
npm="npm install --save-dev {}".format(key), | ||
yarn="yarn add --dev {}".format(key), | ||
jlpm="jlpm add --dev {}".format(key), | ||
), | ||
) |
Oops, something went wrong.