Skip to content

Commit

Permalink
fix(document): use languageId to new LinesTextDocument
Browse files Browse the repository at this point in the history
  • Loading branch information
fannheyward committed Sep 19, 2024
1 parent f3406e0 commit b62782c
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 b62782c

Please sign in to comment.