diff options
Diffstat (limited to 'src/vs/editor/common/services/languagesAssociations.ts')
-rw-r--r-- | src/vs/editor/common/services/languagesAssociations.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vs/editor/common/services/languagesAssociations.ts b/src/vs/editor/common/services/languagesAssociations.ts index 4912ff8c7cf..ac7eb2b567b 100644 --- a/src/vs/editor/common/services/languagesAssociations.ts +++ b/src/vs/editor/common/services/languagesAssociations.ts @@ -152,6 +152,10 @@ function getAssociations(resource: URI | null, firstLine?: string): IdAndMime[] path = metadata.get(DataUri.META_DATA_LABEL); break; } + case Schemas.vscodeNotebookCell: + // File path not relevant for language detection of cell + path = undefined; + break; default: path = resource.path; } |