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

Typescript workspace problems not being detected #39454

Closed
rbingham opened this issue Dec 2, 2017 · 1 comment
Closed

Typescript workspace problems not being detected #39454

rbingham opened this issue Dec 2, 2017 · 1 comment
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) typescript Typescript support issues

Comments

@rbingham
Copy link

rbingham commented Dec 2, 2017

VsCode will only report typescript problems when files with the problems are open even though there is a tsconfig.json file.

  • VSCode Version: 1.18.1
  • OS Version: Arch Linux 4.13.12-1 (Kernel version)

Steps to Reproduce:

  1. Create typescript project with two typescript files: index.ts and test.ts
  2. export class from test.ts
  3. import class from test into index.ts and call non-existant method on the imported class. Error appears
  4. close index.ts error disappears

tsconfig.json contents

{
	"compilerOptions": {
			"target": "es6",
			"module": "commonjs",
			"sourceMap": true,
			"rootDir": "./"
	},
	"include": [
		"**/*.ts"
	]
}

test1.ts contents

export class test {
    public static test123(): number {
        console.log('Hello World');
        return 0;
    }
}

index.ts contents

import { test } from "./test";

test.main();

Reproduces without extensions: Yes

typescript_error
In the gif, the tsconfig.json has the 'files' option, but I can confirm that it is still happening when using the 'include' option

@vscodebot vscodebot bot assigned mjbvz Dec 2, 2017
@vscodebot vscodebot bot added the typescript Typescript support issues label Dec 2, 2017
@mjbvz
Copy link
Collaborator

mjbvz commented Dec 4, 2017

duplicate of #13953

@mjbvz mjbvz closed this as completed Dec 4, 2017
@mjbvz mjbvz added the *duplicate Issue identified as a duplicate of another issue(s) label Dec 4, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) typescript Typescript support issues
Projects
None yet
Development

No branches or pull requests

2 participants