Skip to content

Commit 2ad2a35

Browse files
authored
Make sure we don't report errors in chat code blocks (microsoft#204779)
1 parent 63a3873 commit 2ad2a35

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

extensions/typescript-language-features/src/configuration/fileSchemes.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ export const azurerepos = 'azurerepos';
1616
export const vsls = 'vsls';
1717
export const walkThroughSnippet = 'walkThroughSnippet';
1818
export const vscodeNotebookCell = 'vscode-notebook-cell';
19-
export const memFs = 'memfs';
20-
export const vscodeVfs = 'vscode-vfs';
2119
export const officeScript = 'office-script';
2220
export const chatCodeBlock = 'vscode-chat-code-block';
2321

@@ -31,6 +29,7 @@ export function getSemanticSupportedSchemes() {
3129
untitled,
3230
walkThroughSnippet,
3331
vscodeNotebookCell,
32+
chatCodeBlock,
3433
];
3534
}
3635

extensions/typescript-language-features/src/tsServer/bufferSyncSupport.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,10 @@ export default class BufferSyncSupport extends Disposable {
745745
}
746746

747747
private shouldValidate(buffer: SyncedBuffer): boolean {
748+
if (buffer.resource.scheme === fileSchemes.chatCodeBlock) {
749+
return false;
750+
}
751+
748752
if (!this.client.configuration.enableProjectDiagnostics && !this._tabResources.has(buffer.resource)) { // Only validate resources that are showing to the user
749753
return false;
750754
}

0 commit comments

Comments
 (0)