File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/core/src/codewhisperer/util Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import { checkLeftContextKeywordsForJson } from './commonUtil'
1818import { CodeWhispererSupplementalContext } from '../models/model'
1919import { getOptOutPreference } from '../../shared/telemetry/util'
2020import { indent } from '../../shared/utilities/textUtilities'
21+ import { isInDirectory } from '../../shared'
2122
2223let tabSize : number = getTabSizeSetting ( )
2324
@@ -88,7 +89,7 @@ async function getWorkspaceId(editor: vscode.TextEditor): Promise<string | undef
8889 await vscode . commands . executeCommand ( 'aws.amazonq.getWorkspaceId' )
8990 for ( const item of workspaceIds . workspaces ) {
9091 const path = vscode . Uri . parse ( item . workspaceRoot ) . fsPath
91- if ( editor . document . uri . fsPath . startsWith ( path ) ) {
92+ if ( isInDirectory ( path , editor . document . uri . fsPath ) ) {
9293 return item . workspaceId
9394 }
9495 }
You can’t perform that action at this time.
0 commit comments