-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[VSC] Implement accounts and contacts
This commit will add the functionality of managing accounts and contacts of Saros. There are wizards for handling those data and necessary UI elements such as the contact and active account view.
- Loading branch information
1 parent
5cf3e7b
commit ea603e0
Showing
73 changed files
with
3,399 additions
and
497 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Change Log | ||
|
||
All notable changes to the "saros" extension will be documented in this file. | ||
|
||
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file. | ||
|
||
## [Unreleased] | ||
|
||
- Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
// Imports for node support | ||
import com.moowork.gradle.node.npm.NpmInstallTask | ||
import com.moowork.gradle.node.npm.NpmTask | ||
import com.moowork.gradle.node.npm.NpxTask | ||
import com.moowork.gradle.node.task.NodeTask | ||
import com.moowork.gradle.node.yarn.YarnInstallTask | ||
import com.moowork.gradle.node.yarn.YarnTask | ||
|
||
// Imports for os detection | ||
import org.apache.tools.ant.taskdefs.condition.Os | ||
|
||
plugins { | ||
id("com.github.node-gradle.node") version "2.2.4" apply true | ||
} | ||
|
||
// Extract extension data | ||
var packageJsonContent = File("${project.projectDir}/package.json").readText() | ||
|
||
var versionRegex = "\"version\": \"(.*?)\"".toRegex() | ||
var versionMatch = versionRegex.find(packageJsonContent) | ||
var version = versionMatch!!.groups.get(1)!!.value | ||
|
||
var publisherRegex = "\"publisher\": \"(.*?)\"".toRegex() | ||
var publisherMatch = publisherRegex.find(packageJsonContent) | ||
var publisher = publisherMatch!!.groups.get(1)!!.value | ||
|
||
var nameRegex = "\"name\": \"(.*?)\"".toRegex() | ||
var nameMatch = nameRegex.find(packageJsonContent) | ||
var name = nameMatch!!.groups.get(1)!!.value | ||
|
||
// Path to vsce cli | ||
var vscePath = "./node_modules/vsce/out/vsce" | ||
|
||
node { | ||
version = "10.14.1" | ||
npmVersion = "6.4.1" | ||
download = true | ||
} | ||
|
||
tasks.register<Copy>("copyLsp") { | ||
from("${rootDir.absolutePath}/build/distribution/lsp") | ||
into("dist") | ||
} | ||
|
||
tasks.register("buildExtension") { | ||
dependsOn("copyLsp", | ||
"npmInstall", | ||
"npm_run_webpack") | ||
group = "VS Code" | ||
description = "Builds the extension" | ||
} | ||
|
||
tasks.register<Exec>("runExtension") { | ||
dependsOn("buildExtension") | ||
group = "VS Code" | ||
description = "Builds and runs the extension" | ||
|
||
var cwd = System.getProperty("cwd", "") // argument is -Pcwd= | ||
var execArgs = "code --extensionDevelopmentPath=${projectDir.absolutePath} ${cwd} --inspect-extensions 1234" | ||
|
||
if (Os.isFamily(Os.FAMILY_WINDOWS)) { | ||
executable = "cmd" | ||
setArgs(listOf("/c ${execArgs}")) | ||
} else { | ||
executable = "sh" | ||
setArgs(listOf(execArgs)) | ||
} | ||
|
||
workingDir = File("./dist") | ||
} | ||
|
||
tasks.register<NodeTask>("packageExtension") { | ||
dependsOn("copyLsp", "npmInstall") | ||
group = "VS Code" | ||
description = "Packages the extension" | ||
|
||
var outDir = "${project.projectDir}/vsix" | ||
doFirst { | ||
delete("$outDir/*") | ||
File("$outDir").mkdirs() | ||
} | ||
|
||
script = file(vscePath) | ||
setArgs(listOf("package" , "--out", "$outDir/${project.name}-$version.vsix" )) | ||
} | ||
|
||
tasks.register<NodeTask>("publishExtension") { | ||
dependsOn("copyLsp", "npmInstall") | ||
group = "VS Code" | ||
description = "Publishes the extension" | ||
|
||
script = file(vscePath) | ||
setArgs(listOf("publish", "patch")) | ||
|
||
setExecOverrides(closureOf<ExecSpec>({ | ||
workingDir = file("./") | ||
})) | ||
} | ||
|
||
tasks.register<NodeTask>("unpublishExtension") { | ||
group = "VS Code" | ||
description = "Unpublishes the extension" | ||
|
||
script = file(vscePath) | ||
setArgs(listOf("unpublish", "${publisher}.${name}")) | ||
|
||
setExecOverrides(closureOf<ExecSpec>({ | ||
workingDir = file("./") | ||
})) | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.