-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Spurious error: [ts] Duplicate function implementation #10804
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
Comments
I can not reproduce this locally on latest. closing for now. please reopen if still an issue. |
Still have that Problem with VSCODE 1.10.1 on MAC happens when i copy paste the contents of greeter.ts from: https://www.typescriptlang.org/docs/tutorial.html i selected the previous code and copy paste the next one into the same file. The error happens nearly every time and does not vanish with a git commit or push. only a restart of vscode fixes it. please open it again. |
Add a tsconfig.json to the root of your project. |
Got it working... As @mhegazy mentioned, just add tsconfig.json file to your project and done. You can generate the file using a simple command. Open terminal and type "tsc -init". |
I have added tsconfig.js to my project. Otherwise, the same problem still exists. why? |
Ok, I've been able to reproduce this and find a workaround for fixing it: To reproduce
TO FIX as mentioned before do |
thanks... this help |
Creating tsconfig.js with the command line helped me too. Thank you! Gotta remember to initiate tsc project. |
From @garthk on September 9, 2016 1:37
4fc690be310dd02e0ab6529c0b9bf348a8b26a19
Steps to Reproduce:
vscode-insiders .
src/big-file.ts
, which is too long and stuffed with unrelated concernsvscode-insiders -r src/extracted-function.ts
src/big-file.ts
src/extracted-function.ts
[ts] Duplicate function implementation.
src/extracted-function.ts
src/extracted-function.ts
Perhaps unrelated to #9880.
Copied from original issue: microsoft/vscode#11733
The text was updated successfully, but these errors were encountered: