We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Testing #34831.
(2 theme extensions excluded)
Steps to Reproduce:
The extension uses the following code:
'use strict'; import * as vscode from 'vscode'; export function activate(context: vscode.ExtensionContext) { let watchers: vscode.FileSystemWatcher[] = []; let channel = vscode.window.createOutputChannel('relative'); context.subscriptions.push(channel); channel.appendLine(`New output channel`); let disposable = vscode.commands.registerCommand('relative.startFileWatchers', () => { let folders: vscode.WorkspaceFolder[] = vscode.workspace.workspaceFolders; let pattern = new vscode.RelativePattern(folders[0], '**/*.ts'); let watcher = vscode.workspace.createFileSystemWatcher(pattern); watcher.onDidChange((event) => { channel.appendLine(`Watcher 1: ${event.fsPath}`); }) watchers.push(watcher); pattern = new vscode.RelativePattern('/Users/kieferrm/Development/test-workspaces/sample', '**/*.ts'); watcher = vscode.workspace.createFileSystemWatcher(pattern); watcher.onDidChange((event) => { channel.appendLine(`Watcher 2: ${event.fsPath}`); }) watchers.push(watcher); watcher = vscode.workspace.createFileSystemWatcher('**/*.ts'); watcher.onDidChange((event) => { channel.appendLine(`Watcher 3: ${event.fsPath}`); }) watchers.push(watcher); }); context.subscriptions.push(disposable); disposable = vscode.commands.registerCommand('relative.stopFileWatchers', () => { watchers.forEach(e => e.dispose()); }); context.subscriptions.push(disposable); } export function deactivate() { }
package.json:
package.json
{ "name": "relative", "displayName": "relative", "description": "", "version": "0.0.1", "publisher": "kieferrm", "engines": { "vscode": "^1.16.0" }, "categories": [ "Other" ], "activationEvents": [ "onCommand:relative.startFileWatchers" ], "main": "./out/src/extension", "contributes": { "commands": [ { "command": "relative.startFileWatchers", "title": "Relative: Start File Watchers" }, { "command": "relative.stopFileWatchers", "title": "Relative: Stop File Watchers" } ] }, "scripts": { "vscode:prepublish": "npm run compile", "compile": "tsc -p ./", "watch": "tsc -watch -p ./", "postinstall": "node ./node_modules/vscode/bin/install" }, "devDependencies": { "typescript": "^2.5.2", "vscode": "^1.1.5", "@types/node": "^7.0.43" } }
Relative: Start File Watchers
relative
-> watcher 3 fire. I'd expect all three of them to fire.
The text was updated successfully, but these errors were encountered:
The problem is that the API and the actual implementation differ. The implementation expects the parameters of RelativePattern in opposite sequence.
RelativePattern
The issue is in the test description, when using * as vscode engine version. @bpasero already changed made changes since the build was created.
*
Sorry, something went wrong.
When running out of source the extension behaves as expected.
@kieferrm yeah sorry, this is because of #35103
No branches or pull requests
Testing #34831.
(2 theme extensions excluded)
Steps to Reproduce:
The extension uses the following code:
package.json
:Relative: Start File Watchers
from the command paletterelative
output channel-> watcher 3 fire. I'd expect all three of them to fire.
The text was updated successfully, but these errors were encountered: