Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overhaul extension (WIP) #814

Closed
wants to merge 68 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
93164de
Rework services
auxves Mar 29, 2019
0cca0a0
Import chokidar
auxves Mar 29, 2019
80b3bb3
Install chokidar and some type definitions
auxves Mar 29, 2019
0fd6b9a
Use chokidar and different service for watching
auxves Mar 29, 2019
2ee3c2e
Only import needed functions
auxves Mar 29, 2019
64ebde6
Seperate gist and repo settings
auxves Mar 29, 2019
3fdede7
Migrate to support both repo and gist sync
auxves Mar 29, 2019
d076fc3
Add autoUpload service
auxves Mar 29, 2019
1390bc9
Restore original file contents
auxves Mar 29, 2019
2a0de59
Make config simpler and allow for autocomplete
auxves Mar 29, 2019
ef87eb8
Add comma :)
auxves Mar 29, 2019
be2142f
Remove old files
auxves Mar 29, 2019
a388b17
Fix file associations
auxves Mar 29, 2019
8e46544
Improve fileService
auxves Mar 30, 2019
29b7509
Update file properties to be simpler
auxves Mar 30, 2019
b628c48
Update sync to use synchronous booleans
auxves Mar 30, 2019
24565df
Update file properties
auxves Mar 30, 2019
cabe50e
Make creating ExtensionMetadata much easier
auxves Mar 30, 2019
b31a394
Fix to work with updated properties
auxves Mar 30, 2019
053897f
Use synchronous methods for small functions
auxves Mar 30, 2019
073aa18
Use synchronous functions when await is not needed
auxves Mar 30, 2019
f023a6c
Update settings and remove unnecessary class
auxves Mar 30, 2019
f7cc021
Add packages
auxves Mar 30, 2019
183658c
Implement GUI for settings
auxves Mar 30, 2019
c337fde
Add new settings
auxves Mar 30, 2019
df3962a
Fix setting names
auxves Mar 30, 2019
279c003
Fix tests
auxves Mar 30, 2019
8220739
Add settings page
auxves Mar 30, 2019
6c3edfe
Display current values on settings page
auxves Mar 30, 2019
1ba7f6b
Set default sync method
auxves Mar 30, 2019
0a73991
Allow modifying arrays
auxves Mar 30, 2019
b08c688
Update to use new settings
auxves Mar 30, 2019
b6dc353
Fix issue with text inputs not changing settings
auxves Mar 30, 2019
9b7c5c0
Inject settings instead of using events
auxves Mar 30, 2019
54231cf
Allow for injecting settings and instant loading
auxves Mar 30, 2019
2521554
Add new message
auxves Mar 30, 2019
11b5d05
Open settings page when needed
auxves Mar 30, 2019
78825bc
Move gist id to custom settings for use in GUI
auxves Mar 30, 2019
29c5099
Move globalCommonService
auxves Mar 30, 2019
c4d29fa
Move watcher to be on the class itself
auxves Mar 30, 2019
919dfb6
Check if there have been no changes
auxves Mar 30, 2019
b6fe037
Add new element for gist id
auxves Mar 30, 2019
54c349a
Install anymatch
auxves Mar 31, 2019
7333738
Remove unnecessary lines
auxves Mar 31, 2019
dc81cab
Move watcher to its own service
auxves Mar 31, 2019
4614a7c
Make commands consistent
auxves Mar 31, 2019
db13734
Move extConfig to here and organize neatly
auxves Mar 31, 2019
457e30a
Allow for both Gist and Repo services to work
auxves Mar 31, 2019
316e3c1
Make a service for watcher
auxves Mar 31, 2019
aed4e6d
Create async commands for when they are needed
auxves Mar 31, 2019
1107936
Fix error with baseUrl
auxves Mar 31, 2019
119838d
Add all files to repo
auxves Mar 31, 2019
d97cd80
Update to match setting.ts's configuration
auxves Mar 31, 2019
6b1d291
Update to use new "ignoredSettings" variable name
auxves Mar 31, 2019
fc638c5
Simplify function
auxves Mar 31, 2019
2140527
Create classes for better intellisense
auxves Mar 31, 2019
3f8102d
Use better solution for custom files
auxves Mar 31, 2019
b02ebfc
Fix bug
auxves Mar 31, 2019
6a4a639
Fix issue with my previous changes
auxves Mar 31, 2019
78e35fd
Add extensions.json after content files
auxves Mar 31, 2019
15f92a2
Remove console log that was used for testing
auxves Mar 31, 2019
b26a19c
Put back code to delete files that no longer exist
auxves Mar 31, 2019
e783e5a
Stop updating gitignore every time
auxves Mar 31, 2019
f246e0f
Update docs
auxves Mar 31, 2019
e541570
Show summary by default
auxves Mar 31, 2019
c1c198f
Open GitHub token page if gist is not configured
auxves Mar 31, 2019
7fd7ab9
Forcefully push and pull
auxves Mar 31, 2019
349a06a
Generalize settings and docs because it works with lots of services
auxves Mar 31, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 28 additions & 24 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
// A launch configuration that compiles the extension and then opens it inside a new window
{
"version": "0.1.0",
"configurations": [{
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/out/**/*.js"],
"preLaunchTask": "npm"
},
{
"name": "Launch Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/test"],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/out/test/**/*.js"],
"preLaunchTask": "npm"
}
]
"version": "0.1.0",
"configurations": [
{
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/out/**/*.js"],
"preLaunchTask": "yarn: watch"
},
{
"name": "Launch Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceRoot}",
"--extensionTestsPath=${workspaceRoot}/out/test"
],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/out/test/**/*.js"],
"preLaunchTask": "yarn: watch"
}
]
}
46 changes: 17 additions & 29 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,18 @@
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname
// ${fileExtname}: the current opened file's extension
// ${cwd}: the current working directory of the spawned process

// A task runner that calls a custom npm script that compiles the extension.
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "0.1.0",

// we want to run npm
"command": "npm",

// the command is a shell script
"isShellCommand": true,

// show the output window only if unrecognized errors occur.
"showOutput": "silent",

// we run the custom script "compile" as defined in package.json
"args": ["run", "compile", "--loglevel", "silent"],

// The tsc compiler is started in watching mode
"isWatching": true,

// use the standard tsc in watch mode problem matcher to find compile problems in the output.
"problemMatcher": "$tsc-watch"
}
"version": "2.0.0",
"tasks": [
{
"label": "yarn: watch",
"type": "shell",
"problemMatcher": "$tsc",
"command": "yarn watch",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
}
}
]
}
Loading