{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/54256","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/54256/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/54256/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/54256/events","html_url":"https://github.com/Microsoft/vscode/issues/54256","id":341006165,"node_id":"MDU6SXNzdWUzNDEwMDYxNjU=","number":54256,"title":"Isinders: workspace.findFiles doesn´t return any matches when  \"searchRipgrep.enable\": true","user":{"login":"egamma","id":172399,"node_id":"MDQ6VXNlcjE3MjM5OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/172399?v=4","gravatar_id":"","url":"https://api.github.com/users/egamma","html_url":"https://github.com/egamma","followers_url":"https://api.github.com/users/egamma/followers","following_url":"https://api.github.com/users/egamma/following{/other_user}","gists_url":"https://api.github.com/users/egamma/gists{/gist_id}","starred_url":"https://api.github.com/users/egamma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egamma/subscriptions","organizations_url":"https://api.github.com/users/egamma/orgs","repos_url":"https://api.github.com/users/egamma/repos","events_url":"https://api.github.com/users/egamma/events{/privacy}","received_events_url":"https://api.github.com/users/egamma/received_events","type":"User","site_admin":false},"labels":[{"id":256129993,"node_id":"MDU6TGFiZWwyNTYxMjk5OTM=","url":"https://api.github.com/repos/Microsoft/vscode/labels/bug","name":"bug","color":"8D6673","default":true},{"id":287991608,"node_id":"MDU6TGFiZWwyODc5OTE2MDg=","url":"https://api.github.com/repos/Microsoft/vscode/labels/important","name":"important","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":{"login":"roblourens","id":323878,"node_id":"MDQ6VXNlcjMyMzg3OA==","avatar_url":"https://avatars3.githubusercontent.com/u/323878?v=4","gravatar_id":"","url":"https://api.github.com/users/roblourens","html_url":"https://github.com/roblourens","followers_url":"https://api.github.com/users/roblourens/followers","following_url":"https://api.github.com/users/roblourens/following{/other_user}","gists_url":"https://api.github.com/users/roblourens/gists{/gist_id}","starred_url":"https://api.github.com/users/roblourens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roblourens/subscriptions","organizations_url":"https://api.github.com/users/roblourens/orgs","repos_url":"https://api.github.com/users/roblourens/repos","events_url":"https://api.github.com/users/roblourens/events{/privacy}","received_events_url":"https://api.github.com/users/roblourens/received_events","type":"User","site_admin":false},"assignees":[{"login":"roblourens","id":323878,"node_id":"MDQ6VXNlcjMyMzg3OA==","avatar_url":"https://avatars3.githubusercontent.com/u/323878?v=4","gravatar_id":"","url":"https://api.github.com/users/roblourens","html_url":"https://github.com/roblourens","followers_url":"https://api.github.com/users/roblourens/followers","following_url":"https://api.github.com/users/roblourens/following{/other_user}","gists_url":"https://api.github.com/users/roblourens/gists{/gist_id}","starred_url":"https://api.github.com/users/roblourens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roblourens/subscriptions","organizations_url":"https://api.github.com/users/roblourens/orgs","repos_url":"https://api.github.com/users/roblourens/repos","events_url":"https://api.github.com/users/roblourens/events{/privacy}","received_events_url":"https://api.github.com/users/roblourens/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-07-13T12:47:42Z","updated_at":"2018-07-13T12:47:42Z","closed_at":null,"author_association":"MEMBER","body":"1) Create a test workspace with a folder that contains a file package.json\r\n\r\n2) use yo code to create an extension\r\n\r\n3) Replace the extension.ts with the code below.\r\n\r\n4) Run the extension and execute the ´Hello World' command\r\n\r\n--> the call workspace.findFiles returns 0 matches instead of 1.\r\n\r\nThis works in the latest stable. When toggling searchRipgrep the the correct number of matches is returned.\r\n\r\nThe code for extension.ts\r\n\r\n```\r\n'use strict';\r\n// The module 'vscode' contains the VS Code extensibility API\r\n// Import the module and reference it with the alias vscode in your code below\r\nimport * as vscode from 'vscode';\r\n\r\n// this method is called when your extension is activated\r\n// your extension is activated the very first time the command is executed\r\nexport function activate(context: vscode.ExtensionContext) {\r\n\r\n    // Use the console to output diagnostic information (console.log) and errors (console.error)\r\n    // This line of code will only be executed once when your extension is activated\r\n    console.log('Congratulations, your extension \"test-ts\" is now active!');\r\n\r\n    // The command has been defined in the package.json file\r\n    // Now provide the implementation of the command with  registerCommand\r\n    // The commandId parameter must match the command field in package.json\r\n    let disposable = vscode.commands.registerCommand('extension.sayHello', () => {\r\n        // The code you place here will be executed every time your command is executed\r\n\r\n        // Display a message box to the user\r\n        const workspace = vscode.workspace.workspaceFolders[0];\r\n        if (workspace) {\r\n            vscode.workspace.findFiles(new vscode.RelativePattern(workspace, \"**/package.json\"), \"**/node_modules/**\").then(results => {\r\n                console.log('results: ', results);\r\n            });\r\n        }\r\n    });\r\n\r\n    context.subscriptions.push(disposable);\r\n}\r\n\r\n// this method is called when your extension is deactivated\r\nexport function deactivate() {\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"egamma"}}