mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Fix #79844
This commit is contained in:
@@ -35,26 +35,6 @@ export function getCustomDataPathsInAllWorkspaces(workspaceFolders: WorkspaceFol
|
||||
}
|
||||
});
|
||||
|
||||
workspaceFolders.forEach(wf => {
|
||||
const allCssConfig = workspace.getConfiguration(undefined, wf.uri);
|
||||
const wfCSSConfig = allCssConfig.inspect<ExperimentalConfig>('css');
|
||||
if (
|
||||
wfCSSConfig &&
|
||||
wfCSSConfig.workspaceFolderValue &&
|
||||
wfCSSConfig.workspaceFolderValue.experimental &&
|
||||
wfCSSConfig.workspaceFolderValue.experimental.customData
|
||||
) {
|
||||
const customData = wfCSSConfig.workspaceFolderValue.experimental.customData;
|
||||
if (Array.isArray(customData)) {
|
||||
customData.forEach(t => {
|
||||
if (typeof t === 'string') {
|
||||
dataPaths.push(path.resolve(wf.uri.fsPath, t));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return dataPaths;
|
||||
}
|
||||
|
||||
@@ -70,19 +50,6 @@ export function getCustomDataPathsFromAllExtensions(): string[] {
|
||||
dataPaths.push(path.resolve(extension.extensionPath, rp));
|
||||
});
|
||||
}
|
||||
|
||||
if (
|
||||
contributes &&
|
||||
contributes.css &&
|
||||
contributes.experimental &&
|
||||
contributes.css.experimental.customData &&
|
||||
Array.isArray(contributes.css.experimental.customData)
|
||||
) {
|
||||
const relativePaths: string[] = contributes.css.experimental.customData;
|
||||
relativePaths.forEach(rp => {
|
||||
dataPaths.push(path.resolve(extension.extensionPath, rp));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return dataPaths;
|
||||
|
||||
Reference in New Issue
Block a user