mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
More work to make task multi folder aware
This commit is contained in:
@@ -348,8 +348,12 @@ namespace Tasks {
|
||||
label: typeof task.source === 'string' ? task.source : extension.name,
|
||||
extension: extension.id,
|
||||
scope: scope,
|
||||
workspaceFolder: workspaceFolder ? { uri: workspaceFolder.uri as URI } : undefined
|
||||
workspaceFolder: undefined
|
||||
};
|
||||
// We can't transfer a workspace folder object from the extension host to main since they differ
|
||||
// in shape and we don't have backwards converting function. So transfer the URI and resolve the
|
||||
// workspace folder on the main side.
|
||||
(source as any).__workspaceFolder = workspaceFolder ? workspaceFolder.uri as URI : undefined;
|
||||
let label = nls.localize('task.label', '{0}: {1}', source.label, task.name);
|
||||
let key = (task as types.Task).definitionKey;
|
||||
let kind = (task as types.Task).definition;
|
||||
|
||||
Reference in New Issue
Block a user