You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✅ This config will break syntax highlighting but you now should be able to manually trigger intellisense inside of foo tagged templates:
constz=foo`<img>`
Now install a workspace version of typescript and run Select TypeScript version in the workspace to switch to it
✅ The html intellisense should no longer be enabled.
Now install the plugin manually into your workspace npm install typescript-lit-html-plugin and restart the tsserver
✅ IntelliSense should be back
Other things to check
IntelliSense should still be enable for loose files js/ts in your workspace even if when you have a jsconfig / tsconfig. To test, just create a normal tsconfig and try using html template intellisense in an js in the same workspace
#41113
Complexity: 3
OS:
Summary
Extensions can now contribute TS Server plugins that augment our JS and TS tooling
Testing
Install the lit-html extension: https://marketplace.visualstudio.com/items?itemName=bierner.lit-html
In a new workspace, create some js and ts files
✅ You get html intellisense for strings such as:
✅ Format works for the html content
Now create a
jsconfig
ortsconfig
and restart vs codeIn your
jsconfig
/tsconifg
, try to configure the lit html plugin and restart the ts server:✅ This config will break syntax highlighting but you now should be able to manually trigger intellisense inside of
foo
tagged templates:Now install a workspace version of typescript and run
Select TypeScript version
in the workspace to switch to itNow install the plugin manually into your workspace
npm install typescript-lit-html-plugin
and restart the tsserverOther things to check
IntelliSense should still be enable for loose files js/ts in your workspace even if when you have a
jsconfig
/tsconfig
. To test, just create a normaltsconfig
and try using html template intellisense in anjs
in the same workspaceCheck out the documentation for contributing tsserver plugins: https://github.com/Microsoft/vscode-docs/blob/vnext/docs/extensionAPI/extension-points.md#contributestypescriptserverplugins . Does it make senses if you wanted to write an extension like this?
The text was updated successfully, but these errors were encountered: