Skip to content
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

Does not handle imports from index.ts files #5

Open
rdelpeso opened this issue Apr 26, 2020 · 0 comments
Open

Does not handle imports from index.ts files #5

rdelpeso opened this issue Apr 26, 2020 · 0 comments

Comments

@rdelpeso
Copy link

rdelpeso commented Apr 26, 2020

The extension does not seem able to handle index.ts files to group exports.

// /home/test/project/lib/Main.ts
export class Main() {
  public do() { }
}

// /home/test/project/lib/index.ts
export * from './Main'
// /home/test/project/main.ts
// Using the index.ts the autocomplete fails:
import { Main } from './lib'

class A extends Main {
  override.NOTHING_SHOWS_HERE
}

// If we change the file to this instead, things do work:
import { Main } from './lib/Main'

class A extends Main {
  override.DO_SHOWS_UP_AS_EXPECTED
}

Here is the error that VSCode throws:

[2020-04-26 10:49:07.566] [renderer3] [error] Could not find source file for module './lib': Error: Could not find source file for module './lib'
	at FileFinder.find (/home/test/.vscode-server-insiders/extensions/dotup.dotup-vscode-override-typescript-1.0.4/out/FileFinder.js:22:19)
	at MethodExtractor.<anonymous> (/home/test/.vscode-server-insiders/extensions/dotup.dotup-vscode-override-typescript-1.0.4/out/MethodExtractor.js:36:44)
	at Generator.next (<anonymous>)
	at /home/test/.vscode-server-insiders/extensions/dotup.dotup-vscode-override-typescript-1.0.4/out/MethodExtractor.js:7:71
	at new Promise (<anonymous>)
	at __awaiter (/home/test/.vscode-server-insiders/extensions/dotup.dotup-vscode-override-typescript-1.0.4/out/MethodExtractor.js:3:12)
	at MethodExtractor.getMethodSignatures (/home/test/.vscode-server-insiders/extensions/dotup.dotup-vscode-override-typescript-1.0.4/out/MethodExtractor.js:22:16)
	at Object.<anonymous> (/home/test/.vscode-server-insiders/extensions/dotup.dotup-vscode-override-typescript-1.0.4/out/extension.js:39:55)
	at Generator.next (<anonymous>)
	at /home/test/.vscode-server-insiders/extensions/dotup.dotup-vscode-override-typescript-1.0.4/out/extension.js:10:71
	at new Promise (<anonymous>)
	at __awaiter (/home/test/.vscode-server-insiders/extensions/dotup.dotup-vscode-override-typescript-1.0.4/out/extension.js:6:12)
	at Object.provideCompletionItems (/home/test/.vscode-server-insiders/extensions/dotup.dotup-vscode-override-typescript-1.0.4/out/extension.js:32:20)
	at /home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:691:874
	at /home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:51:988
	at new Promise (<anonymous>)
	at Object.t.asPromise (/home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:51:960)
	at U.provideCompletionItems (/home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:691:845)
	at /home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:711:216
	at e._withAdapter (/home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:702:159)
	at e.$provideCompletionItems (/home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:711:194)
	at e._doInvokeHandler (/home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:804:363)
	at e._invokeHandler (/home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:804:55)
	at e._receiveRequest (/home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:802:688)
	at e._receiveOneMessage (/home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:801:518)
	at /home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:799:754
	at e.fire (/home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:46:67)
	at v.fire (/home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:229:274)
	at /home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:971:744
	at e.fire (/home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:46:67)
	at v.fire (/home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:229:274)
	at t.PersistentProtocol._receiveMessage (/home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:233:629)
	at /home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:230:824
	at e.fire (/home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:46:67)
	at p.acceptChunk (/home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:226:737)
	at /home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:226:89
	at Socket.t (/home/test/.vscode-server-insiders/bin/a250df703de955a38aed427a917bce8278ab3331/out/vs/server/remoteExtensionHostProcess.js:235:185)
	at Socket.emit (events.js:200:13)
	at addChunk (_stream_readable.js:294:12)
	at readableAddChunk (_stream_readable.js:275:11)
	at Socket.Readable.push (_stream_readable.js:210:10)
	at TCP.onStreamRead (internal/stream_base_commons.js:166:17)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant