-
Notifications
You must be signed in to change notification settings - Fork 241
vscode ts plugins: fix auto-import #439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@leonidaz is attempting to deploy a commit to the Ripple Team Team on Vercel. A member of the Team first needs to authorize it. |
create-ripple
prettier-plugin-ripple
ripple
rollup-plugin-ripple
vite-plugin-ripple
commit: |
WebEferen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🙌 Nice one!
|
i'm still trying to figure it out... not final yet. |
|
could you give a code example for the menu to show up and also, where do they show up, under what circumstances. |
|
Not sure what you mean by menu, I was referring to highlighting errors. Just a basic component without importing export component App() {
let color = track('red');
<div>{@color}</div>
} |
very strange, it's working for me. when i remove the import, the |
|
Could you describe how you installed the extension after you made the changes? |
|
I'm just launching it in the debugger. here's my .vscode/launch.json {
"version": "0.2.0",
"configurations": [
{
"name": "Run Ripple Extension",
"type": "extensionHost",
"request": "launch",
"autoAttachChildProcesses": true,
"args": [
"--extensionDevelopmentPath=${workspaceFolder}/packages/ripple-vscode-plugin/",
"${workspaceFolder}/playground"
],
"outFiles": [
"${workspaceFolder}/packages/ripple-vscode-plugin/src/**/*.js"
],
"sourceMaps": false
},
{
"type": "node",
"request": "attach",
"name": "Attach to Language Server",
"port": 9229,
"restart": true,
"skipFiles": ["<node_internals>/**"]
}
],
"compounds": [
{
"name": "Extension + Language Server",
"configurations": ["Run Ripple Extension", "Attach to Language Server"]
}
]
} |
|
Sorry, you're right, it does seem to work in dev mode. Maybe there's an issue with how I was building the extension. There's still an issue with WebStorm not providing auto imports and other TypeScript features, but I'm now thinking it could be related to the plugin I use to be able to use language servers (LSP4IJ), so we might need to build a plugin for the IntelliJ platform after all. Either way, I tested this branch in VS Code and Sublime Text and it works in both, so I think it's good to go, and I'll try to figure out WebStorm stuff later. |
|
we're basically now bypassing this custom language plugin and going directly to Volar. I'm not sure why it was needed and what it's giving us that's different. we can revisit but i don't know how to connect it properly or if it's even functioning correctly. |
|
@johnsoncodehk does this look okay to you? You created Volar, so you might know best here :P |
|
Not tested yet, but after a quick review, I believe the current changes will cause the VSCode extension to break. You should use By the way, there is a PR in the volar.js repo attempting to fix this issue on the volar side: volarjs/volar.js#281 |
actually, this above is wrong, we are using it. The problem was that we were doing it twice. and I removed this from package.json then, the proxy was not forwarding correctly the calls to volar. and we were missing in volar data mapping, i didn't find providing our own. and then we had to enable import mappings as it looks like volar behavior is broken. |
| "activationEvents": [ | ||
| "onLanguage" | ||
| ], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is done automatically by vscode since 2022, we don't need it.
trueadm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's get this in


fixes #437