diff --git a/src/vs/workbench/contrib/void/browser/_markerCheckService.ts b/src/vs/workbench/contrib/void/browser/_markerCheckService.ts
index 13edb167..be1ca007 100644
--- a/src/vs/workbench/contrib/void/browser/_markerCheckService.ts
+++ b/src/vs/workbench/contrib/void/browser/_markerCheckService.ts
@@ -39,7 +39,7 @@ class MarkerCheckService extends Disposable implements IMarkerCheckService {
console.log(`----------------------------------------------`);
- console.log(`${error.resource.toString()}: ${error.startLineNumber} ${error.message} ${error.severity}`); // ! all errors in the file
+ console.log(`${error.resource.fsPath}: ${error.startLineNumber} ${error.message} ${error.severity}`); // ! all errors in the file
try {
// Get the text model for the file
@@ -122,11 +122,11 @@ class MarkerCheckService extends Disposable implements IMarkerCheckService {
// const markers = this._markerService.read({ resource });
// if (markers.length === 0) {
- // console.log(`${resource.toString()}: No diagnostics`);
+ // console.log(`${resource.fsPath}: No diagnostics`);
// continue;
// }
- // console.log(`Diagnostics for ${resource.toString()}:`);
+ // console.log(`Diagnostics for ${resource.fsPath}:`);
// markers.forEach(marker => this._logMarker(marker));
// }
// };
diff --git a/src/vs/workbench/contrib/void/browser/autocompleteService.ts b/src/vs/workbench/contrib/void/browser/autocompleteService.ts
index 894316bd..34c7025c 100644
--- a/src/vs/workbench/contrib/void/browser/autocompleteService.ts
+++ b/src/vs/workbench/contrib/void/browser/autocompleteService.ts
@@ -642,7 +642,7 @@ export class AutocompleteService extends Disposable implements IAutocompleteServ
const testMode = false
- const docUriStr = model.uri.toString();
+ const docUriStr = model.uri.fsPath;
const prefixAndSuffix = getPrefixAndSuffixInfo(model, position)
const { prefix, suffix } = prefixAndSuffix
@@ -916,7 +916,7 @@ export class AutocompleteService extends Disposable implements IAutocompleteServ
if (!resource) return;
const model = this._modelService.getModel(resource)
if (!model) return;
- const docUriStr = resource.toString();
+ const docUriStr = resource.fsPath;
if (!this._autocompletionsOfDocument[docUriStr]) return;
const { prefix, } = getPrefixAndSuffixInfo(model, position)
diff --git a/src/vs/workbench/contrib/void/browser/chatThreadService.ts b/src/vs/workbench/contrib/void/browser/chatThreadService.ts
index e1152c3b..daac5fa3 100644
--- a/src/vs/workbench/contrib/void/browser/chatThreadService.ts
+++ b/src/vs/workbench/contrib/void/browser/chatThreadService.ts
@@ -269,7 +269,7 @@ class ChatThreadService extends Disposable implements IChatThreadService {
const newStagingSelections: StagingSelectionItem[] = oldStagingSelections.filter(s => !s.state?.wasAddedAsCurrentFile);
// add the new file if it doesn't exist
- const fileIsAdded = oldStagingSelections.some(s => s.type === 'File' && s.fileURI.toString() === newStagingSelection.fileURI.toString())
+ const fileIsAdded = oldStagingSelections.some(s => s.type === 'File' && s.fileURI.fsPath === newStagingSelection.fileURI.fsPath)
if (!fileIsAdded) {
newStagingSelections.push(newStagingSelection)
}
@@ -288,7 +288,7 @@ class ChatThreadService extends Disposable implements IChatThreadService {
// this.setCurrentMessageState(focusedMessageIdx, { stagingSelections: newSelections });
// // if the file already exists, do nothing
- // const alreadyHasFile = oldStagingSelections.some(s => s.type === 'File' && s.fileURI.toString() === newSelection.fileURI.toString())
+ // const alreadyHasFile = oldStagingSelections.some(s => s.type === 'File' && s.fileURI.fsPath === newSelection.fileURI.fsPath)
// if (alreadyHasFile) { return; }
// const filteredStagingSelections = oldStagingSelections.filter(s => !s.state?.wasAddedDuringFileChange); // remove all old selectons that were added during a file change
@@ -1023,7 +1023,7 @@ class ChatThreadService extends Disposable implements IChatThreadService {
// get history of all AI and user added files in conversation + store in reverse order (MRU)
const prevUris = this._getAllSelections(threadId)
.map(s => s.fileURI)
- .filter((uri, index, array) => array.findIndex(u => u.toString() === uri.toString()) === index) // O(n^2) but this is small
+ .filter((uri, index, array) => array.findIndex(u => u.fsPath === uri.fsPath) === index) // O(n^2) but this is small
.reverse()
@@ -1039,7 +1039,7 @@ class ChatThreadService extends Disposable implements IChatThreadService {
// shorten it
// TODO make this logic more general
- const prevUriStrs = prevUris.map(uri => uri.toString())
+ const prevUriStrs = prevUris.map(uri => uri.fsPath)
const shortenedUriStrs = shorten(prevUriStrs)
let displayText = shortenedUriStrs[idx]
const ellipsisIdx = displayText.lastIndexOf('…/');
@@ -1064,7 +1064,7 @@ class ChatThreadService extends Disposable implements IChatThreadService {
if (doesUriMatchTarget(uri)) {
// TODO make this logic more general
- const prevUriStrs = prevUris.map(uri => uri.toString())
+ const prevUriStrs = prevUris.map(uri => uri.fsPath)
const shortenedUriStrs = shorten(prevUriStrs)
let displayText = shortenedUriStrs[idx]
const ellipsisIdx = displayText.lastIndexOf('…/');
diff --git a/src/vs/workbench/contrib/void/browser/react/src/markdown/ApplyBlockHoverButtons.tsx b/src/vs/workbench/contrib/void/browser/react/src/markdown/ApplyBlockHoverButtons.tsx
index b37f4c69..b09a22ba 100644
--- a/src/vs/workbench/contrib/void/browser/react/src/markdown/ApplyBlockHoverButtons.tsx
+++ b/src/vs/workbench/contrib/void/browser/react/src/markdown/ApplyBlockHoverButtons.tsx
@@ -17,15 +17,13 @@ enum CopyButtonText {
type IconButtonProps = {
onClick: () => void;
- title: string
Icon: LucideIcon
disabled?: boolean
className?: string
}
-export const IconShell1 = ({ onClick, title, Icon, disabled, className }: IconButtonProps) => (
+export const IconShell1 = ({ onClick, Icon, disabled, className }: IconButtonProps) => (
const downButton =
const leftButton =
const rightButton =