Extract current file extension from path
This commit is contained in:
parent
8c3d56d6bf
commit
d6f396de49
@ -190,7 +190,7 @@ export const ChatStore = types
|
||||
content: text,
|
||||
command: command,
|
||||
model: chatModel,
|
||||
language: info?.extension,
|
||||
language: info?.extension || info?.path?.split(".").pop(),
|
||||
ide: platform === "idea" ? "intellij" : platform
|
||||
}));
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user