-
Notifications
You must be signed in to change notification settings - Fork 676
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
Add support for configuring default startup *.sln in settings.json #2053
Changes from 14 commits
6d2f205
fad50e8
6aafccf
db973e8
fab697a
e0edf51
baa827b
2a5056a
5c7d70a
290ff42
6de3809
8a69508
de1a8d2
86b1b72
7d2b1ab
1aa5259
fe33a07
a7b289b
6d484c3
8db7c15
c2eea4a
6a4060f
64c4ca2
906d76b
dfe1974
f4bce55
d5cd8fc
f801b8e
c80dd09
1e0e8fa
72ccaad
dcfa0c6
e34bf5a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,7 @@ install.* | |
|
||
*.vsix | ||
|
||
obj/ | ||
bin/ | ||
test/**/.vscode | ||
test/**/singleCsproj/.vscode | ||
.logs/ | ||
|
||
\.DS_Store |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,10 @@ | |
"taskName": "build", | ||
"command": "npm", | ||
"isShellCommand": true, | ||
"args": ["run", "compile"], | ||
"args": [ | ||
"run", | ||
"compile" | ||
], | ||
"showOutput": "always", | ||
"isBuildCommand": true | ||
}, | ||
|
@@ -14,19 +17,23 @@ | |
"command": "echo", | ||
"showOutput": "always", | ||
"isShellCommand": true, | ||
"args": ["Run tests in VS Code by launching the debugger with the 'Launch Tests' configuration."], | ||
"args": [ | ||
"Run tests in VS Code by launching the debugger with the 'Launch Tests' configuration." | ||
], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While we're making whitespace-only changes, can we tab->space ? |
||
"isTestCommand": true | ||
}, | ||
{ | ||
"taskName": "tslint", | ||
"command": "gulp", | ||
"isShellCommand": true, | ||
"args": ["tslint"], | ||
"args": [ | ||
"tslint" | ||
], | ||
"problemMatcher": { | ||
"owner": "tslint", | ||
"fileLocation": [ | ||
"relative", | ||
"${workspaceRoot}" | ||
"${workspaceFolder}" | ||
], | ||
"severity": "warning", | ||
"pattern": { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -401,6 +401,11 @@ | |
"default": 250, | ||
"description": "The maximum number of projects to be shown in the 'Select Project' dropdown (maximum 250)." | ||
}, | ||
"omnisharp.defaultLaunchSolution": { | ||
"type": "string", | ||
"default": null, | ||
"description": "The name of the default solution used at start up if the repo has multiple. e.g.'MyAwesomeSolution.sln'. Default value is `null` which will cause the first in alphabetical order to be chosen" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: This should have a period at the end. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "multiple solutions" |
||
}, | ||
"omnisharp.useEditorFormattingSettings": { | ||
"type": "boolean", | ||
"default": true, | ||
|
@@ -1255,9 +1260,9 @@ | |
"type": "coreclr", | ||
"request": "launch", | ||
"preLaunchTask": "build", | ||
"program": "^\"\\${workspaceRoot}/bin/Debug/${1:<target-framework>}/${2:<project-name.dll>}\"", | ||
"program": "^\"\\${workspaceFolder}/bin/Debug/${1:<target-framework>}/${2:<project-name.dll>}\"", | ||
"args": [], | ||
"cwd": "^\"\\${workspaceRoot}\"", | ||
"cwd": "^\"\\${workspaceFolder}\"", | ||
"stopAtEntry": false, | ||
"console": "internalConsole" | ||
} | ||
|
@@ -1280,9 +1285,9 @@ | |
"type": "coreclr", | ||
"request": "launch", | ||
"preLaunchTask": "build", | ||
"program": "^\"\\${workspaceRoot}/bin/Debug/${1:<target-framework>}/${2:<project-name.dll>}\"", | ||
"program": "^\"\\${workspaceFolder}/bin/Debug/${1:<target-framework>}/${2:<project-name.dll>}\"", | ||
"args": [], | ||
"cwd": "^\"\\${workspaceRoot}\"", | ||
"cwd": "^\"\\${workspaceFolder}\"", | ||
"stopAtEntry": false, | ||
"launchBrowser": { | ||
"enabled": true, | ||
|
@@ -1302,7 +1307,7 @@ | |
"ASPNETCORE_ENVIRONMENT": "Development" | ||
}, | ||
"sourceFileMap": { | ||
"/Views": "^\"\\${workspaceRoot}/Views\"" | ||
"/Views": "^\"\\${workspaceFolder}/Views\"" | ||
} | ||
} | ||
}, | ||
|
@@ -1314,13 +1319,13 @@ | |
"type": "coreclr", | ||
"request": "launch", | ||
"preLaunchTask": "build", | ||
"program": "^\"\\${workspaceRoot}/bin/Debug/${1:<target-framework>}/${2:<project-name.dll>}\"", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All of this part of launch.json is generated from src/tools/OptionsSchema.json. Can you fix it there too? Otherwise this will be lost the next time we run the generator. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like this is fixed now in the latest master. |
||
"program": "^\"\\${workspaceFolder}/bin/Debug/${1:<target-framework>}/${2:<project-name.dll>}\"", | ||
"args": [], | ||
"cwd": "^\"\\${workspaceRoot}\"", | ||
"cwd": "^\"\\${workspaceFolder}\"", | ||
"stopAtEntry": false, | ||
"console": "internalConsole", | ||
"pipeTransport": { | ||
"pipeCwd": "^\"\\${workspaceRoot}\"", | ||
"pipeCwd": "^\"\\${workspaceFolder}\"", | ||
"pipeProgram": "^\"${3:enter the fully qualified path for the pipe program name, for example '/usr/bin/ssh'}\"", | ||
"pipeArgs": [], | ||
"debuggerPath": "^\"${4:enter the path for the debugger on the target machine, for example ~/vsdbg/vsdbg}\"" | ||
|
@@ -1336,14 +1341,23 @@ | |
"request": "attach", | ||
"processId": "^\"\\${command:pickRemoteProcess}\"", | ||
"pipeTransport": { | ||
"pipeCwd": "^\"\\${workspaceRoot}\"", | ||
"pipeCwd": "^\"\\${workspaceFolder}\"", | ||
"pipeProgram": "^\"${1:enter the fully qualified path for the pipe program name, for example '/usr/bin/ssh'}\"", | ||
"pipeArgs": [], | ||
"debuggerPath": "^\"${2:enter the path for the debugger on the target machine, for example ~/vsdbg/vsdbg}\"" | ||
} | ||
} | ||
} | ||
] | ||
], | ||
"windows": { | ||
"program": "./.debugger/vsdbg-ui.exe" | ||
}, | ||
"osx": { | ||
"program": "./.debugger/vsdbg-ui" | ||
}, | ||
"linux": { | ||
"program": "./.debugger/vsdbg-ui" | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm pretty sure that you don't want these changes in your PR. Is that correct @gregg-miskelly? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure how/why those got in there tbh. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It can happen when debugging the extension. |
||
}, | ||
{ | ||
"type": "clr", | ||
|
@@ -2121,6 +2135,15 @@ | |
} | ||
} | ||
} | ||
}, | ||
"windows": { | ||
"program": "./.debugger/vsdbg-ui.exe" | ||
}, | ||
"osx": { | ||
"program": "./.debugger/vsdbg-ui" | ||
}, | ||
"linux": { | ||
"program": "./.debugger/vsdbg-ui" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm pretty sure that you don't want these changes in your PR. Is that correct @gregg-miskelly? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @janaka: You need to revert this bit. |
||
} | ||
} | ||
] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain this? It looks like VSCode deprecated workspaceroot for workspacefolder?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right.
workspaceRoot
was deprecated when multi-root workspaces were added to VS Code.