diff --git a/src/common/create-document-selector.ts b/src/common/create-document-selector.ts index 69d3ba6..3d9bd3e 100644 --- a/src/common/create-document-selector.ts +++ b/src/common/create-document-selector.ts @@ -1,8 +1,10 @@ import { DocumentFilter } from "vscode"; +import * as constants from "../constants"; + export function createDocumentSelector(language: string): DocumentFilter[] { return [ - { language, scheme: "file" }, - { language, scheme: "untitled" }, + { language, scheme: constants.uriSchemes.file }, + { language, scheme: constants.uriSchemes.untitled }, ]; }