We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80c1987 commit cdc40d3Copy full SHA for cdc40d3
packages/vscode/src/workbench.ts
@@ -185,7 +185,13 @@ export class Workbench {
185
_: [],
186
};
187
if ((workspace as IWorkspaceIdentifier).configPath) {
188
- config.workspace = workspace as IWorkspaceIdentifier;
+ // tslint:disable-next-line:no-any
189
+ let wid: IWorkspaceIdentifier = (<any>Object).assign({}, workspace);
190
+ if (!URI.isUri(wid.configPath)) {
191
+ // Ensure that the configPath is a valid URI.
192
+ wid.configPath = URI.file(wid.configPath);
193
+ }
194
+ config.workspace = wid;
195
} else {
196
config.folderUri = workspace as URI;
197
}
0 commit comments