8000 Autocomplete failing in html script tags · Issue #76 · atom/ide-typescript · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Autocomplete failing in html script tags #76

Closed
bennypowers opened this issue Jan 2, 2018 · 4 comments
Closed

Autocomplete failing in html script tags #76

bennypowers opened this issue Jan 2, 2018 · 4 comments

Comments

@bennypowers
Copy link
bennypowers commented Jan 2, 2018

Hello 👋
Lately I started noticing that autocomplete stopped working inside <script> tags in HTML on one of my machines.

I checked the dev tools log and found thousands of these errors:

Uncaught (in promise) TypeError: Cannot set property 'currentSuggestions' of null
    at TypeScriptLanguageClient.getSuggestions (/Users/bennyp/dotfiles/atom/packages/ide-typescript/lib/main.js:58:40)

Sepcifically, the nullable here is the language server, from

const server = await this._serverManager.getServer(request.editor)

Y'all ready for this? if there's a .js file open in another tab, autocomplete works a treat. As soon as I close the file, it stops working.

@bennypowers
Copy link
Author

When getServer runs in the case where i don't have a JS file open, this._activeServers.find(s => finalProjectPath === s.projectPath); returns undefined, which leads me to believe that the js language server does not run when there are no .js files open

@bennypowers
Copy link
Author

see also #11

@rwatts3
Copy link
Contributor
rwatts3 commented Jan 29, 2018

Just curious if there is any progress on intellisense in html files ? or other embedded files where js could exist.

@damieng
Copy link
Contributor
damieng commented Nov 29, 2018

Duplicate really of #11 - the LSP spec doesn't talk about embedded languages so we'll need to track the standard.

@damieng damieng closed this as completed Nov 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0