Skip to content

Commit

Permalink
fix(document): use languageId to new LinesTextDocument (#5142)
Browse files Browse the repository at this point in the history
  • Loading branch information
fannheyward authored Sep 19, 2024
1 parent f3406e0 commit 07d6dc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,8 @@ export default class Document {
* Get ranges of word in textDocument.
*/
public getSymbolRanges(word: string): Range[] {
let { version, filetype, uri } = this
let textDocument = new LinesTextDocument(uri, filetype, version, this.lines, this.bufnr, this.eol)
let { version, languageId, uri } = this
let textDocument = new LinesTextDocument(uri, languageId, version, this.lines, this.bufnr, this.eol)
let res: Range[] = []
let content = textDocument.getText()
let str = ''
Expand Down

0 comments on commit 07d6dc2

Please sign in to comment.