File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed
components/dashboard/src/user-settings Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -15,36 +15,10 @@ import { Link } from "react-router-dom";
15
15
import { Heading2 , Subheading } from "../components/typography/headings" ;
16
16
import { useUserMaySetTimeout } from "../data/current-user/may-set-timeout-query" ;
17
17
import { Button } from "../components/Button" ;
18
- import { User } from "@gitpod/gitpod-protocol" ;
19
18
import SelectIDE from "./SelectIDE" ;
20
19
21
20
export type IDEChangedTrackLocation = "workspace_list" | "workspace_start" | "preferences" ;
22
21
23
- export const updateUserIDEInfo = async (
24
- user : User ,
25
- selectedIde : string ,
26
- useLatestVersion : boolean ,
27
- location : IDEChangedTrackLocation ,
28
- ) => {
29
- const additionalData = user ?. additionalData ?? { } ;
30
- const settings = additionalData . ideSettings ?? { } ;
31
- settings . settingVersion = "2.0" ;
32
- settings . defaultIde = selectedIde ;
33
- settings . useLatestVersion = useLatestVersion ;
34
- additionalData . ideSettings = settings ;
35
- getGitpodService ( )
36
- . server . trackEvent ( {
37
- event : "ide_configuration_changed" ,
38
- properties : {
39
- ...settings ,
40
- location,
41
- } ,
42
- } )
43
- . then ( )
44
- . catch ( console . error ) ;
45
- return getGitpodService ( ) . server . updateLoggedInUser ( { additionalData } ) ;
46
- } ;
47
-
48
22
export default function Preferences ( ) {
49
23
const { user, setUser } = useContext ( UserContext ) ;
50
24
const maySetTimeout = useUserMaySetTimeout ( ) ;
You can’t perform that action at this time.
0 commit comments