Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/vs/editor/common/services/languagesAssociations.ts')
-rw-r--r--src/vs/editor/common/services/languagesAssociations.ts4
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;
}