Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
856471f632 | ||
|
|
f52fea2559 | ||
|
|
cdf09daeb2 | ||
|
|
2f15ec1d4c |
@@ -59,7 +59,7 @@ import { CopilotCompletionContextFeatures, CopilotCompletionContextProvider } fr
|
||||
import { CustomConfigurationProvider1, getCustomConfigProviders, isSameProviderExtensionId } from './customProviders';
|
||||
import { DataBinding } from './dataBinding';
|
||||
import { cachedEditorConfigSettings, getEditorConfigSettings } from './editorConfig';
|
||||
import { CppSourceStr, clients, configPrefix, initializeIntervalTimer, isWritingCrashCallStack, updateLanguageConfigurations, usesCrashHandler, watchForCrashes } from './extension';
|
||||
import { CppIntelliSenseSourceStr, CppSourceStr, clients, configPrefix, initializeIntervalTimer, isWritingCrashCallStack, updateLanguageConfigurations, usesCrashHandler, watchForCrashes } from './extension';
|
||||
import { LocalizeStringParams, getLocaleId, getLocalizedString } from './localization';
|
||||
import { PersistentFolderState, PersistentState, PersistentWorkspaceState } from './persistentState';
|
||||
import { RequestCancelled, ServerCancelled, createProtocolFilter } from './protocolFilter';
|
||||
@@ -155,7 +155,7 @@ function publishRefactorDiagnostics(params: PublishRefactorDiagnosticsParams): v
|
||||
const message: string = getLocalizedString(d.localizeStringParams);
|
||||
const diagnostic: vscode.Diagnostic = new vscode.Diagnostic(makeVscodeRange(d.range), message, d.severity);
|
||||
diagnostic.code = d.code;
|
||||
diagnostic.source = CppSourceStr;
|
||||
diagnostic.source = CppSourceStr + ": Refactor";
|
||||
if (d.relatedInformation) {
|
||||
diagnostic.relatedInformation = [];
|
||||
for (const info of d.relatedInformation) {
|
||||
@@ -2696,7 +2696,7 @@ export class DefaultClient implements Client {
|
||||
const message: string = getLocalizedString(d.localizeStringParams);
|
||||
const diagnostic: vscode.Diagnostic = new vscode.Diagnostic(makeVscodeRange(d.range), message, d.severity);
|
||||
diagnostic.code = d.code;
|
||||
diagnostic.source = CppSourceStr;
|
||||
diagnostic.source = CppIntelliSenseSourceStr;
|
||||
if (d.relatedInformation) {
|
||||
diagnostic.relatedInformation = [];
|
||||
for (const info of d.relatedInformation) {
|
||||
|
||||
@@ -404,7 +404,7 @@ export function publishCodeAnalysisDiagnostics(params: PublishCodeAnalysisDiagno
|
||||
} else {
|
||||
diagnostic.code = d.code;
|
||||
}
|
||||
diagnostic.source = CppSourceStr;
|
||||
diagnostic.source = CppSourceStr + ": clang-tidy";
|
||||
codeActionDiagnosticInfo.push(codeAction);
|
||||
if (relatedCodeActions.length > 0) {
|
||||
codeActionDiagnosticInfo.push(...relatedCodeActions);
|
||||
|
||||
@@ -45,6 +45,7 @@ import { makeLspRange, rangeEquals, showInstallCompilerWalkthrough } from './uti
|
||||
nls.config({ messageFormat: nls.MessageFormat.bundle, bundleFormat: nls.BundleFormat.standalone })();
|
||||
const localize: nls.LocalizeFunc = nls.loadMessageBundle();
|
||||
export const CppSourceStr: string = "C/C++";
|
||||
export const CppIntelliSenseSourceStr: string = CppSourceStr + ": IntelliSense";
|
||||
export const configPrefix: string = "C/C++: ";
|
||||
|
||||
let prevMacCrashFile: string;
|
||||
@@ -132,7 +133,7 @@ function isMissingIncludeDiagnostic(diagnostic: vscode.Diagnostic): boolean {
|
||||
if (diagnostic.code === null || diagnostic.code === undefined || !diagnostic.source) {
|
||||
return false;
|
||||
}
|
||||
return diagnostic.code === missingIncludeCode && diagnostic.source === 'C/C++';
|
||||
return diagnostic.code === missingIncludeCode && diagnostic.source === CppIntelliSenseSourceStr;
|
||||
}
|
||||
|
||||
function sendActivationTelemetry(): void {
|
||||
|
||||
Reference in New Issue
Block a user