mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Change to fspath from resource tostring (#15069)
This commit is contained in:
@@ -60,7 +60,7 @@ export class EditorReplacementContribution implements IWorkbenchContribution {
|
|||||||
if (!language) {
|
if (!language) {
|
||||||
// Attempt to use extension or extension of modified input (if in diff editor)
|
// Attempt to use extension or extension of modified input (if in diff editor)
|
||||||
// remove the .
|
// remove the .
|
||||||
language = editor instanceof DiffEditorInput ? path.extname(editor.modifiedInput.resource.toString()).slice(1) : path.extname(editor.resource.toString()).slice(1);
|
language = editor instanceof DiffEditorInput ? path.extname(editor.modifiedInput.resource.fsPath).slice(1) : path.extname(editor.resource.toString()).slice(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!language) {
|
if (!language) {
|
||||||
|
|||||||
Reference in New Issue
Block a user