Skip to content

Investigate improper filtering of language config #9

@ufukty

Description

@ufukty

#7 mentions that:

[javascript] – a valid language selector – doesn't seem to be supported. However, [js] works.

because of Dim uses custom matching logic that wraps the file extension js with [ and ] to filter configuration for language:

dim/src/configmanager.ts

Lines 34 to 36 in e53620e

_getActiveDocumentLanguageSlug(editor: vscode.TextEditor) {
return "[" + editor.document.uri.path.split(".").pop() + "]";
}

which doesn't seem as the standard way of filtering language specific rules according

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions