-
Notifications
You must be signed in to change notification settings - Fork 19
Source File Checksums
Andrew Crawley edited this page Jan 31, 2018
·
1 revision
Visual Studio can provide checksums for files to the debug adapter when setting breakpoints to ensure that the file open in the editor matches the one available to the debug adapter. The debug adapter can provide checksums for files to help Visual Studio locate and open the correct version of a source file.
To support checksums, a debug adapter must:
- Return a set of supported checksum algorithms in the
supportedChecksumAlgorithmsfield in theCapabilitiesobject returned in response to theinitializerequest. - Include a set of
Checksumobjects in thechecksumsfield of anySourceobject sent to Visual Studio. - Verify that the checksums contained in the
Sourceobject passed as an argument to thesetBreakpointsrequest match the file available to the debug adapter, and return aBreakpointobject with theverifiedfield set tofalseif they do not match.
Visual Studio may provide zero, one, or more than one checksum of a given algorithm, depending on user settings. If no checksums are provided, or if any of the provided checksums match, the debug adapter should consider it a valid match.