Skip to content

Commit b11621a

Browse files
authored
Merge pull request #1 from PowerShell/master
Master
2 parents 9ba79cc + 5bbe42e commit b11621a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+5482
-1112
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ out/
55
node_modules/
66
logs/
77
modules/*
8+
sessions/*
89
!modules/README.md
910
vscode-powershell.zip
1011
vscps-preview.zip
11-
*.vsix
12+
*.vsix
13+
npm-debug.log

.vscode/launch.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
"args": [ "--extensionDevelopmentPath=${workspaceRoot}" ],
1010
"stopOnEntry": false,
1111
"sourceMaps": true,
12-
"outDir": "${workspaceRoot}/out",
13-
"preLaunchTask": "compile"
12+
"outFiles": ["${workspaceRoot}/out"],
13+
"preLaunchTask": "Build"
1414
},
1515
{
1616
"name": "Attach",
1717
"type": "node",
18+
"request": "attach",
1819
"address": "localhost",
1920
"port": 5858,
2021
"sourceMaps": false

.vscode/settings.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
// Place your settings in this file to overwrite default and user settings.
22
{
3-
// Controls the rendering size of tabs in characters. Accepted values: "auto", 2, 4, 6, etc. If set to "auto", the value will be guessed when a file is opened.
4-
"editor.tabSize": 4,
3+
"editor.tabSize": 4,
4+
"editor.insertSpaces": true,
5+
"files.trimTrailingWhitespace": true,
56

6-
// Controls if the editor will insert spaces for tabs. Accepted values: "auto", true, false. If set to "auto", the value will be guessed when a file is opened.
7-
"editor.insertSpaces": true,
8-
9-
// When enabled, will trim trailing whitespace when you save a file.
10-
"files.trimTrailingWhitespace": true
7+
// Lock the TypeScript SDK path to the version we use
8+
"typescript.tsdk": "./node_modules/typescript/lib"
119
}

.vscode/tasks.json

Lines changed: 24 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,37 @@
1-
// Available variables which can be used inside of strings.
2-
// ${workspaceRoot}: the root folder of the team
3-
// ${file}: the current opened file
4-
// ${fileBasename}: the current opened file's basename
5-
// ${fileDirname}: the current opened file's dirname
6-
// ${fileExtname}: the current opened file's extension
7-
// ${cwd}: the current working directory of the spawned process
8-
9-
// A task runner that calls a custom npm script that compiles the extension.
101
{
11-
"version": "0.1.0",
12-
13-
// we want to run npm
14-
"command": "npm",
15-
16-
// the command is a shell script
17-
"isShellCommand": true,
2+
"version": "2.0.0",
3+
4+
"windows": {
5+
"command": "${env.windir}\\sysnative\\windowspowershell\\v1.0\\PowerShell.exe",
6+
"args": [ "-NoProfile", "-ExecutionPolicy", "Bypass" ]
7+
},
8+
"linux": {
9+
"command": "/usr/bin/powershell",
10+
"args": [ "-NoProfile" ]
11+
},
12+
"osx": {
13+
"command": "/usr/local/bin/powershell",
14+
"args": [ "-NoProfile" ]
15+
},
16+
17+
"showOutput": "always",
1818

1919
"tasks": [
2020
{
21-
"taskName": "install",
22-
"showOutput": "always"
21+
"taskName": "Install",
22+
"suppressTaskName": true,
23+
"args": [ "Invoke-Build Restore" ]
2324
},
2425
{
25-
"taskName": "compile",
26+
"taskName": "Clean",
2627
"suppressTaskName": true,
27-
28-
// show the output window only if unrecognized errors occur.
29-
"showOutput": "silent",
30-
31-
// we run the custom script "compile" as defined in package.json
32-
"args": ["run", "compile"],
33-
34-
// use the standard tsc problem matcher to find compile problems in the output.
35-
"problemMatcher": "$tsc"
28+
"args": [ "Invoke-Build Clean" ]
3629
},
3730
{
38-
"taskName": "compile-watch",
31+
"taskName": "Build",
3932
"suppressTaskName": true,
40-
41-
// show the output window only if unrecognized errors occur.
42-
"showOutput": "silent",
43-
44-
// we run the custom script "compile-watch" as defined in package.json
45-
"args": ["run", "compile-watch"],
46-
47-
// The tsc compiler is started in watching mode
48-
"isWatching": true,
49-
50-
// use the standard tsc in watch mode problem matcher to find compile problems in the output.
51-
"problemMatcher": "$tsc-watch"
33+
"isBuildCommand": true,
34+
"args": [ "Invoke-Build Build" ]
5235
}
5336
]
5437
}

.vscodeignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.vscode/**
2+
vscode-powershell.build.ps1
23
typings/**
34
**/*.ts
45
.gitignore
@@ -7,5 +8,7 @@ build/**
78
bin/EditorServices.log
89
bin/DebugAdapter.log
910
bin/*.vshost.*
10-
logs/
11-
11+
bin/PowerShell/**
12+
logs/**
13+
sessions/**
14+
scripts/Install-VSCode.ps1

0 commit comments

Comments
 (0)