-
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.
Merge pull request #697 from jupyter-lsp/update-typescript-server
Migrate to typescript-language-server
- Loading branch information
Showing
16 changed files
with
165 additions
and
205 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,3 @@ export class HelloWorld extends React.Component<any, any> { | |
} | ||
|
||
const hello = <HelloWorld/>; | ||
|
||
;hello; |
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
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), | ||
), | ||
) |
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
Oops, something went wrong.