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

tsx files are not showing up in my code index #1124

Open
1 of 3 tasks
jaresty opened this issue Apr 15, 2024 · 1 comment
Open
1 of 3 tasks

tsx files are not showing up in my code index #1124

jaresty opened this issue Apr 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jaresty
Copy link

jaresty commented Apr 15, 2024

Before submitting your bug report

Relevant environment info

- OS: macOS
- Continue: 2024-04-12, 20:45:34
- IDE: VSCode

Description

I'm unable to reference symbols that are coming from my tsx files. I think the issue might be that, while ts files are marked as typescript, tsx files are not.

tsx: "tsx",

To reproduce

Open up a react project with some tsx files and try to search for a symbol that is in one of them. I don't think you'll see any results.

Log output

,/src/,#- coding: utf-8,,t.,
t,function,class,module,export,import
raw: true

############################################

<fim_prefix>{
  "models": [
    {
      "title": "Ollama",
      "provider": "ollama",
      "model": "AUTODETECT"
    }
  ],
  "slashCommands": [
    {
      "name": "edit",
      "description": "Edit selected code"
    },
    {
      "name": "comment",
      "description": "Write comments for the selected code"
    },
    {
      "name": "share",
      "description": "Export this session as markdown"
    },
    {
      "name": "cmd",
      "description": "Generate a shell command"
    }
  ],
  "customCommands": [
    {
      "name": "test",
      "prompt": "Write a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
      "description": "Write unit tests for highlighted code"
    }
  ],
  "contextProviders": [
    {
      "name": "diff",
      "params": {}
    },
    {
      "name": "open",
      "params": {}
    },
    {
      "name": "terminal",
      "params": {}
    },
    {
      "name": "problems",
      "params": {}
    },
    {
      "name": "codebase",
      "params": {}
    },
    {
      "name": "code",
      "params": {
        "<fim_suffix>"
      }
    },
    { "name": "folder" },
    {
      "name": "docs",
      "params": {}
    },
    {
      "name": "search",
      "params": {}
    },
    {
      "name": "locals",
      "params": {
        "stackDepth": 3
      }
    },<fim_middle>==========================================================================
==========================================================================
Settings:
contextLength: 4096
model: starcoder2:3b
maxTokens: 1024
temperature: 0.01
stop: <fim_prefix>,<fim_suffix>,<fim_middle>,<|endoftext|>,

,

,/src/,#- coding: utf-8,```,t.,
t,function,class,module,export,import
raw: true

############################################

<fim_prefix>{
  "models": [
    {
      "title": "Ollama",
      "provider": "ollama",
      "model": "AUTODETECT"
    }
  ],
  "slashCommands": [
    {
      "name": "edit",
      "description": "Edit selected code"
    },
    {
      "name": "comment",
      "description": "Write comments for the selected code"
    },
    {
      "name": "share",
      "description": "Export this session as markdown"
    },
    {
      "name": "cmd",
      "description": "Generate a shell command"
    }
  ],
  "customCommands": [
    {
      "name": "test",
      "prompt": "Write a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
      "description": "Write unit tests for highlighted code"
    }
  ],
  "contextProviders": [
    {
      "name": "diff",
      "params": {}
    },
    {
      "name": "open",
      "params": {}
    },
    {
      "name": "terminal",
      "params": {}
    },
    {
      "name": "problems",
      "params": {}
    },
    {
      "name": "codebase",
      "params": {}
    },
    {
      "name": "code",
      "params": {
        "e<fim_suffix>"
      }
    },
    { "name": "folder" },
    {
      "name": "docs",
      "params": {}
    },
    {
      "name": "search",
      "params": {}
    },
    {
      "name": "locals",
      "params": {
        "stackDepth": 3
      }
    },<fim_middle>==========================================================================
==========================================================================
Completion:

xcludes": [
          "node_

==========================================================================
==========================================================================
Settings:
contextLength: 4096
model: starcoder2:3b
maxTokens: 1024
temperature: 0.01
stop: <fim_prefix>,<fim_suffix>,<fim_middle>,<|endoftext|>,

,

,/src/,#- coding: utf-8,```,t.,
t,function,class,module,export,import
raw: true

############################################

<fim_prefix>{
  "models": [
    {
      "title": "Ollama",
      "provider": "ollama",
      "model": "AUTODETECT"
    }
  ],
  "slashCommands": [
    {
      "name": "edit",
      "description": "Edit selected code"
    },
    {
      "name": "comment",
      "description": "Write comments for the selected code"
    },
    {
      "name": "share",
      "description": "Export this session as markdown"
    },
    {
      "name": "cmd",
      "description": "Generate a shell command"
    }
  ],
  "customCommands": [
    {
      "name": "test",
      "prompt": "Write a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
      "description": "Write unit tests for highlighted code"
    }
  ],
  "contextProviders": [
    {
      "name": "diff",
      "params": {}
    },
    {
      "name": "open",
      "params": {}
    },
    {
      "name": "terminal",
      "params": {}
    },
    {
      "name": "problems",
      "params": {}
    },
    {
      "name": "codebase",
      "params": {}
    },
    {
      "name": "code",
      "params": {
        <fim_suffix>
      }
    },
    { "name": "folder" },
    {
      "name": "docs",
      "params": {}
    },
    {
      "name": "search",
      "params": {}
    },
    {
      "name": "locals",
      "params": {
        "stackDepth": 3
      }
    },<fim_middle>==========================================================================
==========================================================================
Completion:

"file": "file"
@jaresty jaresty added the bug Something isn't working label Apr 15, 2024
@jaresty
Copy link
Author

jaresty commented Apr 15, 2024

Created a pull request for the change I think might need to happen here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant