This plugin is deprecated and no longer supported.
This extension allows you to connect to a TeamCity Server, receive notification messages from TeamCity and run personal builds on the TeamCity server without leaving Visual Studio Code.
Once you have a local TFVC workspace available, you must configure the TFVC support in Visual Studio Code. Details (including demo videos) are available in the TFVC documentation.
Because the extension uses TF command line client, the client should be logged on the server for Team Foundation version control. Execute tf workfold
command in the project directory.
First, you will need to install Visual Studio Code 1.23.0
or later.
To install the extension with the latest version of Visual Studio Code (version 1.25.0
is the latest as of this writing), download the last pre-release version of the TeamCity extension from the corresponding page, bring up the Visual Studio Code Command Palette (F1
), type Install from VSIX
and choose the teamcity-vscode-extension-***.vsix
file in the opened dialoge box. Restart Visual Studio Code.
Alternatively, you can also install using the VS Code --install-extension
command line switch providing the path to the .vsix:
code --install-extension myextension.vsix
When you are connecting to the TeamCity Server, you will only need your TeamCity server credentials (domain name, account name and password).
To sign in to your account, run the teamcity signin
command. You will be prompted to enter your credentials. When you do, and the authorization on the TeamCity server is successful, your will be prompted to save credentials securely on your local machine.
On Windows, your credentials wil be stored by Windows Credential Manager. On macOS, your credentials will be stored in the Keychain. On Linux, your credentials will be stored in a file on your local file system in a subdirectory of your home folder. That file is created only with RW rights for the user running Visual Studio Code.
The extension provides several commands for interacting with the TeamCity API.
In the Command Palette (F1
), type TeamCity
and choose a command.
TeamCity: Sign in
– This command is used for signing in to a TeamCity server. When required credentials are provided, they are sent to TeamCity server
to validate them and get internal user information. If validation is passed, it will be stored securely if possible on user
the computer and used to connect to the TeamCity server.
TeamCity: Sign out
– This command is used for signing out of a TeamCity server.
The extension uses custom tree data providers under the TeamCity view container to provide most of features.
You may need to enable file logging to troubleshoot an issue. There are four levels of logging (error
,
warn
, info
, and debug
). Since logging is disabled by default, you can add an entry like the one below
to the Visual Studio Code settings and restart VSCode. Once you are finished logging, either remove the setting or set it to an empty string and restart VSCode.
"teamcity.logging.level": "debug"
The log file will be placed at the root of your workspace and will be named teamcity-extension.log
.
To start debugging the extension, do the following:
npm install
command from the root of the project.Visual Studio Code
editorDebug
-> Start Debugging
To package a custom version of the extension, please refer to the VSCode documentation.
Support for this extension is provided in GitHub Issue Tracker. You can submit a bug report, a feature request or participate in discussions.
This extension is licensed under the MIT License.