mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 23:06:49 +01:00
Make sure we don't report errors in chat code blocks (#204779)
This commit is contained in:
@@ -16,8 +16,6 @@ export const azurerepos = 'azurerepos';
|
||||
export const vsls = 'vsls';
|
||||
export const walkThroughSnippet = 'walkThroughSnippet';
|
||||
export const vscodeNotebookCell = 'vscode-notebook-cell';
|
||||
export const memFs = 'memfs';
|
||||
export const vscodeVfs = 'vscode-vfs';
|
||||
export const officeScript = 'office-script';
|
||||
export const chatCodeBlock = 'vscode-chat-code-block';
|
||||
|
||||
@@ -31,6 +29,7 @@ export function getSemanticSupportedSchemes() {
|
||||
untitled,
|
||||
walkThroughSnippet,
|
||||
vscodeNotebookCell,
|
||||
chatCodeBlock,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -745,6 +745,10 @@ export default class BufferSyncSupport extends Disposable {
|
||||
}
|
||||
|
||||
private shouldValidate(buffer: SyncedBuffer): boolean {
|
||||
if (buffer.resource.scheme === fileSchemes.chatCodeBlock) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!this.client.configuration.enableProjectDiagnostics && !this._tabResources.has(buffer.resource)) { // Only validate resources that are showing to the user
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user