-
Notifications
You must be signed in to change notification settings - Fork 139
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
Auto Import Suggestions Do Not Work Unless Original Files are Open in Another Tab #761
Comments
Appears that denoland/deno#11190 is required to do this. |
dsherret
added a commit
to denoland/deno
that referenced
this issue
Mar 30, 2023
Closes denoland/vscode_deno#797 Closes #11190 Closes denoland/vscode_deno#811 Closes denoland/vscode_deno#761 Closes denoland/vscode_deno#585 Closes denoland/vscode_deno#561 Closes denoland/vscode_deno#410
mmastrac
pushed a commit
to denoland/deno
that referenced
this issue
Mar 31, 2023
Closes denoland/vscode_deno#797 Closes #11190 Closes denoland/vscode_deno#811 Closes denoland/vscode_deno#761 Closes denoland/vscode_deno#585 Closes denoland/vscode_deno#561 Closes denoland/vscode_deno#410
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When using VSCode and using a variable that is exported from another file in the workspace, the Deno extension is not offering suggestions for auto completion of importing it unless I specifically have the file that contained the original export in it open in the VSCode window.
This occurs with specific error
Cannot find name _. deno-ts(2304)
To Reproduce
foo.ts
.foo.ts
, writeexport const someSpecificFooFunction = () => 'Test!'
baz.ts
and open it in VSCode.foo.ts
(close if it's still on your tab list).someSpecificFooFunction()
inbaz.ts
.Cannot find name 'someSpecificFooFunction'.deno-ts(2304)
foo.ts
in another tab on VSCode.baz.ts
and open the VSCode quick fix again.someSpecificFooFunction
fromfoo.ts
.Expected behavior
When the specific error
Cannot find name ''.deno-ts(2304)
occurs, a quick fix solution that is able to discover the export existing in another local file should always be available without needing to have the original file open in a tab in the code editor.Screenshots
2022-12-11.14-52-49.mp4
copy of my
settings.json
Versions
vscode: 1.74.0 (using OSS version) deno: 1.28.3 extension: v3.14.1
The text was updated successfully, but these errors were encountered: