Use search for filename when local with a remote (microsoft/vscode-remote-release#2869)

This commit is contained in:
Christof Marti
2020-04-29 21:58:28 +02:00
parent 7726671d82
commit 84fc970a24

View File

@@ -457,10 +457,11 @@ export abstract class AbstractExtHostExtensionService implements ExtHostExtensio
const fileNames: string[] = [];
const globPatterns: string[] = [];
const localWithRemote = !this._initData.remote.isRemote && !!this._initData.remote.authority;
for (const activationEvent of activationEvents) {
if (/^workspaceContains:/.test(activationEvent)) {
const fileNameOrGlob = activationEvent.substr('workspaceContains:'.length);
if (fileNameOrGlob.indexOf('*') >= 0 || fileNameOrGlob.indexOf('?') >= 0) {
if (fileNameOrGlob.indexOf('*') >= 0 || fileNameOrGlob.indexOf('?') >= 0 || localWithRemote) {
globPatterns.push(fileNameOrGlob);
} else {
fileNames.push(fileNameOrGlob);