Родитель
3a8430278a
Коммит
c570369e33
|
@ -36,7 +36,7 @@
|
|||
"stopOnEntry": false,
|
||||
"sourceMaps": true,
|
||||
"outFiles": [
|
||||
"${workspaceFolder}/dist/**/*.js"
|
||||
"${workspaceFolder}/out/**/*.js"
|
||||
],
|
||||
"preLaunchTask": "compile",
|
||||
},
|
||||
|
|
|
@ -1115,8 +1115,7 @@ export async function initFromStateAndSettings(): Promise<void> {
|
|||
// More than one setting may be updated on one settings.json save,
|
||||
// so make sure to OR the dirty state when it's calculated by a formula (not a simple TRUE value).
|
||||
vscode.workspace.onDidChangeConfiguration(async e => {
|
||||
if (vscode.workspace.workspaceFolders &&
|
||||
e.affectsConfiguration('makefile', vscode.workspace.workspaceFolders[0].uri)) {
|
||||
if (vscode.workspace.workspaceFolders && e.affectsConfiguration('makefile')) {
|
||||
// We are interested in updating only some relevant properties.
|
||||
// A subset of these should also trigger an IntelliSense config provider update.
|
||||
// Avoid unnecessary updates (for example, when settings are modified via the extension quickPick).
|
||||
|
|
|
@ -28,7 +28,10 @@ export class CppConfigurationProvider implements cpp.CustomConfigurationProvider
|
|||
private workspaceBrowseConfiguration: cpp.WorkspaceBrowseConfiguration = { browsePath: [] };
|
||||
|
||||
private getConfiguration(uri: vscode.Uri): SourceFileConfigurationItem | undefined {
|
||||
const norm_path: string = path.normalize(uri.fsPath);
|
||||
let norm_path: string = path.normalize(uri.fsPath);
|
||||
if (process.platform === "win32") {
|
||||
norm_path = norm_path.toUpperCase();
|
||||
}
|
||||
|
||||
// First look in the file index computed during the last configure.
|
||||
// If nothing is found and there is a configure running right now,
|
||||
|
|
|
@ -153,7 +153,8 @@ export class MakefileToolsExtension {
|
|||
|
||||
// These are the configurations processed during the current configure.
|
||||
// Store them in the 'delta' file index instead of the final one.
|
||||
provider.fileIndex.set(path.normalize(uri.fsPath), sourceFileConfigurationItem);
|
||||
provider.fileIndex.set(path.normalize((process.platform === "win32") ? uri.fsPath.toUpperCase() : uri.fsPath),
|
||||
sourceFileConfigurationItem);
|
||||
extension.getCppConfigurationProvider().logConfigurationProviderItem(sourceFileConfigurationItem);
|
||||
|
||||
let folder: string = path.dirname(filePath);
|
||||
|
|
|
@ -463,8 +463,8 @@ export function removeSurroundingQuotes(str: string): string {
|
|||
|
||||
// Quote given string if it contains space and is not quoted already
|
||||
export function quoteStringIfNeeded(str: string) : string {
|
||||
// No need to quote if there is no space present.
|
||||
if (!str.includes(" ")) {
|
||||
// No need to quote if there is no space or ampersand present.
|
||||
if (!str.includes(" ") && !str.includes("&")) {
|
||||
return str;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче