File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
extensions/typescript-language-features/src Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export const vscodeNotebookCell = 'vscode-notebook-cell';
1919export const memFs = 'memfs' ;
2020export const vscodeVfs = 'vscode-vfs' ;
2121export const officeScript = 'office-script' ;
22+ export const chatCodeBlock = 'vscode-chat-code-block' ;
2223
2324export function getSemanticSupportedSchemes ( ) {
2425 if ( isWeb ( ) && vscode . workspace . workspaceFolders ) {
Original file line number Diff line number Diff line change 44 *--------------------------------------------------------------------------------------------*/
55
66import * as vscode from 'vscode' ;
7- import { officeScript , vscodeNotebookCell } from '../configuration/fileSchemes' ;
7+ import * as fileSchemes from '../configuration/fileSchemes' ;
88import * as languageModeIds from '../configuration/languageIds' ;
99import * as typeConverters from '../typeConverters' ;
1010import { ClientCapability , ITypeScriptServiceClient } from '../typescriptService' ;
@@ -227,7 +227,7 @@ class SyncedBuffer {
227227 return tsRoot ?. startsWith ( inMemoryResourcePrefix ) ? undefined : tsRoot ;
228228 }
229229
230- return resource . scheme === officeScript ? '/' : undefined ;
230+ return resource . scheme === fileSchemes . officeScript || resource . scheme === fileSchemes . chatCodeBlock ? '/' : undefined ;
231231 }
232232
233233 public get resource ( ) : vscode . Uri {
@@ -395,7 +395,7 @@ class TabResourceTracker extends Disposable {
395395 }
396396
397397 public has ( resource : vscode . Uri ) : boolean {
398- if ( resource . scheme === vscodeNotebookCell ) {
398+ if ( resource . scheme === fileSchemes . vscodeNotebookCell ) {
399399 const notebook = vscode . workspace . notebookDocuments . find ( doc =>
400400 doc . getCells ( ) . some ( cell => cell . document . uri . toString ( ) === resource . toString ( ) ) ) ;
401401
You can’t perform that action at this time.
0 commit comments