Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

rubyLocate not working correctly #385

@archfish

Description

@archfish

My environment

  • vscode-ruby version: 0.20.0
  • Ruby version: 2.1.9
  • Ruby version manager (if any): rvm
  • VS Code version: 1.27.1
  • Operating System: MacOS 10.13.6
  • Using language server? NO

Expected behavior

ruby intellisense with rubyLocate using in workspace should detected locate by current project not vscode.workspace.rootPath.

Actual behavior

rubyLocate using first project path as rootPath

This and the next section should include screenshots, code samples, console output, etc. The more information we have to reproduce the better!

function registerIntellisenseProvider(ctx) {
  ...
  let locate = new locate_1.Locate(vscode.workspace.rootPath, settings);
  console.warn(`vscode.workspace.rootPath: ${vscode.workspace.rootPath}`)
  ...
}

got

vscode.workspace.rootPath: /Users/mymac/GoPath/src/github.com/fagongzi/gateway

my workspace config:

{
	"folders": [
		{
			"path": "/Users/mymac/GoPath/src/github.com/fagongzi/gateway"
		},
		{
			"path": "reocar_store"
		},
	],
        "settings": {
        }
}

gateway is golang project and reocar_store is an ruby on rails project.

when move reocar_store to first project of workspace it work perfect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions