Skip to content

Commit

Permalink
chore: bump ls protocol version to 16 (#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawkyZ authored Oct 9, 2024
1 parent 6d9d113 commit 4bd6a7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/snyk/common/constants/languageServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Language Server name, used e.g. for the output channel
export const SNYK_LANGUAGE_SERVER_NAME = 'Snyk Language Server';
// The internal language server protocol version for custom messages and configuration
export const PROTOCOL_VERSION = 15;
export const PROTOCOL_VERSION = 16;

// LS protocol methods (needed for not having to rely on vscode dependencies in testing)
export const DID_CHANGE_CONFIGURATION_METHOD = 'workspace/didChangeConfiguration';
Expand Down
3 changes: 2 additions & 1 deletion src/test/unit/common/languageServer/languageServer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { defaultFeaturesConfigurationStub } from '../../mocks/configuration.mock
import { LoggerMock } from '../../mocks/logger.mock';
import { windowMock } from '../../mocks/window.mock';
import { stubWorkspaceConfiguration } from '../../mocks/workspace.mock';
import { PROTOCOL_VERSION } from '../../../../snyk/common/constants/languageServer';

suite('Language Server', () => {
const authServiceMock = {} as IAuthenticationService;
Expand Down Expand Up @@ -228,7 +229,7 @@ suite('Language Server', () => {
enableTrustedFoldersFeature: 'true',
trustedFolders: ['/trusted/test/folder'],
insecure: 'true',
requiredProtocolVersion: '15',
requiredProtocolVersion: PROTOCOL_VERSION.toString(),
scanningMode: 'auto',
folderConfigs: [],
authenticationMethod: 'oauth',
Expand Down

0 comments on commit 4bd6a7a

Please sign in to comment.