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;
|
||||
|
||||
@@ -43,16 +43,6 @@
|
||||
},
|
||||
"scope": "resource"
|
||||
},
|
||||
"css.experimental.customData": {
|
||||
"type": "array",
|
||||
"description": "A list of JSON file paths that define custom CSS data that loads custom properties, at directives, pseudo classes / elements.",
|
||||
"default": [],
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"scope": "resource",
|
||||
"deprecationMessage": "This setting is no longe experimental. Use `css.customData` instead."
|
||||
},
|
||||
"css.completion.triggerPropertyValueCompletion": {
|
||||
"type": "boolean",
|
||||
"scope": "resource",
|
||||
|
||||
Reference in New Issue
Block a user