Fix thinking

This commit is contained in:
andrepimenta
2025-06-24 17:57:42 +01:00
parent 4c57af4141
commit 581ad59ea2
3 changed files with 23 additions and 13 deletions

14
package-lock.json generated
View File

@@ -1,17 +1,17 @@
{
"name": "claude-code-chat",
"version": "0.0.8",
"version": "0.1.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "claude-code-chat",
"version": "0.0.8",
"version": "0.1.3",
"license": "SEE LICENSE IN LICENSE",
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "20.x",
"@types/vscode": "^1.95.0",
"@types/vscode": "^1.94.0",
"@typescript-eslint/eslint-plugin": "^8.31.1",
"@typescript-eslint/parser": "^8.31.1",
"@vscode/test-cli": "^0.0.10",
@@ -21,7 +21,7 @@
"typescript": "^5.8.3"
},
"engines": {
"vscode": "^1.95.0"
"vscode": "^1.94.0"
}
},
"node_modules/@azu/format-text": {
@@ -978,9 +978,9 @@
"dev": true
},
"node_modules/@types/vscode": {
"version": "1.100.0",
"resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.100.0.tgz",
"integrity": "sha512-4uNyvzHoraXEeCamR3+fzcBlh7Afs4Ifjs4epINyUX/jvdk0uzLnwiDY35UKDKnkCHP5Nu3dljl2H8lR6s+rQw==",
"version": "1.101.0",
"resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.101.0.tgz",
"integrity": "sha512-ZWf0IWa+NGegdW3iU42AcDTFHWW7fApLdkdnBqwYEtHVIBGbTu0ZNQKP/kX3Ds/uMJXIMQNAojHR4vexCEEz5Q==",
"dev": true,
"license": "MIT"
},

View File

@@ -2,7 +2,7 @@
"name": "claude-code-chat",
"displayName": "Claude Code Chat",
"description": "Beautiful Claude Code Chat Interface for VS Code",
"version": "0.1.2",
"version": "0.1.3",
"publisher": "AndrePimenta",
"author": "Andre Pimenta",
"repository": {
@@ -11,7 +11,7 @@
},
"license": "SEE LICENSE IN LICENSE",
"engines": {
"vscode": "^1.95.0"
"vscode": "^1.94.0"
},
"categories": [
"Other",
@@ -171,7 +171,12 @@
},
"claudeCodeChat.thinking.intensity": {
"type": "string",
"enum": ["think", "think-hard", "think-harder", "ultrathink"],
"enum": [
"think",
"think-hard",
"think-harder",
"ultrathink"
],
"default": "think",
"description": "Thinking mode intensity level. Higher levels provide more detailed reasoning but consume more tokens."
}
@@ -189,7 +194,7 @@
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "20.x",
"@types/vscode": "^1.95.0",
"@types/vscode": "^1.94.0",
"@typescript-eslint/eslint-plugin": "^8.31.1",
"@typescript-eslint/parser": "^8.31.1",
"@vscode/test-cli": "^0.0.10",

View File

@@ -1392,8 +1392,7 @@ const html = `<!DOCTYPE html>
}
}
// Update the toggle name
updateThinkingModeToggleName(value);
// Don't update toggle name until user confirms
}
function setThinkingIntensityValue(value) {
@@ -1405,6 +1404,12 @@ const html = `<!DOCTYPE html>
}
function confirmThinkingIntensity() {
// Get the current slider value
const currentValue = document.getElementById('thinkingIntensitySlider').value;
// Update the toggle name with confirmed selection
updateThinkingModeToggleName(currentValue);
// Save the current intensity setting
saveThinkingIntensity();