ide

package
v0.0.0-...-1c9d968 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	XMLFiles = []string{"recentProjects.xml", "recentSolutions.xml"}
)

Functions

func FindAndSetProjectActivationTimestamp

func FindAndSetProjectActivationTimestamp(ele *etree.Element, project *Project)

func FindAndSetProjectOpenTimestamp

func FindAndSetProjectOpenTimestamp(ele *etree.Element, project *Project)

func GetAllXMLFiles

func GetAllXMLFiles(jetBrainsType IDEType, dirs []os.DirEntry) []string

func GetElementAttr

func GetElementAttr(attr []etree.Attr, name string) string

Types

type IDEType

type IDEType string
const (
	GoLand       IDEType = "GoLand"
	IntelliJIdea IDEType = "IntelliJIdea"
	PyCharm      IDEType = "PyCharm"
	CLion        IDEType = "CLion"
	WebStorm     IDEType = "WebStorm"
	PhpStorm     IDEType = "PhpStorm"
	RustRover    IDEType = "RustRover"
	RubyMine     IDEType = "RubyMine"
	Rider        IDEType = "Rider"
	DataGrip     IDEType = "DataGrip"
	Aqua         IDEType = "Aqua"
	Fleet        IDEType = "Fleet"
	DataSpell    IDEType = "DataSpell"
	AppCode      IDEType = "AppCode"
	Writerside   IDEType = "Writerside"

	VsCode IDEType = "VsCode"
)

type Project

type Project struct {
	Name                    string
	Dir                     string
	LastOpenTimestamp       int64
	LastActivationTimestamp int64
}

func GetJetBrainsRecentProjects

func GetJetBrainsRecentProjects(jetBrainsType IDEType) ([]*Project, error)

func GetProjectsFromXML

func GetProjectsFromXML(walkFiles []string) ([]*Project, error)

func GetRecentProjects

func GetRecentProjects(ideTypeStr string) ([]*Project, error)

func GetVsCodeRecentProjects

func GetVsCodeRecentProjects() ([]*Project, error)

type WorkspaceInfo

type WorkspaceInfo struct {
	Folder string `json:"folder"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL