Skip to content

"Open Symbol By Name" is not working properly in multipy typescript projects. #8081

Closed
@heroboy

Description

@heroboy
  • VSCode Version:1.2.1
  • OS Version: windows 8.1

Steps to Reproduce:

  1. create a project like:
a/a.ts
a/tsconfig.json   => files:["a.ts"]
b/b.ts
b/tsconfig.json   => files:["b.ts"]
c.ts
  1. Ctrl+P and type "#" to search some symbols in "a.ts" "b.ts" or "c.ts". You will expect they will be seached. But the search result is depend on which file is currently opening or something else maybe open file order.

For exmaple:
open "c.ts" and insert:

import "./b.ts"

Then you can search symbols in "b.ts". Then comment it, and if symbols in "b.ts" can be searched is undetermined, sometime can and sometime can't.

And in my another project, only symbols in ".d.ts" can be searched.

And another problem is I can't search variable names in global scope, even I export it.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugtypescriptTypescript support issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions